8 #include "StIstConsts.h"
23 template<
typename Container>
25 const Container &charges,
const Container &chargeErrs = Container{},
26 UChar_t maxTimeBin = 3, UShort_t idTruth = 0);
33 unsigned char getRow()
const;
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;
42 static unsigned char getDefaultTimeBin();
46 void setChannelId(
int rChannelId);
47 void setGeoId(
int rChannelId);
48 void setCharge(
float charge,
int tb = -1);
52 template<
typename Container>
54 std::copy( std::begin(charges), std::end(charges), mCharge);
57 void setChargeErr(
float chargeErr,
int tb = -1);
58 void setMaxTimeBin(
int tb) ;
59 static void setDefaultTimeBin(
int tb );
60 void setIdTruth(
unsigned short idTruth);
62 using StObject::Print;
63 void Print(
int nTimeBins)
const;
69 Float_t mCharge[kIstNumTimeBins];
70 Float_t mChargeErr[kIstNumTimeBins];
75 static UChar_t mDefaultTimeBin;
unsigned char getLadder() const
1-24
unsigned char getArm() const
0-5
unsigned char getColumn() const
1-12
unsigned char getRow() const
1-64
int getGeoId() const
1-110592
unsigned char getApv() const
0-23
int getChannelId() const
0-110591
unsigned short getIdTruth() const
for embedding, 0 as background
void setCharges(const Container &charges)
unsigned char getRdo() const
1-6
unsigned char getChannel() const
0-127
unsigned char getSensor() const
1-6