6 void RunMipHistogramMaker(Int_t nEntries = 1e8,
7 const Char_t* listname=
"test.list",
8 const Char_t* outfile=
"testMipFile.root")
11 gROOT->Macro(
"LoadLogger.C");
12 gROOT->Macro(
"loadMuDst.C");
13 gSystem->Load(
"StTpcDb");
14 gSystem->Load(
"StDaqLib");
15 gSystem->Load(
"StDetectorDbMaker");
16 gSystem->Load(
"St_db_Maker");
17 gSystem->Load(
"StDbUtilities");
18 gSystem->Load(
"StEmcRawMaker");
19 gSystem->Load(
"StMcEvent");
20 gSystem->Load(
"StMcEventMaker");
21 gSystem->Load(
"StEmcSimulatorMaker");
22 gSystem->Load(
"StEmcADCtoEMaker");
23 gSystem->Load(
"StEpcMaker");
24 gSystem->Load(
"StDbBroker");
25 gSystem->Load(
"StEEmcUtil");
26 gSystem->Load(
"StAssociationMaker");
27 gSystem->Load(
"StTriggerUtilities");
28 gSystem->Load(
"StEmcOfflineCalibrationMaker");
33 TChain *MipChain =
new TChain(
"calibTree");
35 ifstream filelist(listname,ifstream::in);
38 if (!filelist.good())
break;
47 cout <<
"Successful Init" << endl;
50 for (Int_t iEntry = 0; iEntry < MipChain->GetEntries(); ++iEntry){
51 if (MipChain->GetEvent(iEntry) <= 0)
54 if (iEntry%10000 == 0)
55 cout <<
"Working on event: " << iEntry << endl;
58 Int_t iret = chain->
Make(iEntry);
60 cout <<
"Bad return code" << endl;
virtual void Clear(Option_t *option="")
User defined functions.