ATLAS Offline Software
|
Class representing data record for time-of-flight detectors. More...
#include <AFP_ToFRawData_v2.h>
Public Member Functions | |
AFP_ToFRawData_v2 () | |
AFP_ToFRawData_v2 (const AFP_ToFRawData_v2 ©) | |
uint16_t | header () const |
Value of 9-11 (HPTDC) or 9 (picoTDC) most significant bit(s) More... | |
void | setHeader (const uint16_t header) |
uint16_t | edge () const |
Value of 12 most significant bit. More... | |
void | setEdge (const uint16_t edge) |
uint16_t | channel () const |
Value of 13-17 (HPTDC) or 14-19 (picoTDC) most significant bits. More... | |
void | setChannel (const uint16_t channel) |
void | setTrigger () |
bool | isTrigger () const |
uint32_t | time () const |
Value of 10 (HPTDC) or 13 (picoTDC) least significant bits for time; value of 14-16 (picoTDC) most significant bits for delayed trigger. More... | |
void | setTime (const uint32_t time) |
uint32_t | pulseLength () const |
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC) least significant bits for trigger pattern. More... | |
void | setPulseLength (const uint32_t pulseLength) |
uint16_t | delayedTrigger () const |
Value of 10 (HPTDC) or 13 (picoTDC) least significant bits for time; value of 14-16 (picoTDC) most significant bits for delayed trigger. More... | |
void | setDelayedTrigger (const uint32_t delayedTrigger) |
uint32_t | triggerPattern () const |
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC) least significant bits for trigger pattern. More... | |
void | setTriggerPattern (const uint32_t triggerPattern) |
uint16_t | hitDiscConfig () const |
Value of third and forth most significant bits. More... | |
void | setHitDiscConfig (const uint16_t hitDiscConfig) |
uint16_t | link () const |
void | setLink (const uint16_t outlink) |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
uint16_t | m_header = 0U |
Value of 9-11 (HPTDC) or 9 (picoTDC) most significant bit(s) More... | |
uint16_t | m_edge = 0U |
Value of 12 most significant bit. More... | |
uint16_t | m_channel = 0U |
Value of 13-17 (HPTDC) or 14-19 (picoTDC) most significant bits. More... | |
const uint16_t | m_triggerChannel = 65535 |
Special value for channel number, denoting the entry is actually a trigger word. More... | |
uint32_t | m_time_or_delayedTrigger = 0U |
Value of 10 (HPTDC) or 13 (picoTDC) least significant bits for time; value of 14-16 (picoTDC) most significant bits for delayed trigger. More... | |
uint32_t | m_pulseLength_or_triggerPattern = 0U |
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC) least significant bits for trigger pattern. More... | |
uint16_t | m_hitDiscConfig = 0 |
Value of third and forth most significant bits. More... | |
uint16_t | m_link = 0 |
Values of the 5-8 most significant bits. More... | |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
Class representing data record for time-of-flight detectors.
Documentation of the format is available in the twiki page: https://twiki.cern.ch/twiki/bin/view/Atlas/AFPHPTDC#Data_Encoding
Definition at line 21 of file AFP_ToFRawData_v2.h.
AFP_ToFRawData_v2::AFP_ToFRawData_v2 | ( | ) |
Definition at line 9 of file AFP_ToFRawData_v2.cxx.
AFP_ToFRawData_v2::AFP_ToFRawData_v2 | ( | const AFP_ToFRawData_v2 & | copy | ) |
Definition at line 14 of file AFP_ToFRawData_v2.cxx.
|
inline |
Value of 13-17 (HPTDC) or 14-19 (picoTDC) most significant bits.
In the following records: HPTDC 2017: xxxx xxxx xxxx CCCC xxxx xxxx xxxx xxxx
picoTDC #1+#2: xxxx xxxx xxxx xCCC CCCx xxxx xxxx xxxx
it means bits marked with C
. Contains information about channel of the time measurement.
Definition at line 38 of file AFP_ToFRawData_v2.h.
uint16_t AFP_ToFRawData_v2::delayedTrigger | ( | ) | const |
Value of 10 (HPTDC) or 13 (picoTDC) least significant bits for time; value of 14-16 (picoTDC) most significant bits for delayed trigger.
In the following records: HPTDC 2017: xxxx xxxx xxxx xxxx xxxx xxtt tttt tttt
picoTDC #1: xxxx xxxx xxxx xxxx xxxt tttt tttt tttt
Trigger: xxxx xxxx xxxx xTTT xxxx xxxx xxxx xxxx
it means bits marked with t
or T
. Contains information about time (t
) or about delayed trigger (T
).
Definition at line 69 of file AFP_ToFRawData_v2.cxx.
|
inline |
Value of 12 most significant bit.
In the following record: xxxx xxxx xxxE xxxx xxxx xxxx xxxx xxxx
it means bits marked with E
. Contains information about signal beginning or end. Always set to 0 for picoTDC.
Definition at line 34 of file AFP_ToFRawData_v2.h.
|
inline |
Value of 9-11 (HPTDC) or 9 (picoTDC) most significant bit(s)
In the following records: HPTDC 2017: xxxx xxxx hhhx xxxx xxxx xxxx xxxx xxxx
picoTDC: xxxx xxxx hxxx xxxx xxxx xxxx xxxx xxxx
it means bits marked with h
. Contains information about time-of-flight data type or error:
Definition at line 30 of file AFP_ToFRawData_v2.h.
|
inlineinherited |
Value of third and forth most significant bits.
In the following record: xxdd xxxx xxxx xxxx xxxx xxxx xxxx xxxx
it means bits marked with d
.
Definition at line 20 of file AFP_RawDataCommonHead.h.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inline |
Definition at line 41 of file AFP_ToFRawData_v2.h.
|
inlineinherited |
Definition at line 23 of file AFP_RawDataCommonHead.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
lvl | The message level to test against |
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
uint32_t AFP_ToFRawData_v2::pulseLength | ( | ) | const |
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC) least significant bits for trigger pattern.
In the following record: HPTDC 2017: xxxx xxxx xxxx xxxx LLLL LLxx xxxx xxxx
picoTDC #2: xxxx xxxx xxxx xxxx xxxx LLLL LLLL LLLL
Trigger: xxxx xxxx xxxx xxxx PPPP PPPP PPPP PPPP
it means bits marked with L
or P
. Contains information how long signal from the bar was above threshold (L
) or information about the trigger pattern (P
).
Definition at line 47 of file AFP_ToFRawData_v2.cxx.
|
inline |
Definition at line 39 of file AFP_ToFRawData_v2.h.
void AFP_ToFRawData_v2::setDelayedTrigger | ( | const uint32_t | delayedTrigger | ) |
Definition at line 80 of file AFP_ToFRawData_v2.cxx.
|
inline |
Definition at line 35 of file AFP_ToFRawData_v2.h.
|
inline |
Definition at line 31 of file AFP_ToFRawData_v2.h.
|
inlineinherited |
Definition at line 21 of file AFP_RawDataCommonHead.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
inlineinherited |
Definition at line 24 of file AFP_RawDataCommonHead.h.
void AFP_ToFRawData_v2::setPulseLength | ( | const uint32_t | pulseLength | ) |
Definition at line 58 of file AFP_ToFRawData_v2.cxx.
void AFP_ToFRawData_v2::setTime | ( | const uint32_t | time | ) |
Definition at line 36 of file AFP_ToFRawData_v2.cxx.
|
inline |
Definition at line 40 of file AFP_ToFRawData_v2.h.
void AFP_ToFRawData_v2::setTriggerPattern | ( | const uint32_t | triggerPattern | ) |
Definition at line 102 of file AFP_ToFRawData_v2.cxx.
uint32_t AFP_ToFRawData_v2::time | ( | ) | const |
Value of 10 (HPTDC) or 13 (picoTDC) least significant bits for time; value of 14-16 (picoTDC) most significant bits for delayed trigger.
In the following records: HPTDC 2017: xxxx xxxx xxxx xxxx xxxx xxtt tttt tttt
picoTDC #1: xxxx xxxx xxxx xxxx xxxt tttt tttt tttt
Trigger: xxxx xxxx xxxx xTTT xxxx xxxx xxxx xxxx
it means bits marked with t
or T
. Contains information about time (t
) or about delayed trigger (T
).
Definition at line 25 of file AFP_ToFRawData_v2.cxx.
uint32_t AFP_ToFRawData_v2::triggerPattern | ( | ) | const |
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC) least significant bits for trigger pattern.
In the following record: HPTDC 2017: xxxx xxxx xxxx xxxx LLLL LLxx xxxx xxxx
picoTDC #2: xxxx xxxx xxxx xxxx xxxx LLLL LLLL LLLL
Trigger: xxxx xxxx xxxx xxxx PPPP PPPP PPPP PPPP
it means bits marked with L
or P
. Contains information how long signal from the bar was above threshold (L
) or information about the trigger pattern (P
).
Definition at line 91 of file AFP_ToFRawData_v2.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Value of 13-17 (HPTDC) or 14-19 (picoTDC) most significant bits.
In the following records: HPTDC 2017: xxxx xxxx xxxx CCCC xxxx xxxx xxxx xxxx
picoTDC #1+#2: xxxx xxxx xxxx xCCC CCCx xxxx xxxx xxxx
it means bits marked with C
. Contains information about channel of the time measurement.
Definition at line 86 of file AFP_ToFRawData_v2.h.
|
private |
Value of 12 most significant bit.
In the following record: xxxx xxxx xxxE xxxx xxxx xxxx xxxx xxxx
it means bits marked with E
. Contains information about signal beginning or end. Always set to 0 for picoTDC.
Definition at line 77 of file AFP_ToFRawData_v2.h.
|
private |
Value of 9-11 (HPTDC) or 9 (picoTDC) most significant bit(s)
In the following records: HPTDC 2017: xxxx xxxx hhhx xxxx xxxx xxxx xxxx xxxx
picoTDC: xxxx xxxx hxxx xxxx xxxx xxxx xxxx xxxx
it means bits marked with h
. Contains information about time-of-flight data type or error:
Definition at line 70 of file AFP_ToFRawData_v2.h.
|
privateinherited |
Value of third and forth most significant bits.
In the following record: xxdd xxxx xxxx xxxx xxxx xxxx xxxx xxxx
it means bits marked with d
.
Definition at line 33 of file AFP_RawDataCommonHead.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
privateinherited |
Values of the 5-8 most significant bits.
In the following record: xxxx LLLL xxxx xxxx xxxx xxxx xxxx xxxx
it means bits marked with L
.
Definition at line 39 of file AFP_RawDataCommonHead.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Value of 11-16 (HPTDC) or 13 (picoTDC) least significant bits for signal lenght; value of 16 (picoTDC) least significant bits for trigger pattern.
In the following record: HPTDC 2017: xxxx xxxx xxxx xxxx LLLL LLxx xxxx xxxx
picoTDC #2: xxxx xxxx xxxx xxxx xxxx LLLL LLLL LLLL
Trigger: xxxx xxxx xxxx xxxx PPPP PPPP PPPP PPPP
it means bits marked with L
or P
. Contains information how long signal from the bar was above threshold (L
) or information about the trigger pattern (P
).
Definition at line 110 of file AFP_ToFRawData_v2.h.
|
private |
Value of 10 (HPTDC) or 13 (picoTDC) least significant bits for time; value of 14-16 (picoTDC) most significant bits for delayed trigger.
In the following records: HPTDC 2017: xxxx xxxx xxxx xxxx xxxx xxtt tttt tttt
picoTDC #1: xxxx xxxx xxxx xxxx xxxt tttt tttt tttt
Trigger: xxxx xxxx xxxx xTTT xxxx xxxx xxxx xxxx
it means bits marked with t
or T
. Contains information about time (t
) or about delayed trigger (T
).
Definition at line 100 of file AFP_ToFRawData_v2.h.
|
private |
Special value for channel number, denoting the entry is actually a trigger word.
Data cannot have this channel number as there are no more than 6 bit, meaning maximum channel number is 63
Definition at line 91 of file AFP_ToFRawData_v2.h.