StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuFstRawHit.h
1 /**************************************************************************
2  *
3  * StMuFstRawHit.h
4  *
5  * Author: tchuang 2022
6  **************************************************************************
7  *
8  * Description: Data class for FST hit in StMuDst
9  *
10  **************************************************************************/
11 #ifndef StMuFstRawHit_h
12 #define StMuFstRawHit_h
13 
14 #include <TObject.h>
15 #include <TRefArray.h>
16 #include "StEnumerations.h"
17 #include "StEvent/StFstConsts.h"
18 
19 class StFstRawHit;
20 
21 class StMuFstRawHit : public TObject {
22 public:
23  StMuFstRawHit();
24  ~StMuFstRawHit();
25 
26  //accessors
27  int getChannelId() const;
28  int getGeoId() const;
29  int getSeedhitflag() const;
30  unsigned char getDisk() const;
31  unsigned char getWedge() const;
32  unsigned char getPhiStrip() const;
33  unsigned char getRStrip() const;
34  float getCharge(int tb = 0) const;
35  float getChargeErr(int tb = 0) const;
36  unsigned char getMaxTimeBin() const;
37  unsigned char getRdo() const;
38  unsigned char getArm() const;
39  unsigned char getApv() const;
40  unsigned char getSensor() const;
41  unsigned char getChannel() const;
42  static unsigned char getDefaultTimeBin();
43  unsigned short getIdTruth() const;
44 
45  //modifiers
46  void setChannelId(int rChannelId);
47  void setGeoId(int rChannelId);
48  void setSeedhitflag(int rSeedhitflag);
49  void setCharge(float charge, int tb = -1);
50  void setChargeErr(float chargeErr, int tb = -1);
51  void setMaxTimeBin(int tb) ;
52  static void setDefaultTimeBin( int tb );
53  void setIdTruth(unsigned short idTruth);
54 
55  void print(int nTimeBins) ;
56 
57  void set( StFstRawHit *hit );
58 
59 private:
60 
61  Int_t mChannelId;
62  Int_t mGeoId;
63  Int_t mSeedhitflag;
64  Float_t mCharge[kFstNumTimeBins];
65  Float_t mChargeErr[kFstNumTimeBins];
67  UChar_t mMaxTimeBin;
68  UShort_t mIdTruth;
69 
70  static UChar_t mDefaultTimeBin;
71 
72  ClassDef(StMuFstRawHit, 1)
73 };
74 
75 #endif // StMuFstRawHit_h
76 
unsigned char getApv() const
0-15
unsigned char getRStrip() const
0-7
int getSeedhitflag() const
0 or 1
unsigned char getChannel() const
0-127
unsigned char getRdo() const
1-6
int getChannelId() const
0-36863
unsigned char getDisk() const
1-3
unsigned char getArm() const
0-2
int getGeoId() const
0-36863
unsigned short getIdTruth() const
for embedding, 0 as background
unsigned char getSensor() const
0-2
unsigned char getWedge() const
1-36
unsigned char getPhiStrip() const
0-127