16 #include "StEStructEmptyAnalysis.h"
17 #include "StEStructPool/EventMaker/StEStructEvent.h"
18 #include "StEStructPool/EventMaker/StEStructTrack.h"
29 hNEvent =
new TH1F(
"hNEvent",
"dNevent/dNch - Centrality",1200,0,1200);
30 hnt =
new TH1F(
"hnt",
"dNevent/dNch - Ntrack",1200,0,1200);
31 href =
new TH1F(
"href",
"refMult", 1000,0,1000);
32 hnumPrim =
new TH1F(
"hnumPrim",
"Number of Good Primary Tracks", 2000, 0, 2000);
33 hctb =
new TH1D(
"hctb",
"CTB Multiplicity", 1500,0,15000);
35 hnev14 =
new TH1F(
"hnev14",
"centrality ^ 1/4",100,0,7);
36 hnt14 =
new TH1F(
"hnt14",
"Ntrack ^ 1/4",100,0,7);
37 href14 =
new TH1F(
"href14",
"refMult ^ 1/4", 100,0,7);
38 hnumPrim14 =
new TH1F(
"hnumPrim14",
"Primaries ^ 1/4", 100,0,7);
39 hctb14 =
new TH1D(
"hctb14",
"CTB ^ 1/4", 200,0,15);
41 hmeanpt =
new TH1F(
"hmeanpt",
"mean pt",100,0,2);
42 hmeanpt14 =
new TH1F(
"hmeanpt14",
"mean pt ^ 1/4",1000,0,2);
46 for(
int i=1; i<1200; i++) varxbins[i]=pow(i,0.25)-0.00001;
47 hvar =
new TH1F(
"hvar",
"var bin",1199,varxbins);
53 if(!event)
return false;
55 int mult = (int)event->Centrality();
59 hnt->Fill(event->Ntrack());
60 href->Fill(event->RefMult());
61 hnumPrim->Fill(event->NumPrim());
62 hctb->Fill(event->ctbMult());
65 hnev14->Fill(pow(mult,0.25));
66 hvar->Fill(pow(mult,0.25));
67 hnt14->Fill(pow(event->Ntrack(),0.25));
68 href14->Fill(pow(event->RefMult(),0.25));
69 hnumPrim14->Fill(pow(event->NumPrim(),0.25));
70 hctb14->Fill(pow(event->ctbMult(),0.25));
76 StEStructTrackCollection* tcol;
79 if(i==0)tcol=
event->TrackCollectionP();
80 if(i==1)tcol=
event->TrackCollectionM();
81 StEStructTrackIterator Iter;
82 for(Iter=tcol->begin(); Iter!=tcol->end();++Iter){
90 hmeanpt->Fill( ptsum/count );
91 hmeanpt14->Fill( pow(ptsum/count,0.25) );
99 void StEStructEmptyAnalysis::finish(){
102 cout<<
" NO OUTPUTFILE TO WRITE TO ..... giving up ...."<<endl;
106 TFile * tf=
new TFile(moutFileName,
"RECREATE");
109 for(
int i=1; i<=hvar->GetNbinsX(); i++) hvar->SetBinContent(i, hvar->GetBinContent(i)*4*pow(hvar->GetBinLowEdge(i),3) );