14 class StMuEEmcPreAnalysisMaker;
15 class StMuEEmcPreClusterMaker;
23 StMuEEmcPreAnalysisMaker *muEEmcAnal;
24 StMuEEmcPreClusterMaker *muEEmcClust;
32 void runEEmcPreCluster ( Int_t nevents = 100,
33 Char_t *muDst =
"MuDst/mcPi0n_field_onelectron_10000_06TC05_20.MuDst.root",
34 Char_t *output =
"output.root"
39 void runEEmcPreCluster ( Int_t nevents,
44 TFile *f =
new TFile( output,
"RECREATE" );
50 TH2F *hPre1VsTow =
new TH2F(
"hPre1VsTow",
"Preshower(1) energy deposit vs reco tower E", 100, 0., 20., 500, 0., 0.08);
51 TH2F *hPre2VsTow =
new TH2F(
"hPre2VsTow",
"Preshower(2) energy deposit vs reco tower E", 100, 0., 20., 500, 0., 0.08);
52 TH2F *hPostVsTow =
new TH2F(
"hPostVsTow",
"Postshower energy deposit vs reco tower E", 100, 0., 20., 500, 0., 0.08);
53 TH2F *hPre1VsPre2 =
new TH2F(
"hPre1VsPre2",
"Preshower(1) energy deposit vs preshower(2) energy deposit", 500, 0., 0.08, 500, 0., 0.08);
60 gROOT -> LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
61 loadSharedLibraries();
62 gSystem->Load(
"StEEmcUtil");
63 gSystem->Load(
"StMuEEmcPreAnalysisMaker.so");
64 gSystem->Load(
"StDbLib");
65 gSystem->Load(
"StDbBroker");
66 gSystem->Load(
"St_db_Maker");
67 gSystem->Load(
"StEEmcDbMaker");
75 muDstMaker =
new StMuDstMaker(0,0,
"",muDst,
"MuDst.root",1);
76 muDb = StMuDbReader::instance();
81 muEEmcAnal =
new StMuEEmcPreAnalysisMaker();
82 muEEmcClust =
new StMuEEmcPreClusterMaker();
90 eemcDb = (
StEEmcDb*)chain->GetDataSet(
"StEEmcDb");
93 eemcDb -> setTimeStampDay(20040101);
94 eemcDb -> setPreferedFlavor(
"set492",
"eemcPMTcal" );
103 while ( !status && ievent < nevents ) {
106 std::cout <<
"Processing event number " << ievent << std::endl;
112 status = chain ->
Make();
114 for ( Int_t i = 0; i < muEEmcClust -> getNumClusters(); i++ ) {
116 StMuEEmcCluster cluster = muEEmcClust -> getCluster(i);
118 Float_t energy_tow = cluster.getEnergy(0);
119 Float_t energy_pre1 = cluster.getEnergy(1);
120 Float_t energy_pre2 = cluster.getEnergy(2);
121 Float_t energy_post = cluster.getEnergy(3);
123 hPre1VsTow -> Fill( energy_tow, energy_pre1 );
124 hPre2VsTow -> Fill( energy_tow, energy_pre2 );
125 hPostVsTow -> Fill( energy_tow, energy_post );
126 hPre1VsPre2 -> Fill ( energy_pre2, energy_pre1 );
136 muEEmcClust -> GetHistList() ->
Write();
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