8 #ifndef ST_EEMC_SHOWER_SHAPE_H
9 #define ST_EEMC_SHOWER_SHAPE_H
16 #include "TClonesArray.h"
20 #include "StMuDSTMaker/COMMON/StMuEmcHit.h"
28 int runNumber()
const;
29 int eventNumber()
const;
31 float preshower1()
const;
32 float preshower2()
const;
33 float postshower()
const;
35 int numberOfUstrips()
const;
36 int numberOfVstrips()
const;
39 int highUstripId()
const;
40 int highVstripId()
const;
41 TVector3 position()
const;
42 TVector3 momentum()
const;
44 void Clear(Option_t* option =
"");
45 void setRunNumber(
int runNumber);
46 void setEventNumber(
int evenNumber);
47 void setEnergy(
float energy);
48 void setPreshower1(
float preshower1);
49 void setPreshower2(
float preshower2);
50 void setPostshower(
float postshower);
51 void setSector(
int sector);
54 void setHighUstripId(
int id);
55 void setHighVstripId(
int id);
56 void setPosition(
const TVector3& v);
57 void setMomentum(
const TVector3& v);
70 TClonesArray* mUstrips;
71 TClonesArray* mVstrips;
80 inline int StEEmcShowerShape::runNumber()
const {
return mRunNumber; }
81 inline int StEEmcShowerShape::eventNumber()
const {
return mEventNumber; }
82 inline float StEEmcShowerShape::energy()
const {
return mEnergy; }
83 inline float StEEmcShowerShape::preshower1()
const {
return mPreshower1; }
84 inline float StEEmcShowerShape::preshower2()
const {
return mPreshower2; }
85 inline float StEEmcShowerShape::postshower()
const {
return mPostshower; }
86 inline int StEEmcShowerShape::sector()
const {
return mSector; }
87 inline int StEEmcShowerShape::numberOfUstrips()
const {
return mUstrips->GetEntriesFast(); }
88 inline int StEEmcShowerShape::numberOfVstrips()
const {
return mVstrips->GetEntriesFast(); }
89 inline StMuEmcHit* StEEmcShowerShape::uStrip(
int i)
const {
return (
StMuEmcHit*)mUstrips->At(i); }
90 inline StMuEmcHit* StEEmcShowerShape::vStrip(
int i)
const {
return (
StMuEmcHit*)mVstrips->At(i); }
91 inline int StEEmcShowerShape::highUstripId()
const {
return mHighUstripId; }
92 inline int StEEmcShowerShape::highVstripId()
const {
return mHighVstripId; }
93 inline TVector3 StEEmcShowerShape::position()
const {
return mPosition; }
94 inline TVector3 StEEmcShowerShape::momentum()
const {
return mMomentum; }
96 inline void StEEmcShowerShape::Clear(Option_t* option)
98 mUstrips->Clear(option);
99 mVstrips->Clear(option);
102 inline void StEEmcShowerShape::setRunNumber(
int runNumber) { mRunNumber = runNumber; }
103 inline void StEEmcShowerShape::setEventNumber(
int eventNumber) { mEventNumber = eventNumber; }
104 inline void StEEmcShowerShape::setEnergy(
float energy) { mEnergy = energy; }
105 inline void StEEmcShowerShape::setPreshower1(
float preshower1) { mPreshower1 = preshower1; }
106 inline void StEEmcShowerShape::setPreshower2(
float preshower2) { mPreshower2 = preshower2; }
107 inline void StEEmcShowerShape::setPostshower(
float postshower) { mPostshower = postshower; }
108 inline void StEEmcShowerShape::setSector(
int sector) { mSector = sector; }
109 inline void StEEmcShowerShape::addUstrip(
StMuEmcHit* strip) {
new ((*mUstrips)[mUstrips->GetEntriesFast()])
StMuEmcHit(*strip); }
110 inline void StEEmcShowerShape::addVstrip(
StMuEmcHit* strip) {
new ((*mVstrips)[mVstrips->GetEntriesFast()])
StMuEmcHit(*strip); }
111 inline void StEEmcShowerShape::setHighUstripId(
int id) { mHighUstripId = id; }
112 inline void StEEmcShowerShape::setHighVstripId(
int id) { mHighVstripId = id; }
113 inline void StEEmcShowerShape::setPosition(
const TVector3& v) { mPosition = v; }
114 inline void StEEmcShowerShape::setMomentum(
const TVector3& v) { mMomentum = v; }
119 #endif // ST_EEMC_SHOWER_SHAPE_H