12 #include "StMuL3EventSummary.h"
13 #include "StMuEmcCollection.h"
14 #include "StMuFmsCollection.h"
15 #include "StMuTriggerIdCollection.h"
17 #include "StEvent/StEventInfo.h"
18 #include "StEvent/StRunInfo.h"
19 #include "StEvent/StEventSummary.h"
20 #include "StEvent/StVpdTriggerDetector.h"
21 #include "StEvent/StMtdTriggerDetector.h"
22 #include "StEvent/StCtbTriggerDetector.h"
23 #include "StEvent/StZdcTriggerDetector.h"
24 #include "StEvent/StBbcTriggerDetector.h"
25 #include "StEvent/StEmcTriggerDetector.h"
26 #include "StEvent/StFpdTriggerDetector.h"
27 #include "StEvent/StFmsTriggerDetector.h"
28 #include "StEvent/StFpdCollection.h"
29 #include "StEvent/StL0Trigger.h"
30 #include "StEvent/StTriggerIdCollection.h"
31 #include "StEvent/StDetectorState.h"
33 #ifndef __NO_STRANGE_MUDST__
34 #include "StStrangeMuDstMaker/StStrangeMuDst.hh"
54 virtual void Clear (Option_t * opt=
""){
56 mEventSummary.Clear(opt);
87 unsigned short refMult(
int vtx_id = -1);
94 unsigned short grefmult(
int vtx_id=-1);
95 unsigned short btofTrayMultiplicity();
96 unsigned short etofHitMultiplicity();
97 unsigned short etofDigiMultiplicity();
98 float nearestVertexZ(
int vtx_id=-1);
102 void setReactionPlane(
unsigned short,
double v);
105 void setReactionPlanePtWgt(
unsigned short,
double v);
106 double magneticField();
107 double zdcAdcAttentuatedSumWest();
108 double zdcAdcAttentuatedSumEast();
109 double ctbMultiplicity();
116 unsigned int numberOfVpdEastHits();
117 unsigned int numberOfVpdWestHits();
122 unsigned int numberOfPxlInnerHits();
123 unsigned int numberOfPxlOuterHits();
124 unsigned int numberOfIstHits();
125 unsigned int numberOfSsdHits();
150 UShort_t mRefMultPos;
151 UShort_t mRefMultNeg;
152 UShort_t mRefMultFtpcEast;
153 UShort_t mRefMultFtpcWest;
154 Float_t mReactionPlane[2];
155 Float_t mReactionPlanePtWgt[2];
157 UShort_t mNHitsHFT[4];
176 inline int StMuEvent::eventId() {
return mEventInfo.id();}
177 inline int StMuEvent::eventNumber() {
return mEventInfo.id();}
178 inline int StMuEvent::runId() {
return mEventInfo.runId();}
179 inline int StMuEvent::runNumber() {
return mEventInfo.runId();}
180 inline StRunInfo& StMuEvent::runInfo() {
return mRunInfo;}
181 inline StEventInfo& StMuEvent::eventInfo() {
return mEventInfo;}
182 inline StEventSummary& StMuEvent::eventSummary() {
return mEventSummary;}
191 inline StFpdCollection& StMuEvent::fpdCollection() {
return mFpdCollection;}
192 inline StL0Trigger& StMuEvent::l0Trigger() {
return mL0Trigger;}
197 inline const StTriggerData* StMuEvent::triggerData()
const {
return mTriggerData; }
199 inline void StMuEvent::setReactionPlane(
unsigned short s,
double v) {(s==0) ? mReactionPlane[0]=v : mReactionPlane[1]=v;}
201 inline void StMuEvent::setReactionPlanePtWgt(
unsigned short s,
double v) {(s==0) ? mReactionPlanePtWgt[0]=v : mReactionPlanePtWgt[1]=v;}
202 inline double StMuEvent::magneticField() {
return mEventSummary.magneticField();}
203 inline double StMuEvent::zdcAdcAttentuatedSumWest() {
return mZdcTriggerDetector.adc(10);}
204 inline double StMuEvent::zdcAdcAttentuatedSumEast() {
return mZdcTriggerDetector.adc(13);}
205 inline double StMuEvent::ctbMultiplicity() {
207 for (
unsigned int slat = 0; slat < mCtbTriggerDetector.numberOfSlats(); slat++) {
208 for (
unsigned int tray = 0; tray < mCtbTriggerDetector.numberOfTrays(); tray++) {
209 ctb += mCtbTriggerDetector.mips(tray,slat,0);
214 inline TArrayI &StMuEvent::L2Result() {
return mL2Result; }
215 inline unsigned int StMuEvent::numberOfVpdEastHits() {
216 unsigned int num = 0;
217 for(
int i=0;i<32;i++) {
218 num += mVpdEast>>i & 1;
222 inline unsigned int StMuEvent::numberOfVpdWestHits() {
223 unsigned int num = 0;
224 for(
int i=0;i<32;i++) {
225 num += mVpdWest>>i & 1;
229 inline float StMuEvent::vpdTstart() {
return mVpdTstart; }
230 inline float StMuEvent::vpdTdiff() {
return mVpdTdiff; }
231 inline float StMuEvent::vpdVz() {
return mVpdVz; }
232 inline unsigned int StMuEvent::numberOfPxlInnerHits() {
return mNHitsHFT[0]; }
233 inline unsigned int StMuEvent::numberOfPxlOuterHits() {
return mNHitsHFT[1]; }
234 inline unsigned int StMuEvent::numberOfIstHits() {
return mNHitsHFT[2]; }
235 inline unsigned int StMuEvent::numberOfSsdHits() {
return mNHitsHFT[3]; }
StThreeVectorF primaryVertexPosition(int vtx_id=-1) const
The StMuDst is supposed to be structured in 'physical events'. Therefore there is only 1 primary vert...
unsigned short refMultNeg(int vtx_id=-1)
Reference multiplicity of negative particles as defined in StEventUtilities/StuRefMult.hh for vertex vtx_id (-1 is default index from StMuDst)
void fill(const StEvent *)
unsigned short refMultFtpcWest(int vtx_id=-1)
Reference multiplicity of particles in the west FTPC as defined in StEventUtilities/StuFtpcRefMult.hh for vertex vtx_id (-1 is default index from StMuDst)
unsigned short refMultFtpc(int vtx_id=-1)
Reference multiplicity of particles in the east+west FTPC as defined in StEventUtilities/StuFtpcRefMu...
unsigned short refMult(int vtx_id=-1)
Reference multiplicity of charged particles as defined in StEventUtilities/StuRefMult.hh for vertex vtx_id (-1 is default index from StMuDst)
double reactionPlane(unsigned short)
Currently not filled properly.
double reactionPlanePtWgt(unsigned short)
Currently not filled properly.
Collection of trigger ids as stored in MuDst.
unsigned short refMultPos(int vtx_id=-1)
Reference multiplicity of positive particles as defined in StEventUtilities/StuRefMult.hh for vertex vtx_id (-1 is default index from StMuDst)
unsigned short refMultFtpcEast(int vtx_id=-1)
Reference multiplicity of particles in the east FTPC as defined in StEventUtilities/StuFtpcRefMult.hh for vertex vtx_id (-1 is default index from StMuDst)