11 void electron_ntuple_maker(
const char* file_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 =
"2008-02-28 00:00:00";
45 StEmcOfflineCalibrationElectronAnalyzer* ana =
new StEmcOfflineCalibrationElectronAnalyzer;
47 ana->HTtrigs.push_back(220500);
48 ana->HTtrigs.push_back(220510);
49 ana->HTtrigs.push_back(220520);
64 ana->analyze(calib_tree,skimfile,dbtime);