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 { /*noop*/ }
32 
33 StFttRawHit::StFttRawHit( UChar_t mSector, UChar_t mRDO, UChar_t mFEB,
34  UChar_t mVMM, UChar_t mChannel, UShort_t mADC,
35  UShort_t mBCID, Short_t mTB, Short_t mBCIDDelta){
36  setRaw( mSector, mRDO, mFEB, mVMM, mChannel, mADC, mBCID, mTB, mBCIDDelta);
37 }
38 
39 void StFttRawHit::setRaw( UChar_t mSector, UChar_t mRDO, UChar_t mFEB,
40  UChar_t mVMM, UChar_t mChannel, UShort_t mADC,
41  UShort_t mBCID, Short_t mTB, Short_t mBCIDDelta){
42  this->mSector = mSector;
43  this->mRDO = mRDO;
44  this->mFEB = mFEB;
45  this->mVMM = mVMM;
46  this->mChannel = mChannel;
47  this->mADC = mADC;
48  this->mBCID = mBCID;
49  this->mTB = mTB;
50  this->mBCIDDelta = mBCIDDelta;
51 }
52 
53 void StFttRawHit::setMapping( UChar_t mPlane, UChar_t mQuadrant,
54  UChar_t mRow, UChar_t mStrip, UChar_t mOrientation ){
55  this->mPlane = mPlane;
56  this->mQuadrant = mQuadrant;
57  this->mRow = mRow;
58  this->mStrip = mStrip;
59  this->mOrientation = mOrientation;
60 }
61 
62 
63 
64 ostream&
65 operator<<( ostream &os, const StFttRawHit& rh )
66 {
67  os << " StFttRawHit( " << endl;
68  os << "\tmSector = " << (int)rh.sector() << endl;
69  os << "\tmRDO = " << (int)rh.rdo() << endl;
70  os << "\tmFEB = " << (int)rh.feb() << endl;
71  os << "\tmVMM = " << (int)rh.vmm() << endl;
72  os << "\tmChannel = " << (int)rh.channel() << endl;
73  os << "\tmADC = " << (int)rh.adc() << endl;
74  os << "\tmBCID = " << (int)rh.bcid() << endl;
75  os << "\tmBCIDDelta = " << (int)rh.dbcid() << endl;
76  os << "\tmTB = " << (int)rh.tb() << endl;
77  os << "\tmTime = " << (int)rh.time() << endl;
78  os << "\tmPlane = " << (int)rh.plane() << endl;
79  os << "\tmQuadrant = " << (int)rh.quadrant() << endl;
80  os << "\tmRow = " << (int)rh.row() << endl;
81  os << "\tmStrip = " << (int)rh.strip() << endl;
82  os << "\tmOrientation = " << (int)rh.orientation() << " ) " << endl;
83 
84 
85  return os;
86 }
StFttRawHit()
Default constructor.
Definition: StFttRawHit.cxx:15