ATLAS Offline Software
Loading...
Searching...
No Matches
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{
23public:
24
25 // these constructors are deleted by AthMessaging
28
30 uint16_t header() const {return m_header;}
31 void setHeader(const uint16_t header) {m_header = 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;}
39 void setChannel(const uint16_t channel) {m_channel = 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;
49 void setPulseLength(const uint32_t pulseLength);
50
52 uint16_t delayedTrigger() const;
53 void setDelayedTrigger(const uint32_t delayedTrigger);
54
56 uint32_t triggerPattern() const;
57 void setTriggerPattern(const uint32_t triggerPattern);
58
59private:
70 uint16_t m_header = 0U;
71
77 uint16_t m_edge = 0U;
78
86 uint16_t m_channel = 0U;
87
91 const uint16_t m_triggerChannel = 65535;
92
101
111
112};
113#endif
Base class representing first 8 bits in a record in bytestream.
const uint16_t m_triggerChannel
Special value for channel number, denoting the entry is actually a trigger word.
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 edge() const
Value of 12 most significant bit.
uint16_t header() const
Value of 9-11 (HPTDC) or 9 (picoTDC) most significant bit(s)
void setChannel(const uint16_t channel)
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...
void setHeader(const uint16_t header)
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 setEdge(const uint16_t edge)
uint16_t channel() const
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.