ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
AFP_ToFRawData_v1 Class Reference

Class representing data record for time-of-flight detectors. More...

#include <AFP_ToFRawData_v1.h>

Inheritance diagram for AFP_ToFRawData_v1:
Collaboration diagram for AFP_ToFRawData_v1:

Public Member Functions

uint16_t header () const
 Value of 9-11 most significant bits. 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 most significant bits. More...
 
void setChannel (const uint16_t channel)
 
uint32_t time () const
 Value of 10 least significant bits. More...
 
void setTime (const uint32_t time)
 
uint32_t pulseLength () const
 Value of 11-16 least significant bits. More...
 
void setPulseLength (const uint32_t pulseLength)
 
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)
 

Private Attributes

uint16_t m_header
 Value of 9-11 most significant bits. More...
 
uint16_t m_edge
 Value of 12 most significant bit. More...
 
uint16_t m_channel
 Value of 13-17 most significant bits. More...
 
uint32_t m_time
 Value of 10 least significant bits. More...
 
uint32_t m_pulseLength
 Value of 11-16 least significant bits. 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...
 

Detailed Description

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 16 of file AFP_ToFRawData_v1.h.

Member Function Documentation

◆ channel()

uint16_t AFP_ToFRawData_v1::channel ( ) const
inline

Value of 13-17 most significant bits.

In the following record: xxxx xxxx xxxx CCCC xxxx xxxx xxxx xxxx it means bits marked with C. Contains information about channel in HPTDC of the time measurement.

Definition at line 28 of file AFP_ToFRawData_v1.h.

28 {return m_channel;}

◆ edge()

uint16_t AFP_ToFRawData_v1::edge ( ) const
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.

Definition at line 24 of file AFP_ToFRawData_v1.h.

24 {return m_edge;}

◆ header()

uint16_t AFP_ToFRawData_v1::header ( ) const
inline

Value of 9-11 most significant bits.

In the following record: xxxx xxxx hhhx xxxx xxxx xxxx xxxx xxxx it means bits marked with h. Contains information about time-of-flight data type or error:

  • value 0 means TDC header
  • value 2 means hit measurement
  • value 3 is per event error

Definition at line 20 of file AFP_ToFRawData_v1.h.

20 {return m_header;}

◆ hitDiscConfig()

uint16_t AFP_RawDataCommonHead::hitDiscConfig ( ) const
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.

  • values 0-2 are used by silicon detectors
  • value 3 represent time-of-flight detector

Definition at line 20 of file AFP_RawDataCommonHead.h.

20 {return m_hitDiscConfig;};

◆ link()

uint16_t AFP_RawDataCommonHead::link ( ) const
inlineinherited

Definition at line 23 of file AFP_RawDataCommonHead.h.

23 {return m_link;};

◆ pulseLength()

uint32_t AFP_ToFRawData_v1::pulseLength ( ) const
inline

Value of 11-16 least significant bits.

In the following record: xxxx xxxx xxxx xxxx LLLL LLxx xxxx xxxx it means bits marked with L. Contains information how long signal from the bar was above threshold.

Definition at line 36 of file AFP_ToFRawData_v1.h.

36 {return m_pulseLength;}

◆ setChannel()

void AFP_ToFRawData_v1::setChannel ( const uint16_t  channel)
inline

Definition at line 29 of file AFP_ToFRawData_v1.h.

29 {m_channel = channel;}

◆ setEdge()

void AFP_ToFRawData_v1::setEdge ( const uint16_t  edge)
inline

Definition at line 25 of file AFP_ToFRawData_v1.h.

25 {m_edge = edge;}

◆ setHeader()

void AFP_ToFRawData_v1::setHeader ( const uint16_t  header)
inline

Definition at line 21 of file AFP_ToFRawData_v1.h.

21 {m_header = header;}

◆ setHitDiscConfig()

void AFP_RawDataCommonHead::setHitDiscConfig ( const uint16_t  hitDiscConfig)
inlineinherited

Definition at line 21 of file AFP_RawDataCommonHead.h.

◆ setLink()

void AFP_RawDataCommonHead::setLink ( const uint16_t  outlink)
inlineinherited

Definition at line 24 of file AFP_RawDataCommonHead.h.

24 {m_link = outlink;}

◆ setPulseLength()

void AFP_ToFRawData_v1::setPulseLength ( const uint32_t  pulseLength)
inline

Definition at line 37 of file AFP_ToFRawData_v1.h.

◆ setTime()

void AFP_ToFRawData_v1::setTime ( const uint32_t  time)
inline

Definition at line 33 of file AFP_ToFRawData_v1.h.

