StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuFttRawHit.h
1 /***************************************************************************
2  *
3  * $Id: StMuFttRawHit.h
4  *
5  * Author: jdb, 2021
6  ***************************************************************************
7  *
8  * Description: Data class for sTGC raw hit in StMuDst
9  *
10  ***************************************************************************/
11 #ifndef STMUFTTRAWHIT_H
12 #define STMUFTTRAWHIT_H
13 
14 #include <iostream>
15 #include <TObject.h>
16 #include "StEnumerations.h"
17 class StFttRawHit;
18 
19 class StMuFttRawHit : public TObject {
20 public:
24  StMuFttRawHit();
25 
26  StMuFttRawHit( StFttRawHit * stHit );
27 
28  StMuFttRawHit( UChar_t mSector, UChar_t mRDO, UChar_t mFEB,
29  UChar_t mVMM, UChar_t mChannel, UShort_t mADC,
30  UShort_t mBCID, Short_t mTB, Short_t mBCIDDelta );
31 
32  ~StMuFttRawHit() {}
33 
34  void setRaw( UChar_t mSector, UChar_t mRDO, UChar_t mFEB,
35  UChar_t mVMM, UChar_t mChannel, UShort_t mADC,
36  UShort_t mBCID, Short_t mTB, Short_t mBCIDDelta );
37 
38  void setMapping( UChar_t mPlane, UChar_t mQuadrant, UChar_t mRow, UChar_t mStrip, UChar_t mOrientation );
39  void set( StFttRawHit * stHit );
40  void setIdTruth( UShort_t id ) { mIdTruth = id; }
41  void setQaTruth( UShort_t qa ) { mQaTruth = qa; }
42 
43  // consant getters
44  UChar_t sector() const;
45  UChar_t rdo() const;
46  UChar_t feb() const;
47  UChar_t vmm() const;
48  UChar_t channel() const;
49  UShort_t adc() const;
50  UShort_t bcid() const;
51  Short_t dbcid() const;
52  Short_t tb() const;
53 
54  UChar_t plane() const;
55  UChar_t quadrant() const;
56  UChar_t row() const;
57  UChar_t strip() const;
58  UChar_t orientation() const;
59  UShort_t idTruth() const { return mIdTruth; }
60  UShort_t qaTruth() const { return mQaTruth; }
61 
62 protected:
63  UChar_t mSector;
64  UChar_t mRDO;
65  UChar_t mFEB;
66  UChar_t mVMM;
67  UChar_t mChannel;
68  UShort_t mADC;
69  UShort_t mBCID;
70  Short_t mTB; // from the trigger
71  Short_t mBCIDDelta;
72 
73  // mapped information
74  UChar_t mPlane;
75  UChar_t mQuadrant;
76  UChar_t mRow;
77  UChar_t mStrip;
78  UChar_t mOrientation;
79 
80  UShort_t mIdTruth;
81  UShort_t mQaTruth;
82 
83  ClassDef( StMuFttRawHit, 3 );
84 };
85 
86 std::ostream& operator << ( std::ostream&, const StMuFttRawHit& hit ); // Printing operator
87 
88 inline UChar_t StMuFttRawHit::sector() const { return mSector; };
89 inline UChar_t StMuFttRawHit::rdo() const { return mRDO; };
90 inline UChar_t StMuFttRawHit::feb() const { return mFEB; };
91 inline UChar_t StMuFttRawHit::vmm() const { return mVMM; };
92 inline UChar_t StMuFttRawHit::channel() const { return mChannel; };
93 inline UShort_t StMuFttRawHit::adc() const { return mADC; };
94 inline UShort_t StMuFttRawHit::bcid() const { return mBCID; };
95 inline Short_t StMuFttRawHit::dbcid() const { return mBCIDDelta; };
96 inline Short_t StMuFttRawHit::tb() const { return mTB; };
97 
98 inline UChar_t StMuFttRawHit::plane() const { return mPlane; };
99 inline UChar_t StMuFttRawHit::quadrant() const { return mQuadrant; };
100 inline UChar_t StMuFttRawHit::row() const { return mRow; };
101 inline UChar_t StMuFttRawHit::strip() const { return mStrip; };
102 inline UChar_t StMuFttRawHit::orientation() const { return mOrientation; };
103 
104 
105 #endif // STETOFDIGI_H
StMuFttRawHit()
Default constructor.