20 #include <calotreegen/caloTreeGen.h>
26 R__LOAD_LIBRARY(libfun4all.so)
27 R__LOAD_LIBRARY(libcaloTreeGen.so)
32 const
float tow_cemc_min = 0,
33 const
float tow_hcalin_min = 0,
34 const
float tow_hcalout_min = 0,
35 const
string& eventFile = "
test.json",
53 std::cout <<
"All done!" << std::endl;
59 int main(
int argc,
char* argv[]) {
60 if(argc < 2 || argc > 9){
61 cout <<
"usage: ./bin/Fun4All_CaloTreeGen inputFile event run tow_cemc_min tow_hcalin_min tow_hcalout_min eventFile outputFile" << endl;
62 cout <<
"inputFile: Location of fileList or file containing dst." << endl;
63 cout <<
"event: Event number to analyze." << endl;
64 cout <<
"run: Run number." << endl;
65 cout <<
"tow_cemc_min: Minimum tower energy for CEMC." << endl;
66 cout <<
"tow_hcalin_min: Minimum tower energy for HCALIN." << endl;
67 cout <<
"tow_hcalout_min: Minimum tower energy for HCALOUT." << endl;
68 cout <<
"eventFile: name of event File." << endl;
69 cout <<
"outputFile: name of output file." << endl;
76 Float_t tow_cemc_min = 0;
77 Float_t tow_hcalin_min = 0;
78 Float_t tow_hcalout_min = 0;
79 string eventFile =
"test.json";
80 string outputFile =
"commissioning.root";
86 event = atoi(argv[2]);
92 tow_cemc_min = atof(argv[4]);
95 tow_hcalin_min = atof(argv[5]);
98 tow_hcalout_min = atof(argv[6]);
104 outputFile = argv[8];
109 cout <<
"done" << endl;