StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFttRawHit.cxx
1 /***************************************************************************
2  *
3  * $Id: StFttRawHit.cxx,v 2.1 2021/11/18 14:53:48 jdb Exp $
4  *
5  * Author: jdb, Nov 2021
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************/
11 #include "StFttRawHit.h"
12 #include <cmath>
13 
14 
16 : mSector(0),
17 mRDO(0),
18 mFEB(0),
19 mVMM(0),
20 mChannel(0),
21 mADC(0),
22 mBCID(0),
23 mTB(-32000),
24 mBCIDDelta(-32000),
25 mTime(-32000),
26 mPlane(255),
27 mQuadrant(kFttUnknownQuadrant),
28 mRow(255),
29 mStrip(255),
30 mOrientation(kFttUnknownOrientation),
31 mIdTruth(0),
32 mQaTruth(0)
33 { /*noop*/ }
34 
35 StFttRawHit::StFttRawHit( UChar_t mSector, UChar_t mRDO, UChar_t mFEB,
36  UChar_t mVMM, UChar_t mChannel, UShort_t mADC,
37  UShort_t mBCID, Short_t mTB, Short_t mBCIDDelta){
38  setRaw( mSector, mRDO, mFEB, mVMM, mChannel, mADC, mBCID, mTB, mBCIDDelta);
39 }
40 
41 void StFttRawHit::setRaw( UChar_t mSector, UChar_t mRDO, UChar_t mFEB,
42  UChar_t mVMM, UChar_t mChannel, UShort_t mADC,
43  UShort_t mBCID, Short_t mTB, Short_t mBCIDDelta){
44  this->mSector = mSector;
45  this->mRDO = mRDO;
46  this->mFEB = mFEB;
47  this->mVMM = mVMM;
48  this->mChannel = mChannel;
49  this->mADC = mADC;
50  this->mBCID = mBCID;
51  this->mTB = mTB;
52  this->mBCIDDelta = mBCIDDelta;
53 }
54 
55 void StFttRawHit::setMapping( UChar_t mPlane, UChar_t mQuadrant,
56  UChar_t mRow, UChar_t mStrip, UChar_t mOrientation ){
57  this->mPlane = mPlane;
58  this->mQuadrant = mQuadrant;
59  this->mRow = mRow;
60  this->mStrip = mStrip;
61  this->mOrientation = mOrientation;
62 }
63 
64 
65 
66 ostream&
67 operator<<( ostream &os, const StFttRawHit& rh )
68 {
69  os << " StFttRawHit( " << endl;
70  os << "\tmSector = " << (int)rh.sector() << endl;
71  os << "\tmRDO = " << (int)rh.rdo() << endl;
72  os << "\tmFEB = " << (int)rh.feb() << endl;
73  os << "\tmVMM = " << (int)rh.vmm() << endl;
74  os << "\tmChannel = " << (int)rh.channel() << endl;
75  os << "\tmADC = " << (int)rh.adc() << endl;
76  os << "\tmBCID = " << (int)rh.bcid() << endl;
77  os << "\tmBCIDDelta = " << (int)rh.dbcid() << endl;
78  os << "\tmTB = " << (int)rh.tb() << endl;
79  os << "\tmTime = " << (int)rh.time() << endl;
80  os << "\tmPlane = " << (int)rh.plane() << endl;
81  os << "\tmQuadrant = " << (int)rh.quadrant() << endl;
82  os << "\tmRow = " << (int)rh.row() << endl;
83  os << "\tmStrip = " << (int)rh.strip() << endl;
84  os << "\tmOrientation = " << (int)rh.orientation() << endl;
85  os << "\tidTruth = " << (int)rh.idTruth() << endl;
86  os << "\tqaTruth = " << (int)rh.qaTruth() << endl;
87  os << " ) " << endl;
88 
89 
90  return os;
91 }
StFttRawHit()
Default constructor.
Definition: StFttRawHit.cxx:15