ATLAS Offline Software
AFP_ToFRawData_v2.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef AFP_TOFRAWDATA_V2_H
6 #define AFP_TOFRAWDATA_V2_H
7 
9 
10 // to use messaging macros
12 #include "GaudiKernel/Bootstrap.h"
13 #include "GaudiKernel/ISvcLocator.h"
14 
15 #include <stdint.h>
16 
22 {
23 public:
24 
25  // these constructors are deleted by AthMessaging
28 
30  uint16_t header() const {return m_header;}
32 
34  uint16_t edge() const {return m_edge;}
35  void setEdge(const uint16_t edge) {m_edge = edge;}
36 
38  uint16_t channel() const {return m_channel;}
41  bool isTrigger() const {return m_channel==m_triggerChannel;}
42 
44  uint32_t time() const;
45  void setTime(const uint32_t time);
46 
48  uint32_t pulseLength() const;
50 
52  uint16_t delayedTrigger() const;
54 
56  uint32_t triggerPattern() const;
58 
59 private:
71 
78 
87 
91  const uint16_t m_triggerChannel = 65535;
92 
101 
111 
112 };
113 #endif
header
Definition: hcg.cxx:526
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
AFP_RawDataCommonHead.h
AFP_ToFRawData_v2::channel
uint16_t channel() const
Value of 13-17 (HPTDC) or 14-19 (picoTDC) most significant bits.
Definition: AFP_ToFRawData_v2.h:38
AFP_ToFRawData_v2::setEdge
void setEdge(const uint16_t edge)
Definition: AFP_ToFRawData_v2.h:35
AFP_ToFRawData_v2::edge
uint16_t edge() const
Value of 12 most significant bit.
Definition: AFP_ToFRawData_v2.h:34
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
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::header
uint16_t header() const
Value of 9-11 (HPTDC) or 9 (picoTDC) most significant bit(s)
Definition: AFP_ToFRawData_v2.h:30
AFP_ToFRawData_v2::AFP_ToFRawData_v2
AFP_ToFRawData_v2()
Definition: AFP_ToFRawData_v2.cxx:9
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
AthMessaging.h
AFP_RawDataCommonHead
Base class representing first 8 bits in a record in bytestream.
Definition: AFP_RawDataCommonHead.h:17
AFP_ToFRawData_v2::setHeader
void setHeader(const uint16_t header)
Definition: AFP_ToFRawData_v2.h:31
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
AFP_ToFRawData_v2::m_triggerChannel
const uint16_t m_triggerChannel
Special value for channel number, denoting the entry is actually a trigger word.
Definition: AFP_ToFRawData_v2.h:91
AFP_ToFRawData_v2::setTrigger
void setTrigger()
Definition: AFP_ToFRawData_v2.h:40
AFP_ToFRawData_v2::setChannel
void setChannel(const uint16_t channel)
Definition: AFP_ToFRawData_v2.h:39