13 #include "StEStructDstReader.h"
15 #include "StEStructEventCuts.h"
16 #include "StEStructTrackCuts.h"
17 #include "StEStructPool/EventMaker/StEStructEvent.h"
18 #include "StEStructPool/EventMaker/StEStructTrack.h"
19 #include "StEStructPool/EventMaker/StEStructEventMaker.h"
20 #include "StDetectorId.h"
30 setEventMaker(maker,inChain);
36 StEStructDstReader::~StEStructDstReader(){};
44 bool StEStructDstReader::hasMaker() {
return (mMaker) ?
true : false ; }
51 if(!mMaker)
return retVal;
53 int iret=mMaker->
Make();
60 retVal=mMaker->event();
61 if(!checkEvent(retVal)){
76 if(!mECuts->goodPrimaryVertexZ(e->Vz()) ||
77 !mECuts->goodCentrality(e->Centrality())) useEvent=
false;
79 mECuts->fillHistogram(mECuts->primaryVertexZName(),e->Vz(),useEvent);
80 mECuts->fillHistogram(mECuts->centralityName(),e->Centrality(),useEvent);
88 int numPrimaries=e->Ntrack();
89 if(0==numPrimaries)
return 0;
93 for(
int i=0;i<numPrimaries;i++){
98 if(track->Pt()<0.15)
continue;
100 useTrack = (mTCuts->goodFlag(track->Flag()) && useTrack);
101 useTrack = ( mTCuts->goodCharge(track->Charge()) && useTrack);
102 useTrack = ( mTCuts->goodNFitPoints(track->NFitPoints()) && useTrack);
103 useTrack = (mTCuts->goodNFitNMax((
float)((
float)track->NFitPoints()/(float)track->NMaxPoints())) && useTrack);
105 useTrack = (mTCuts->goodGlobalDCA(track->DcaGlobal()) && useTrack);
106 useTrack = (mTCuts->goodEta(track->Eta()) && useTrack);
107 useTrack = (mTCuts->goodChi2(track->Chi2()) && useTrack);
108 useTrack = (mTCuts->goodPhi(track->Phi()) && useTrack);
110 if(useTrack)numfinal++;
112 useTrack = (mTCuts->goodPt(track->Pt()) && useTrack);
113 useTrack = (mTCuts->goodYt(track->Yt()) && useTrack);
114 mTCuts->fillHistograms(useTrack);