ATLAS Offline Software
AFP_ToFRawData_v2.cxx
Go to the documentation of this file.
1 /*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 
8 
10  AthMessaging(Gaudi::svcLocator()->service< IMessageSvc >("MessageSvc"),"AFP_ToFRawData_v2")
11 {}
12 
13 
15  AthMessaging(Gaudi::svcLocator()->service< IMessageSvc >("MessageSvc"),"AFP_ToFRawData_v2")
16 {
17  m_header=copy.m_header;
18  m_edge=copy.m_edge;
19  m_channel=copy.m_channel;
20  m_time_or_delayedTrigger=copy.m_time_or_delayedTrigger;
21  m_pulseLength_or_triggerPattern=copy.m_pulseLength_or_triggerPattern;
22 }
23 
24 
26 {
27  if(this->isTrigger())
28  {
29  ATH_MSG_WARNING("asking for time but this is a trigger word, returning 0");
30  return 0;
31  }
33 }
34 
35 
37 {
38  if(this->isTrigger())
39  {
40  ATH_MSG_WARNING("trying to set time but this is a trigger word, not setting anything");
41  return;
42  }
44 }
45 
46 
48 {
49  if(this->isTrigger())
50  {
51  ATH_MSG_WARNING("asking for pulseLength but this is a trigger word, returning 0");
52  return 0;
53  }
55 }
56 
57 
59 {
60  if(this->isTrigger())
61  {
62  ATH_MSG_WARNING("trying to set pulseLength but this is a trigger word, not setting anything");
63  return;
64  }
66 }
67 
68 
70 {
71  if(!this->isTrigger())
72  {
73  ATH_MSG_WARNING("asking for delayedTrigger but this is not a trigger word, returning 0");
74  return 0;
75  }
77 }
78 
79 
81 {
82  if(!this->isTrigger())
83  {
84  ATH_MSG_WARNING("trying to set delayedTrigger but this is not a trigger word, not setting anything");
85  return;
86  }
88 }
89 
90 
92 {
93  if(!this->isTrigger())
94  {
95  ATH_MSG_WARNING("asking for triggerPattern but this is not a trigger word, returning 0");
96  return 0;
97  }
99 }
100 
101 
103 {
104  if(!this->isTrigger())
105  {
106  ATH_MSG_WARNING("trying to set triggerPattern but this is not a trigger word, not setting anything");
107  return;
108  }
110 }
111 
AFP_ToFRawData_v2.h
AFP_ToFRawData_v2::m_channel
uint16_t m_channel
Value of 13-17 (HPTDC) or 14-19 (picoTDC) most significant bits.
Definition: AFP_ToFRawData_v2.h:86
AFP_ToFRawData_v2::m_pulseLength_or_triggerPattern
uint32_t m_pulseLength_or_triggerPattern
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC...
Definition: AFP_ToFRawData_v2.h:110
AFP_ToFRawData_v2::m_edge
uint16_t m_edge
Value of 12 most significant bit.
Definition: AFP_ToFRawData_v2.h:77
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
triggerPattern
triggerPattern
Definition: sTGCenumeration.h:85
AFP_ToFRawData_v2::time
uint32_t time() const
Value of 10 (HPTDC) or 13 (picoTDC) least significant bits for time; value of 14-16 (picoTDC) most si...
Definition: AFP_ToFRawData_v2.cxx:25
AFP_ToFRawData_v2::m_time_or_delayedTrigger
uint32_t m_time_or_delayedTrigger
Value of 10 (HPTDC) or 13 (picoTDC) least significant bits for time; value of 14-16 (picoTDC) most si...
Definition: AFP_ToFRawData_v2.h:100
AFP_ToFRawData_v2::isTrigger
bool isTrigger() const
Definition: AFP_ToFRawData_v2.h:41
AFP_ToFRawData_v2
Class representing data record for time-of-flight detectors.
Definition: AFP_ToFRawData_v2.h:22
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
AFP_ToFRawData_v2::setTime
void setTime(const uint32_t time)
Definition: AFP_ToFRawData_v2.cxx:36
AFP_ToFRawData_v2::triggerPattern
uint32_t triggerPattern() const
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC...
Definition: AFP_ToFRawData_v2.cxx:91
AFP_ToFRawData_v2::pulseLength
uint32_t pulseLength() const
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC...
Definition: AFP_ToFRawData_v2.cxx:47
AFP_ToFRawData_v2::setPulseLength
void setPulseLength(const uint32_t pulseLength)
Definition: AFP_ToFRawData_v2.cxx:58
AFP_ToFRawData_v2::setTriggerPattern
void setTriggerPattern(const uint32_t triggerPattern)
Definition: AFP_ToFRawData_v2.cxx:102
AFP_ToFRawData_v2::AFP_ToFRawData_v2
AFP_ToFRawData_v2()
Definition: AFP_ToFRawData_v2.cxx:9
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AFP_ToFRawData_v2::delayedTrigger
uint16_t delayedTrigger() const
Value of 10 (HPTDC) or 13 (picoTDC) least significant bits for time; value of 14-16 (picoTDC) most si...
Definition: AFP_ToFRawData_v2.cxx:69
AFP_RawDataCommonHead
Base class representing first 8 bits in a record in bytestream.
Definition: AFP_RawDataCommonHead.h:17
Gaudi
=============================================================================
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:273
calibdata.copy
bool copy
Definition: calibdata.py:27
AFP_ToFRawData_v2::m_header
uint16_t m_header
Value of 9-11 (HPTDC) or 9 (picoTDC) most significant bit(s)
Definition: AFP_ToFRawData_v2.h:70
AFP_ToFRawData_v2::setDelayedTrigger
void setDelayedTrigger(const uint32_t delayedTrigger)
Definition: AFP_ToFRawData_v2.cxx:80