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 
41  // consant getters
42 
43  UChar_t sector() const;
44  UChar_t rdo() const;
45  UChar_t feb() const;
46  UChar_t vmm() const;
47  UChar_t channel() const;
48  UShort_t adc() const;
49  UShort_t bcid() const;
50  Short_t dbcid() const;
51  Short_t tb() const;
52 
53  UChar_t plane() const;
54  UChar_t quadrant() const;
55  UChar_t row() const;
56  UChar_t strip() const;
57  UChar_t orientation() const;
58 
59 protected:
60  UChar_t mSector;
61  UChar_t mRDO;
62  UChar_t mFEB;
63  UChar_t mVMM;
64  UChar_t mChannel;
65  UShort_t mADC;
66  UShort_t mBCID;
67  Short_t mTB; // from the trigger
68  Short_t mBCIDDelta;
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( StMuFttRawHit, 2 );
81 };
82 
83 std::ostream& operator << ( std::ostream&, const StMuFttRawHit& hit ); // Printing operator
84 
85 inline UChar_t StMuFttRawHit::sector() const { return mSector; };
86 inline UChar_t StMuFttRawHit::rdo() const { return mRDO; };
87 inline UChar_t StMuFttRawHit::feb() const { return mFEB; };
88 inline UChar_t StMuFttRawHit::vmm() const { return mVMM; };
89 inline UChar_t StMuFttRawHit::channel() const { return mChannel; };
90 inline UShort_t StMuFttRawHit::adc() const { return mADC; };
91 inline UShort_t StMuFttRawHit::bcid() const { return mBCID; };
92 inline Short_t StMuFttRawHit::dbcid() const { return mBCIDDelta; };
93 inline Short_t StMuFttRawHit::tb() const { return mTB; };
94 
95 inline UChar_t StMuFttRawHit::plane() const { return mPlane; };
96 inline UChar_t StMuFttRawHit::quadrant() const { return mQuadrant; };
97 inline UChar_t StMuFttRawHit::row() const { return mRow; };
98 inline UChar_t StMuFttRawHit::strip() const { return mStrip; };
99 inline UChar_t StMuFttRawHit::orientation() const { return mOrientation; };
100 
101 
102 #endif // STETOFDIGI_H
StMuFttRawHit()
Default constructor.