33 {m_time = time;}

◆ time()

uint32_t AFP_ToFRawData_v1::time ( ) const
inline

Value of 10 least significant bits.

In the following record: xxxx xxxx xxxx xxxx xxxx xxtt tttt tttt it means bits marked with t. Contains information about time.

Definition at line 32 of file AFP_ToFRawData_v1.h.

32 {return m_time;}

Member Data Documentation

◆ m_channel

uint16_t AFP_ToFRawData_v1::m_channel
private

Value of 13-17 most significant bits.

In the following record: xxxx xxxx xxxx CCCC xxxx xxxx xxxx xxxx it means bits marked with C. Contains information about channel in HPTDC of the time measurement.

Definition at line 61 of file AFP_ToFRawData_v1.h.

◆ m_edge

uint16_t AFP_ToFRawData_v1::m_edge
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.

Definition at line 54 of file AFP_ToFRawData_v1.h.

◆ m_header

uint16_t AFP_ToFRawData_v1::m_header
private

Value of 9-11 most significant bits.

In the following record: xxxx xxxx hhhx xxxx xxxx xxxx xxxx xxxx it means bits marked with h. Contains information about time-of-flight data type or error:

  • value 0 means TDC header
  • value 2 means hit measurement
  • value 3 is per event error

Definition at line 47 of file AFP_ToFRawData_v1.h.

◆ m_hitDiscConfig

uint16_t AFP_RawDataCommonHead::m_hitDiscConfig = 0
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.

  • values 0-2 are used by silicon detectors
  • value 3 represent time-of-flight detector

Definition at line 33 of file AFP_RawDataCommonHead.h.

◆ m_link

uint16_t AFP_RawDataCommonHead::m_link = 0
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.

◆ m_pulseLength

uint32_t AFP_ToFRawData_v1::m_pulseLength
private

Value of 11-16 least significant bits.

In the following record: xxxx xxxx xxxx xxxx LLLL LLxx xxxx xxxx it means bits marked with L. Contains information how long signal from the bar was above threshold.

Definition at line 74 of file AFP_ToFRawData_v1.h.

◆ m_time

uint32_t AFP_ToFRawData_v1::m_time
private

Value of 10 least significant bits.

In the following record: xxxx xxxx xxxx xxxx xxxx xxtt tttt tttt it means bits marked with t. Contains information about time.

Definition at line 67 of file AFP_ToFRawData_v1.h.


The documentation for this class was generated from the following file:
AFP_ToFRawData_v1::pulseLength
uint32_t pulseLength() const
Value of 11-16 least significant bits.
Definition: AFP_ToFRawData_v1.h:36
AFP_ToFRawData_v1::m_time
uint32_t m_time
Value of 10 least significant bits.
Definition: AFP_ToFRawData_v1.h:67
AFP_ToFRawData_v1::time
uint32_t time() const
Value of 10 least significant bits.
Definition: AFP_ToFRawData_v1.h:32
AFP_RawDataCommonHead::m_hitDiscConfig
uint16_t m_hitDiscConfig
Value of third and forth most significant bits.
Definition: AFP_RawDataCommonHead.h:33
AFP_ToFRawData_v1::m_channel
uint16_t m_channel
Value of 13-17 most significant bits.
Definition: AFP_ToFRawData_v1.h:61
AFP_ToFRawData_v1::channel
uint16_t channel() const
Value of 13-17 most significant bits.
Definition: AFP_ToFRawData_v1.h:28
AFP_RawDataCommonHead::m_link
uint16_t m_link
Values of the 5-8 most significant bits.
Definition: AFP_RawDataCommonHead.h:39
AFP_ToFRawData_v1::edge
uint16_t edge() const
Value of 12 most significant bit.
Definition: AFP_ToFRawData_v1.h:24
AFP_ToFRawData_v1::m_edge
uint16_t m_edge
Value of 12 most significant bit.
Definition: AFP_ToFRawData_v1.h:54
AFP_RawDataCommonHead::hitDiscConfig
uint16_t hitDiscConfig() const
Value of third and forth most significant bits.
Definition: AFP_RawDataCommonHead.h:20
AFP_ToFRawData_v1::m_header
uint16_t m_header
Value of 9-11 most significant bits.
Definition: AFP_ToFRawData_v1.h:47
AFP_ToFRawData_v1::m_pulseLength
uint32_t m_pulseLength
Value of 11-16 least significant bits.
Definition: AFP_ToFRawData_v1.h:74
AFP_ToFRawData_v1::header
uint16_t header() const
Value of 9-11 most significant bits.
Definition: AFP_ToFRawData_v1.h:20