1 #ifndef MACRO_FUN4ALLG4EICDETECTOR_C
2 #define MACRO_FUN4ALLG4EICDETECTOR_C
16 #include <anatutorialecce/AnaTutorialECCE.h>
25 #include <RooUnblindPrecision.h>
32 const
string &inputFile = "https:
33 const
string &outputFile = "G4EICDetector.root",
34 const
string &embed_input_file = "https:
36 const
string &outdir = ".")
54 bool generate_seed =
false;
58 size_t findSlash = inputFile.find_last_of(
"/");
59 string inputFileName = inputFile.substr(findSlash + 1, inputFile.size());
61 RooRealVar dummyVal(
"dummy",
"", 0);
62 RooUnblindPrecision blindVal(
"blindVal",
"blindVal", inputFileName.c_str(),
nEvents, skip + 1, dummyVal, kFALSE);
534 string outputroot = outputFile;
535 string remove_this =
".root";
536 size_t pos = outputroot.find(remove_this);
537 if (pos != string::npos)
539 outputroot.erase(pos, remove_this.length());
608 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
609 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
611 cout <<
"-------------------------------------------------" << endl;
612 cout <<
"You are in event display mode. Run one event with" << endl;
613 cout <<
"se->run(1)" << endl;
614 cout <<
"Run Geant4 command with following examples" << endl;
615 gROOT->ProcessLine(
"displaycmd()");
627 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
628 cout <<
"it will run forever, so I just return without running anything" << endl;
640 std::cout <<
"All done" << std::endl;