16 #ifndef StMiniMcEvent_H
17 #define StMiniMcEvent_H
20 #include "TClonesArray.h"
24 enum Category { MC,MATCHED,MERGED,SPLIT,CONTAM,GHOST,MATGLOB};
30 void Clear(Option_t *option=
"");
37 TClonesArray* tracks(Category)
const;
39 Int_t eventId()
const {
return mEventId; }
40 Int_t runId()
const {
return mRunId; }
41 Int_t originMult()
const {
return mOriginMult; }
42 Int_t centralMult()
const {
return mCentralMult; }
43 Int_t centrality()
const {
return mCentrality; }
44 Int_t nUncorrectedNegativePrimaries()
const {
return mNUncorrectedNegativePrimaries; }
45 Int_t nUncorrectedPrimaries()
const {
return mNUncorrectedPrimaries; }
46 Int_t nUncorrectedGlobals()
const {
return mNUncorrectedGlobals; }
47 Int_t nFtpcWUncorrectedPrimaries()
const {
return mNFtpcWUncorrectedPrimaries; }
48 Int_t nFtpcEUncorrectedPrimaries()
const {
return mNFtpcEUncorrectedPrimaries; }
49 Int_t mcMult()
const {
return mMcMult; }
50 Int_t nMcNch()
const {
return mNMcNch; }
51 Int_t nMcFtpcWNch()
const {
return mNMcFtpcWNch; }
52 Int_t nMcFtpcENch()
const {
return mNMcFtpcENch; }
53 Int_t nMcHminus()
const {
return mNMcHminus; }
54 Int_t nMcGlobal()
const {
return mNMcGlobal; }
55 Int_t nMcGoodGlobal20()
const {
return mNMcGoodGlobal20; }
56 Int_t nRcGlobal()
const {
return mNRcGlobal; }
57 Int_t nRcGoodGlobal20()
const {
return mNRcGoodGlobal20; }
58 Float_t vertexX()
const {
return mVertexX; }
59 Float_t vertexY()
const {
return mVertexY; }
60 Float_t vertexZ()
const {
return mVertexZ; }
61 const Float_t*vertexCovMatrix()
const {
return &mVertexCovMatrix[0];}
62 Float_t mcVertexX()
const {
return mMcVertexX ; }
63 Float_t mcVertexY()
const {
return mMcVertexY ; }
64 Float_t mcVertexZ()
const {
return mMcVertexZ ; }
65 Float_t centerOfMassEnergy()
const {
return mCenterOfMassEnergy; }
66 Float_t magneticField()
const {
return mMagField ; }
67 Float_t backgroundRate()
const {
return mBackgroundRate ; }
68 Short_t beamMassNumberEast()
const {
return mBeamMassNumberEast; }
69 Short_t beamMassNumberWest()
const {
return mBeamMassNumberWest; }
70 Float_t ctb()
const {
return mCtb ; }
71 Float_t zdcE()
const {
return mZdcE ; }
72 Float_t zdcW()
const {
return mZdcW ; }
73 Int_t nMcTrack()
const {
return mNMcTrack ; }
74 Int_t nMatchedPair()
const {
return mNMatchedPair ; }
75 Int_t nMergedPair()
const {
return mNMergedPair ; }
76 Int_t nSplitPair()
const {
return mNSplitPair ; }
77 Int_t nGhostPair()
const {
return mNGhostPair ; }
78 Int_t nContamPair()
const {
return mNContamPair ; }
80 float impact()
const {
return mImpact ; }
81 float impactPhi()
const {
return mImpactPhi ; }
82 float timeOffset()
const {
return mTimeOffset ; }
84 void setEventId(Int_t val) { mEventId=val; }
85 void setRunId(Int_t val) { mRunId=val; }
86 void setOriginMult(Int_t val) { mOriginMult=val; }
87 void setCentralMult(Int_t val) { mCentralMult=val; }
88 void setCentrality(Int_t val) { mCentrality=val; }
89 void setNUncorrectedNegativePrimaries(Int_t val) { mNUncorrectedNegativePrimaries=val; }
90 void setNUncorrectedPrimaries(Int_t val) { mNUncorrectedPrimaries=val; }
91 void setNUncorrectedGlobals(Int_t val) { mNUncorrectedGlobals=val; }
92 void setNFtpcWUncorrectedPrimaries(Int_t val) { mNFtpcWUncorrectedPrimaries=val; }
93 void setNFtpcEUncorrectedPrimaries(Int_t val) { mNFtpcEUncorrectedPrimaries=val; }
94 void setMcMult(Int_t val) { mMcMult=val; }
95 void setNMcNch(Int_t val) { mNMcNch=val; }
96 void setNMcFtpcWNch(Int_t val) { mNMcFtpcWNch=val; }
97 void setNMcFtpcENch(Int_t val) { mNMcFtpcENch=val; }
98 void setNMcHminus(Int_t val) { mNMcHminus=val; }
99 void setNMcGlobal(Int_t val) { mNMcGlobal=val; }
100 void setNMcGoodGlobal20(Int_t val) { mNMcGoodGlobal20=val; }
101 void setNRcGlobal(Int_t val) { mNRcGlobal=val; }
102 void setNRcGoodGlobal20(Int_t val) { mNRcGoodGlobal20=val; }
103 void setVertexX(Float_t val) { mVertexX=val; }
104 void setVertexY(Float_t val) { mVertexY=val; }
105 void setVertexZ(Float_t val) { mVertexZ=val; }
106 void setVertexCovMatrix(Float_t *cov) {
for (Int_t i = 0; i < 6; i++) mVertexCovMatrix[i] = cov[i];}
107 void setMcVertexX(Float_t val) { mMcVertexX=val; }
108 void setMcVertexY(Float_t val) { mMcVertexY=val; }
109 void setMcVertexZ(Float_t val) { mMcVertexZ=val; }
110 void setCenterOfMassEnergy(Float_t val) { mCenterOfMassEnergy=val; }
111 void setMagField(Float_t val) { mMagField=val; }
112 void setBackgroundRate(Float_t val) { mBackgroundRate=val; }
113 void setBeamMassNumberEast(Short_t val) { mBeamMassNumberEast=val; }
114 void setBeamMassNumberWest(Short_t val) { mBeamMassNumberWest=val; }
115 void setCtb(Float_t val) { mCtb=val; }
116 void setZdcE(Float_t val) { mZdcE=val; }
117 void setZdcW(Float_t val) { mZdcW=val; }
118 void setNMcTrack(Int_t val) { mNMcTrack =val; }
119 void setNMatchedPair(Int_t val) { mNMatchedPair =val; }
120 void setNMergedPair(Int_t val) { mNMergedPair =val; }
121 void setNSplitPair(Int_t val) { mNSplitPair =val; }
122 void setNGhostPair(Int_t val) { mNGhostPair =val; }
123 void setNContamPair(Int_t val) { mNContamPair =val; }
125 void setImpact(
float imp) { mImpact =imp ;}
126 void setImpactPhi(
float imphi) { mImpactPhi =imphi;}
127 void setTimeOffset(
float time) { mTimeOffset =time ;}
130 virtual void Print(Option_t *option=
"")
const;
140 Int_t mNUncorrectedNegativePrimaries;
141 Int_t mNUncorrectedPrimaries;
142 Int_t mNUncorrectedGlobals;
143 Int_t mNFtpcWUncorrectedPrimaries;
144 Int_t mNFtpcEUncorrectedPrimaries;
153 Int_t mNMcGoodGlobal20;
155 Int_t mNRcGoodGlobal20;
164 Float_t mVertexCovMatrix[6];
171 Float_t mCenterOfMassEnergy;
172 Float_t mBackgroundRate;
173 Short_t mBeamMassNumberEast;
174 Short_t mBeamMassNumberWest;
192 TClonesArray* mMcTracks;
193 TClonesArray* mMatchedPairs;
194 TClonesArray* mMergedPairs;
195 TClonesArray* mSplitPairs;
196 TClonesArray* mGhostPairs;
197 TClonesArray* mContamPairs;
198 TClonesArray* mMatGlobPairs;
199 static Int_t mSFirst;
for simplicity, this contains both the rc and mc track information.
Definition of Pair for Contamination tracks (secondary tracks, weak decay tracks) ...