9 void minesweeper(
int nEve = 10,
10 char *file =
"/star/data04/sim/MuDst/minbias_pp200_pythia6.203_2003_hadronicon_trsic/rcf1200_2576_2000evts.MuDst.root",
13 char *dbFlavor =
"NONE",
14 float scaleFactor = 1.0
18 std::cout <<
"Running EEMC MineSweeper Cluster Finder" << std::endl;
19 std::cout <<
"Processing: " << nEve <<
" events" << std::endl;
20 std::cout <<
"Input file: " << file << std::endl;
21 std::cout <<
"DB Flavor: " << dbFlavor << std::endl;
22 std::cout <<
"scaleFactor: " << scaleFactor << std::endl;
23 std::cout << std::flush;
32 TH1F *nclust =
new TH1F(
"nclust",
"Number of clusters",10,0,10);
39 std::cout <<
"Instantiating muDstMk: " << file << std::endl;
49 if ( dbFlavor !=
"NONE" &&
50 dbFlavor !=
"none" ) {
56 dbMk -> setTimeStampDay(20030516);
62 StMuEETowerClusterMaker
63 *muEEClusterMaker =
new StMuEETowerClusterMaker(
"muEEClusterMaker",
"MuDst");
67 muEEClusterMaker -> setSeedThreshold(0.6);
68 muEEClusterMaker -> setScaleFactor(scaleFactor);
73 eemcDb = (
StEEmcDb*)chain->GetDataSet(
"StEEmcDb");
75 eemcDb -> setSectors(5,8);
77 eemcDb -> setPreferedFlavor( dbFlavor,
"eemcPMTcal" );
86 if(eventCounter>=nEve)
break;
89 std::cout <<
"Processing event number " << eventCounter << std::endl;
93 nclust -> Fill( muEEClusterMaker -> getNClusters() );
96 muEEClusterMaker -> Print();
103 if ( stat != 0 ) std::cout <<
"Loop terminated w/ stat = " << stat << std::endl;
113 std::cout <<
"Loading libraries" << std::endl;
115 if (gClassTable->GetID(
"TTable") < 0)
116 gSystem->Load(
"libStar");
117 gSystem->Load(
"St_base");
118 gSystem->Load(
"StChain");
119 gSystem->Load(
"St_Tables");
120 gSystem->Load(
"StMagF");
121 gSystem->Load(
"StUtilities");
122 gSystem->Load(
"StTreeMaker");
123 gSystem->Load(
"StIOMaker");
124 gSystem->Load(
"StarClassLibrary");
125 gSystem->Load(
"StTpcDb");
126 gSystem->Load(
"StDbUtilities");
127 gSystem->Load(
"StEvent");
128 gSystem->Load(
"StEventUtilities");
129 gSystem->Load(
"StMcEvent");
130 gSystem->Load(
"StMcEventMaker");
131 gSystem->Load(
"StAssociationMaker");
132 gSystem->Load(
"StMcAnalysisMaker");
133 gSystem->Load(
"StStrangeMuDstMaker");
134 gSystem->Load(
"StDbLib");
135 gSystem->Load(
"StDbBroker");
136 gSystem->Load(
"St_db_Maker");
137 gSystem->Load(
"libgeometry_Tables");
138 gSystem->Load(
"StDaqLib");
139 gSystem->Load(
"StEmcUtil");
140 gSystem->Load(
"StEmcADCtoEMaker");
141 gSystem->Load(
"StPreEclMaker");
142 gSystem->Load(
"StEpcMaker");
144 assert(gSystem->Load(
"StMuDSTMaker")==0);
145 assert(gSystem->Load(
"StEEmcUtil")==0);
146 assert(gSystem->Load(
"StEEmcPoolmuDst")==0 );
147 assert(gSystem->Load(
"StEEmcPoolTowerOnly")==0 );
virtual void Clear(Option_t *option="")
User defined functions.
virtual void ls(Option_t *option="") const