11 void electron_tree_maker(
const char* file_list=
"ctest3.list",
const char* skimfile=
"electronskimfile.root")
13 gROOT->Macro(
"LoadLogger.C");
14 gROOT->Macro(
"loadMuDst.C");
15 gSystem->Load(
"StTpcDb");
16 gSystem->Load(
"StDaqLib");
17 gSystem->Load(
"StDetectorDbMaker");
18 gSystem->Load(
"St_db_Maker");
19 gSystem->Load(
"StDbUtilities");
20 gSystem->Load(
"StEmcRawMaker");
21 gSystem->Load(
"StMcEvent");
22 gSystem->Load(
"StMcEventMaker");
23 gSystem->Load(
"StEmcSimulatorMaker");
24 gSystem->Load(
"StEmcADCtoEMaker");
25 gSystem->Load(
"StEpcMaker");
26 gSystem->Load(
"StDbBroker");
27 gSystem->Load(
"StEmcUtil");
28 gSystem->Load(
"StAssociationMaker");
29 gSystem->Load(
"StEmcTriggerMaker");
30 gSystem->Load(
"StTriggerUtilities");
31 gSystem->Load(
"StEmcOfflineCalibrationMaker");
35 TChain* calib_tree =
new TChain(
"calibTree");
36 ifstream filelist(file_list);
39 if(!filelist.good())
break;
41 calib_tree->Add(file);
44 char* dbtime =
"2009-03-28 00:00:00";
45 StEmcOfflineCalibrationElectronAnalyzer* ana =
new StEmcOfflineCalibrationElectronAnalyzer;
70 ana->HTtrigs.push_back(240530);
71 ana->HTtrigs.push_back(240540);
72 ana->HTtrigs.push_back(240550);
73 ana->HTtrigs.push_back(240560);
74 ana->HTtrigs.push_back(240570);
95 ana->analyzeTree(calib_tree,skimfile,dbtime);