ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | List of all members
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. More...
 
virtual ~TRT_TB04_RawData ()
 
virtual bool highLevel () const
 High level threshold: More...
 
virtual double timeOverThreshold () const
 Time over threshold in ns for valid digits; zero otherwise: More...
 
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_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 }

◆ 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  }

◆ identifyHash()

IdentifierHash Identifiable::identifyHash ( ) const
virtualinherited

◆ 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 }

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:
get_generator_info.result
result
Definition: get_generator_info.py:21
binWidth
void binWidth(TH1 *h)
Definition: listroot.cxx:80
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
lumiFormat.i
int i
Definition: lumiFormat.py:85
InDetRawData::m_word
unsigned int m_word
Definition: InDetRawData.h:72
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
InDetRawData::m_rdoId
Identifier m_rdoId
Definition: InDetRawData.h:69
TRT_RDORawData::TRT_RDORawData
TRT_RDORawData()=default
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
TRT_TB04_RawData::m_timeword
unsigned int m_timeword
Definition: TRT_TB04_RawData.h:65
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
Identifier
Definition: IdentifierFieldParser.cxx:14