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