35 void ezMuDstMc( Int_t nevents = 10,
36 Char_t *file =
"mcgamma_5000_06TC05_10.MuDst.root",
38 Char_t *inDir =
"/star/data04/sim/jwebb/MonteCarlo/single_gamma/" ) {
42 gROOT -> LoadMacro(
"StRoot/StEEmcPool/StMuEEmcClusterMaker/macros/StMuEEmcClusterMakerUtils.C");
45 gSystem -> Load(
"StEEmcSimulatorMaker");
51 muDst =
new StMuDstMaker(0,0,inDir,file,
"MuDst.root",nfiles);
58 starDb -> setTimeStampDay(20040320);
61 StMuEEmcSimuReMaker *muSim =
new StMuEEmcSimuReMaker(
"muSim");
62 muSim -> setDbName(
"eemcDb" );
65 TString myname = file;
66 myname.ReplaceAll(
"MuDst",
"clusters");
67 TFile *myFile1 =
new TFile(myname,
"RECREATE");
69 muCluster =
new StMuEEmcClusterMaker();
70 muCluster -> setSeedEnergy(0.7);
71 muCluster -> setShapeLimit(0.75);
78 eemcDb = (
StEEmcDb*)chain->GetDataSet(
"StEEmcDb");
80 eemcDb -> setPreferredFlavor(
"onlped",
"eemcPMTped" );
81 eemcDb -> setPreferredFlavor(
"highStrip1",
"eemcPIXcal" );
97 for ( event = first;
event < nevents;
event++ ) {
100 if ( stat != 0 )
break;
105 std::cout <<
"Processing event number " <<
event << std::endl;
108 stat = chain ->
Make();
111 std::cout <<
"N seed = " << muCluster -> ezAnalysis() -> getNSeedTowers() << std::endl;
112 std::cout <<
"N cluster = " << muCluster -> ezClusters() -> getNClusters() << std::endl;
113 std::cout << std::endl;
118 eemcDb -> exportAscii(
"test.db");
virtual void Clear(Option_t *opt="")
User defined functions.
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
virtual void ls(Option_t *option="") const