19 #ifndef _ST_FGT_STRIP_H_
20 #define _ST_FGT_STRIP_H_
37 short getAdc(
int tb = -1 )
const;
38 short getMaxAdc()
const;
39 short getClusterSeedType()
const;
40 float getCharge()
const;
41 float getChargeUncert()
const;
42 void getElecCoords(
int& rdo,
int& arm,
int& apv,
int& chan );
44 float getPedErr()
const;
45 bool chargeValid()
const;
48 void setGeoId (
int geoId );
49 void setAdc (
short adc,
int tb = -1 );
50 void setMaxAdc(
short adc);
51 void setClusterSeedType(
short seedType );
52 void setCharge (
float charge );
53 void setChargeUncert(
float chargeUncert);
54 void setElecCoords(
int rdo,
int arm,
int apv,
int chan );
55 void setPed(
float ped);
56 void setPedErr(
float pedErr);
57 void invalidateCharge();
60 static void setDefaultTimeBin(
int tb );
61 static int getDefaultTimeBin();
66 Short_t mAdc[kFgtNumTimeBins];
68 Short_t mClusterSeedType;
70 Float_t mChargeUncert;
71 Int_t mRdo, mArm, mApv, mChan;
75 static Int_t mDefaultTimeBin;
78 enum { kInvalidChargeValue = -10000 };
93 inline int StFgtStrip::getGeoId()
const {
return mGeoId; };
94 inline short StFgtStrip::getMaxAdc()
const {
return mMaxAdc; };
95 inline short StFgtStrip::getClusterSeedType()
const {
return mClusterSeedType; };
96 inline float StFgtStrip::getCharge()
const {
return mCharge; };
97 inline float StFgtStrip::getChargeUncert()
const {
return mChargeUncert; };
99 inline void StFgtStrip::getElecCoords(
int& rdo,
int& arm,
int& apv,
int& chan ){ rdo = mRdo; arm = mArm; apv = mApv; chan = mChan; };
101 inline float StFgtStrip::getPed()
const {
return mPed; };
102 inline float StFgtStrip::getPedErr()
const {
return mPedErr; };
103 inline bool StFgtStrip::chargeValid()
const {
return mCharge != 0 && mCharge != kInvalidChargeValue; };
105 inline short StFgtStrip::getAdc(
int tb )
const {
106 return mAdc[ (tb < 0 || tb >= kFgtNumTimeBins) ? mDefaultTimeBin : tb ];
111 inline void StFgtStrip::setGeoId(
int geoId ) { mGeoId = geoId; };
112 inline void StFgtStrip::setMaxAdc(
short adc ) { mMaxAdc=adc; };
113 inline void StFgtStrip::setClusterSeedType(
short seedType) { mClusterSeedType=seedType; };
114 inline void StFgtStrip::setCharge (
float charge ) { mCharge = charge; };
115 inline void StFgtStrip::setChargeUncert (
float chargeUncert ){ mChargeUncert = chargeUncert; };
117 inline void StFgtStrip::setElecCoords(
int rdo,
int arm,
int apv,
int chan ){ mRdo = rdo; mArm = arm; mApv = apv; mChan = chan; };
119 inline void StFgtStrip::setPed(
float ped) { mPed=ped; }
120 inline void StFgtStrip::setPedErr(
float pedErr) { mPedErr=pedErr; }
121 inline void StFgtStrip::invalidateCharge() { mCharge = kInvalidChargeValue; };
123 inline void StFgtStrip::setAdc(
short adc,
int tb ) {
124 mAdc[ (tb < 0 || tb >= kFgtNumTimeBins) ? mDefaultTimeBin : tb ] = adc;
131 inline int StFgtStrip::getDefaultTimeBin() {
return mDefaultTimeBin; };
132 inline void StFgtStrip::setDefaultTimeBin(
int tb ) { mDefaultTimeBin = tb; };