ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_TB04_RawData Class Reference

#include <TRT_TB04_RawData.h>

Inheritance diagram for TRT_TB04_RawData:
Collaboration diagram for TRT_TB04_RawData:

Public Member Functions

 TRT_TB04_RawData (const Identifier rdoId, const unsigned int word)
 TRT_TB04_RawData (const Identifier rdoId, const unsigned int word, const unsigned int timeword)
 New constructor to have time offset into account.
virtual ~TRT_TB04_RawData ()
virtual bool highLevel () const
 High level threshold:
virtual double timeOverThreshold () const
 Time over threshold in ns for valid digits; zero otherwise:
virtual int driftTimeBin () const
unsigned int getTrigType () const
 TRT_TB04_RawData ()
virtual Identifier identify () const override final
unsigned int getWord () const
void merge (const InDetRawData &other)
virtual IdentifierHash identifyHash () const
virtual const IdHelpergetHelper () const

Protected Attributes

unsigned int m_word = 0

Private Attributes

unsigned int m_timeword
Identifier m_rdoId

Detailed Description

Definition at line 24 of file TRT_TB04_RawData.h.

Constructor & Destructor Documentation

◆ TRT_TB04_RawData() [1/3]

TRT_TB04_RawData::TRT_TB04_RawData ( const Identifier rdoId,
const unsigned int word )

Definition at line 27 of file TRT_TB04_RawData.cxx.

28 :
29 TRT_RDORawData( rdoId, word) //call base-class constructor
30{
31 m_timeword = 0;
32}
TRT_RDORawData()=default
unsigned int m_timeword

◆ TRT_TB04_RawData() [2/3]

TRT_TB04_RawData::TRT_TB04_RawData ( const Identifier rdoId,
const unsigned int word,
const unsigned int timeword )

New constructor to have time offset into account.

Definition at line 36 of file TRT_TB04_RawData.cxx.

38 :
39 TRT_RDORawData( rdoId, word) //call base-class constructor
40{
41 if ( timeword > 25 ) // Fix for bad trigger phase info
42 m_timeword = 0;
43 else
44 m_timeword = timeword;
45}

◆ ~TRT_TB04_RawData()

TRT_TB04_RawData::~TRT_TB04_RawData ( )
virtual

Definition at line 50 of file TRT_TB04_RawData.cxx.

51{}

◆ TRT_TB04_RawData() [3/3]

TRT_TB04_RawData::TRT_TB04_RawData ( )

Definition at line 20 of file TRT_TB04_RawData.cxx.

20 :
21 TRT_RDORawData(Identifier(), 0) //call base-class constructor
22{
23 m_timeword = 0;
24}

Member Function Documentation

◆ driftTimeBin()

int TRT_TB04_RawData::driftTimeBin ( ) const
virtual

Implements TRT_RDORawData.

Definition at line 106 of file TRT_TB04_RawData.cxx.

107{
108 unsigned mask = 0x02000000;
109 int TimeAdjBin;
110
111 int i;
112 for (i = 0; i < 24; ++i)
113 {
114 if (m_word & mask)
115 break;
116
117 mask >>= 1;
118 if (i == 7 || i == 15)
119 mask >>= 1;
120 }
121
122 TimeAdjBin = m_timeword / 2; // 0.5 bin for each PLL step.
123
124 return i + TimeAdjBin;
125}
unsigned int m_word

◆ getHelper()

const IdHelper * Identifiable::getHelper ( ) const
virtualinherited

Definition at line 18 of file Identifiable.cxx.

18 {
19 return (nullptr);
20}

◆ getTrigType()

unsigned int TRT_TB04_RawData::getTrigType ( ) const
inline

Definition at line 71 of file TRT_TB04_RawData.h.

72{
73 return m_timeword;
74}

◆ getWord()

unsigned int InDetRawData::getWord ( ) const
inlineinherited

Definition at line 47 of file InDetRawData.h.

48 {
49 return m_word;
50 }

◆ highLevel()

bool TRT_TB04_RawData::highLevel ( ) const
virtual

High level threshold:

Implements TRT_RDORawData.

Definition at line 54 of file TRT_TB04_RawData.cxx.

55{
56 if (m_word & 0x04020100)
57 return true;
58 return false;
59}

◆ identify()

virtual Identifier InDetRawData::identify ( ) const
inlinefinaloverridevirtualinherited

