12 #include "StEStructPhiWeight.h"
16 #include "PhysicalConstants.h"
18 #include "StEStructPool/EventMaker/StEStructEvent.h"
19 #include "StEStructPool/EventMaker/StEStructTrack.h"
29 mPhiHist =
new TH1F(
"Phi",
"Phi",nPhiBins,phiMin,phiMax);
32 StEStructPhiWeight::~StEStructPhiWeight() {
38 if(!event)
return false;
41 StEStructTrackCollection *tp = mCurrentEvent->TrackCollectionP();
42 for(StEStructTrackIterator iter = tp->begin(); iter != tp->end(); iter++) {
44 Float_t phi = pTrack->Phi();
46 if(pTrack->TopologyMapTPCNHits() >= 0 || (pTrack->TopologyMapData(0)==0 && pTrack->TopologyMapData(1)==0)) {
51 StEStructTrackCollection *tm = mCurrentEvent->TrackCollectionM();
52 for(StEStructTrackIterator iter = tm->begin(); iter != tm->end(); iter++) {
54 Float_t phi = pTrack->Phi();
63 void StEStructPhiWeight::finish(){
65 TFile * tf=
new TFile(moutFileName,
"RECREATE");