ATLAS Offline Software
Loading...
Searching...
No Matches
AFP_ToFRawData_v1.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef AFP_TOFRAWDATA_V1_H
6#define AFP_TOFRAWDATA_V1_H
7
9
10#include <stdint.h>
11
17{
18public:
20 uint16_t header() const {return m_header;}
21 void setHeader(const uint16_t header) {m_header = header;}
22
24 uint16_t edge() const {return m_edge;}
25 void setEdge(const uint16_t edge) {m_edge = edge;}
26
28 uint16_t channel() const {return m_channel;}
29 void setChannel(const uint16_t channel) {m_channel = channel;}
30
32 uint32_t time() const {return m_time;}
33 void setTime(const uint32_t time) {m_time = time;}
34
36 uint32_t pulseLength() const {return m_pulseLength;}
38
39private:
47 uint16_t m_header;
48
54 uint16_t m_edge;
55
61 uint16_t m_channel;
62
67 uint32_t m_time;
68
74 uint32_t m_pulseLength;
75};
76#endif
Base class representing first 8 bits in a record in bytestream.
Class representing data record for time-of-flight detectors.
uint16_t channel() const
Value of 13-17 most significant bits.
void setHeader(const uint16_t header)
void setTime(const uint32_t time)
void setChannel(const uint16_t channel)
uint32_t time() const
Value of 10 least significant bits.
uint16_t edge() const
Value of 12 most significant bit.
uint16_t m_channel
Value of 13-17 most significant bits.
uint16_t m_header
Value of 9-11 most significant bits.
void setEdge(const uint16_t edge)
uint32_t pulseLength() const
Value of 11-16 least significant bits.
uint16_t m_edge
Value of 12 most significant bit.
void setPulseLength(const uint32_t pulseLength)
uint16_t header() const
Value of 9-11 most significant bits.
uint32_t m_time
Value of 10 least significant bits.
uint32_t m_pulseLength
Value of 11-16 least significant bits.