Implements Identifiable.

Definition at line 41 of file InDetRawData.h.

42 {
43 return m_rdoId;
44 }
Identifier m_rdoId

◆ identifyHash()

IdentifierHash Identifiable::identifyHash ( ) const
virtualinherited

Reimplemented in CaloDetDescrElement, CaloDetDescriptor, InDetRawDataCollection< RawDataT >, InDetRawDataCollection< Pixel1RawData >, InDetRawDataCollection< PixelRDORawData >, InDetRawDataCollection< PixelTB04RawData >, InDetRawDataCollection< RDO >, InDetRawDataCollection< SCT3_RawData >, InDetRawDataCollection< SCT_RDORawData >, InDetRawDataCollection< SCT_TB03_RawData >, InDetRawDataCollection< SCT_TB04_RawData >, InDetRawDataCollection< TRT_RDORawData >, InDetRawDataCollection< TRT_TB04_RawData >, Muon::MuonPrepDataCollection< PrepDataT >, Muon::MuonPrepDataCollection< CscPrepData >, Muon::MuonPrepDataCollection< CscStripPrepData >, Muon::MuonPrepDataCollection< MdtPrepData >, Muon::MuonPrepDataCollection< MMPrepData >, Muon::MuonPrepDataCollection< Muon::CscPrepData >, Muon::MuonPrepDataCollection< Muon::CscStripPrepData >, Muon::MuonPrepDataCollection< Muon::MdtPrepData >, Muon::MuonPrepDataCollection< Muon::MMPrepData >, Muon::MuonPrepDataCollection< Muon::RpcPrepData >, Muon::MuonPrepDataCollection< Muon::sTgcPrepData >, Muon::MuonPrepDataCollection< Muon::TgcPrepData >, Muon::MuonPrepDataCollection< RpcPrepData >, Muon::MuonPrepDataCollection< sTgcPrepData >, Muon::MuonPrepDataCollection< TgcPrepData >, SiChargedDiodeCollection, SpacePointCollection, Trk::PrepRawDataCollection< PrepRawDataT >, Trk::PrepRawDataCollection< HGTD_Cluster >, Trk::PrepRawDataCollection< InDet::SiCluster >, Trk::PrepRawDataCollection< PixelCluster >, Trk::PrepRawDataCollection< SCT_Cluster >, Trk::PrepRawDataCollection< TrigSiSpacePoint >, and Trk::PrepRawDataCollection< TRT_DriftCircle >.

Definition at line 11 of file Identifiable.cxx.

11 {
12 IdentifierHash result;
13 return (result);
14}

◆ merge()

void InDetRawData::merge ( const InDetRawData & other)
inlineinherited

Definition at line 60 of file InDetRawData.h.

61 {
62 m_word |= other.m_word;
63 }

◆ timeOverThreshold()

double TRT_TB04_RawData::timeOverThreshold ( ) const
virtual

Time over threshold in ns for valid digits; zero otherwise:

Implements TRT_RDORawData.

Definition at line 62 of file TRT_TB04_RawData.cxx.

63{
64 double binWidth = 3.125;
65
66 unsigned mask = 0x02000000;
67
68 int i;
69 for (i = 0; i < 24; ++i)
70 {
71 if (m_word & mask)
72 break;
73
74 mask >>= 1;
75 if (i == 7 || i == 15)
76 mask >>= 1;
77 }
78
79 //if (i == 0 || i > 16)
80 // return 0.;
81
82 mask = 0x00000001;
83
84 int j;
85 for (j = 0; j < 24; ++j)
86 {
87 if (m_word & mask)
88 break;
89
90 mask <<= 1;
91 if (j == 7 || j == 15)
92 mask <<= 1;
93 }
94
95 double time = (double) (24 - i - j) * binWidth;
96 return time;
97}
void binWidth(TH1 *h)
Definition listroot.cxx:80
time(flags, cells_name, *args, **kw)

Member Data Documentation

◆ m_rdoId

Identifier InDetRawData::m_rdoId
privateinherited

Definition at line 69 of file InDetRawData.h.

◆ m_timeword

unsigned int TRT_TB04_RawData::m_timeword
private

Definition at line 65 of file TRT_TB04_RawData.h.

◆ m_word

unsigned int InDetRawData::m_word = 0
protectedinherited

Definition at line 72 of file InDetRawData.h.


The documentation for this class was generated from the following files: