ATLAS Offline Software
Loading...
Searching...
No Matches
AFP_ToFRawData_v2.cxx
Go to the documentation of this file.
1/*
2Copyright (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
25uint32_t AFP_ToFRawData_v2::time() const
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
36void AFP_ToFRawData_v2::setTime(const uint32_t time)
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
#define ATH_MSG_WARNING(x)
Base class representing first 8 bits in a record in bytestream.
uint32_t m_pulseLength_or_triggerPattern
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC...
void setDelayedTrigger(const uint32_t 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...
uint16_t m_edge
Value of 12 most significant bit.
uint32_t triggerPattern() const
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC...
uint32_t time() const
Value of 10 (HPTDC) or 13 (picoTDC) least significant bits for time; value of 14-16 (picoTDC) most si...
uint32_t pulseLength() const
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC...
uint16_t m_channel
Value of 13-17 (HPTDC) or 14-19 (picoTDC) most significant bits.
void setPulseLength(const uint32_t pulseLength)
uint16_t m_header
Value of 9-11 (HPTDC) or 9 (picoTDC) most significant bit(s)
void setTime(const uint32_t time)
void setTriggerPattern(const uint32_t triggerPattern)
uint16_t delayedTrigger() const
Value of 10 (HPTDC) or 13 (picoTDC) least significant bits for time; value of 14-16 (picoTDC) most si...
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
=============================================================================