5 #include "StEvent/StFstConsts.h"
20 template<
typename Container>
22 const Container &charges,
const Container &chargeErrs = Container{},
23 UChar_t maxTimeBin = 1, UShort_t idTruth = 0);
35 float getCharge(
int tb = 0)
const;
36 float getChargeErr(
int tb = 0)
const;
37 unsigned char getMaxTimeBin()
const;
38 unsigned char getRdo()
const;
39 unsigned char getArm()
const;
40 unsigned char getApv()
const;
43 static unsigned char getDefaultTimeBin();
47 void setChannelId(
int rChannelId);
48 void setGeoId(
int rChannelId);
49 void setSeedhitflag(
int rSeedhitflag);
50 void setCharge(
float charge,
int tb = -1);
54 template<
typename Container>
56 std::copy( std::begin(charges), std::end(charges), mCharge);
59 void setChargeErr(
float chargeErr,
int tb = -1);
60 void setMaxTimeBin(
int tb) ;
61 static void setDefaultTimeBin(
int tb );
62 void setIdTruth(
unsigned short idTruth);
64 using StObject::Print;
65 void Print(
int nTimeBins)
const;
72 Float_t mCharge[kFstNumTimeBins];
73 Float_t mChargeErr[kFstNumTimeBins];
78 static UChar_t mDefaultTimeBin;
80 ClassDef(StFstRawHit, 1)
unsigned char getChannel() const
0-127
unsigned char getArm() const
0-2
unsigned char getSensor() const
0-2
unsigned char getRStrip() const
0-7
unsigned char getDisk() const
1-3
unsigned char getPhiStrip() const
0-127
int getGeoId() const
0-36863
unsigned char getApv() const
0-15
unsigned short getIdTruth() const
for embedding, 0 as background
int getChannelId() const
0-36863
unsigned char getRdo() const
1-6
void setCharges(const Container &charges)
int getSeedhitflag() const
0 or 1
unsigned char getWedge() const
1-36