39#include <sys/select.h>
54 , sets(new TObjArray())
57 , masterNodes(new TList())
79 masterNodes->Delete();
110 Error(
"This Methode is not used any more ",
"Use addGeoModule to add detectors: %s",
file);
184 TString setName(
name);
187 Int_t l = setName.Last(
'/') + 1;
188 setName = setName(l, setName.Length() - l);
200 for (Int_t
i = 0;
i < nSets;
i++) {
201 PSetName = sets->At(
i)->GetName();
202 if (PSetName.Contains(setName.Data())) {
204 cout <<
"FairGeoInterface::findSet" << pSet->GetName() << endl;
219 rc = input->
read(pSet, media);
228 if (pSet && connectOutput(pSet->GetName())) {
229 return output->
write(pSet);
237 if (pSet && output) {
240 return output->
write(pSet);
262 rc = input->
read(media);
270 if (connectOutput(
"media")) {
271 return output->
write(media);
282 return output->
write(media);
292 if (nActualSets == 0 && oraInput) {
306 for (Int_t
i = 0;
i < nSets && rc;
i++) {
309 cout <<
"Read " << pSet->GetName() << endl;
322 for (Int_t
i = 0;
i < nSets && rc;
i++) {
339 for (Int_t
i = 0;
i < nSets && rc;
i++) {
342 cout <<
"Create " << pSet->GetName() << endl;
343 rc = pSet->
create(geoBuilder);
355 Error(
"createAll()",
"No Builder");
367 if (nActualSets == 0 && oraInput) {
380 for (Int_t
i = 0;
i < nSets && rc;
i++) {
383 cout <<
"Read and create " << pSet->GetName() << endl;
386 rc = pSet->
create(geoBuilder);
399 Error(
"createAll()",
"No Builder");
411 if (
s.EndsWith(
".dat") ||
s.EndsWith(
".geo") ||
s.EndsWith(
".setup")) {
416 currentIo = fileInput;
417 }
else if (
s.EndsWith(
"_gdb")) {
418 currentIo = oraInput;
421 if (currentIo && currentIo->
isOpen()) {
427Bool_t FairGeoInterface::connectOutput(
const char*
name)
431 if (strcmp(output->IsA()->GetName(),
"FairGeoAsciiIo") == 0) {
437 newtime = localtime(&
t);
438 if (newtime->tm_mday < 10) {
439 sprintf(
buf,
"_0%i", newtime->tm_mday);
441 sprintf(
buf,
"_%i", newtime->tm_mday);
444 if (newtime->tm_mon < 9) {
445 sprintf(
buf,
"0%i", newtime->tm_mon + 1);
447 sprintf(
buf,
"%i", newtime->tm_mon + 1);
450 Int_t
y = newtime->tm_year - 100;
452 sprintf(
buf,
"0%i",
y);
454 sprintf(
buf,
"%i",
y);
457 if (newtime->tm_hour < 10) {
458 sprintf(
buf,
"0%i", newtime->tm_hour);
460 sprintf(
buf,
"%i", newtime->tm_hour);
463 if (newtime->tm_min < 10) {
464 sprintf(
buf,
"0%i", newtime->tm_min);
466 sprintf(
buf,
"%i", newtime->tm_min);
469 if (newtime->tm_sec < 10) {
470 sprintf(
buf,
"0%i", newtime->tm_sec);
472 sprintf(
buf,
"%i", newtime->tm_sec);
474 fName = fName +
buf +
".geo";
475 output->open(fName,
"out");
483 Error(
"connectOutput",
"No output open");
494 return pSet->
create(geoBuilder);
501 cout <<
"********************************************************************\n";
502 cout <<
"List of detector parts:\n";
504 for (Int_t
i = 0;
i < nSets;
i++) {
507 cout <<
" " << pSet->GetName() <<
":\t" << pSet->
getGeomFile() <<
'\n';
510 cout <<
"********************************************************************\n";
519 input = connectInput(configFile);
531 if (setupFile.Length() > 0) {
ClassImp(FairGeoInterface)
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual Show related Highlight grid Show only individual collision Color clusters belonging to track objects Set line Enable drawing TPC data Enable drawing TOF data Enable drawing magnetic field Set field line step count Invert colors configStandalone Heavy OpenGL display display_heavy Show tracks with ITS contribution Show tracks with TOF contribution Enable propagation of loopers Show clusters at nominal x of pad row for early transformed data Split CE tracks when they cross the central Mark clusters Mark adjacent clusters Hide rejected tracks Apply filter on tracks to be displayed Separate increase X h configStandalone Camera window renderer OpenGL display display_camera Orient the camera such that the y axis is always upwards Full Screen MultiSample Anti Downsampling Anti Enable Vertical Sync Target frame or if the backend cannot limit to the refresh Use OpenGL indirect draws to reduce number of draw calls Display h configStandalone Vulkan display display_vulkan Have uniform buffers in host accessible device memory h configStandalone Internal display display_internal Number of updates the Qt GUI may send ahead of the last one the display has before it waits for the display Opacity of the console background Number of console lines the history is shortened to this when it reaches twice the size Time in seconds an info message fades out after setInfoTime h OpenGL display display Font size Do not use Freetype for font Renderer for event Frontend to use for event ROOT macros used as track filter Console script file
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
Bool_t readDetectorSetup(FairGeoInterface *)
void setMediaFile(const char *file)
FairGeoSet * findSet(const char *)
void addInputFile(const char *)
Bool_t createSet(FairGeoSet *)
Bool_t createGeometry(Bool_t withCleanup=kFALSE)
Bool_t writeSet(FairGeoSet *)
Bool_t readSet(FairGeoSet *)
void deleteSet(FairGeoSet *pSet)
void addGeoModule(FairGeoSet *)
Bool_t createAll(Bool_t withCleanup=kFALSE)
Bool_t readGeomConfig(const char *)
virtual Bool_t readGeomConfig(FairGeoInterface *)=0
virtual Bool_t isOpen()=0
virtual Bool_t read(FairGeoMedia *)=0
virtual Bool_t open(const char *, const Text_t *status="in")=0
virtual Bool_t write(FairGeoMedia *)=0
virtual Bool_t create(FairGeoBuilder *)
const char * getGeomFile()
void setShapes(FairGeoShapes *s)
void setMasterNodes(TList *m)
GLuint const GLchar * name
GLenum GLuint GLenum GLsizei const GLchar * buf