ATLAS Offline Software
TileFastRawChannel.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 TILEEVENT_TILEFASTRAWCHANNEL_H
6 #define TILEEVENT_TILEFASTRAWCHANNEL_H
7 
8 /*
9  Author : Denis Oliveira Damazio
10  Date : 01/18/2006
11  Very simple class to hold, during HLT operation,
12  the channel output before combining into cells.
13  */
14 
16 
18 
19  public:
21  : m_frag(-1)
22  , m_channel(0)
23  , m_adc(0)
24  , m_amplitude(0.0F)
25  , m_time(0.0F)
26  , m_quality(0.0) {
27  }
28 
29  TileFastRawChannel (unsigned int channel,
30  unsigned int adc,
31  float amplitude,
32  float time,
33  float quality)
34  : m_frag(-1)
36  , m_adc(adc)
38  , m_time(time)
40  {
41  }
42 
44  unsigned int channel,
45  unsigned int adc,
46  float amplitude,
47  float time,
48  float quality)
49  : m_frag(frag)
51  , m_adc(adc)
53  , m_time(time)
55  {
56  }
57 
58 
59  inline unsigned int frag(void) const {
60  return m_frag;
61  }
62 
63  inline unsigned int channel(void) const {
64  return m_channel;
65  }
66 
67  inline unsigned int adc(void) const {
68  return m_adc;
69  }
70 
71  inline float amplitude(void) const {
72  return m_amplitude;
73  }
74 
75  inline float time(void) const {
76  return m_time;
77  }
78 
79  inline float quality(void) const {
80  return m_quality;
81  }
82 
83  inline void set(unsigned int channel, unsigned int adc, float amplitude, float time,
84  float quality) {
85  m_frag = -1;
87  m_adc = adc;
89  m_time = time;
91  }
92 
93  inline void set(int frag, unsigned int channel, unsigned int adc, float amplitude,
94  float time, float quality) {
95  m_frag = frag;
97  m_adc = adc;
99  m_time = time;
100  m_quality = quality;
101  }
102 
103  private:
104  int m_frag;
105  unsigned int m_channel;
106  unsigned int m_adc;
107  float m_amplitude;
108  float m_time;
109  float m_quality;
110 };
111 
112 #endif
113 
TileFastRawChannel::adc
unsigned int adc(void) const
Definition: TileFastRawChannel.h:67
TileFastRawChannel::time
float time(void) const
Definition: TileFastRawChannel.h:75
TileFastRawChannel::set
void set(int frag, unsigned int channel, unsigned int adc, float amplitude, float time, float quality)
Definition: TileFastRawChannel.h:93
TileFastRawChannel::frag
unsigned int frag(void) const
Definition: TileFastRawChannel.h:59
TileFastRawChannel::channel
unsigned int channel(void) const
Definition: TileFastRawChannel.h:63
TileFastRawChannel::TileFastRawChannel
TileFastRawChannel(unsigned int channel, unsigned int adc, float amplitude, float time, float quality)
Definition: TileFastRawChannel.h:29
TileFastRawChannel::m_time
float m_time
Definition: TileFastRawChannel.h:108
TileFastRawChannel::quality
float quality(void) const
Definition: TileFastRawChannel.h:79
TileFastRawChannel::set
void set(unsigned int channel, unsigned int adc, float amplitude, float time, float quality)
Definition: TileFastRawChannel.h:83
TileFastRawChannel::m_amplitude
float m_amplitude
Definition: TileFastRawChannel.h:107
TileFastRawChannel::m_channel
unsigned int m_channel
Definition: TileFastRawChannel.h:105
HWIdentifier.h
TileFastRawChannel::TileFastRawChannel
TileFastRawChannel(int frag, unsigned int channel, unsigned int adc, float amplitude, float time, float quality)
Definition: TileFastRawChannel.h:43
TileFastRawChannel::m_frag
int m_frag
Definition: TileFastRawChannel.h:104
TileFastRawChannel::amplitude
float amplitude(void) const
Definition: TileFastRawChannel.h:71
TileFastRawChannel::m_adc
unsigned int m_adc
Definition: TileFastRawChannel.h:106
F
#define F(x, y, z)
Definition: MD5.cxx:112
TileFastRawChannel::TileFastRawChannel
TileFastRawChannel()
Definition: TileFastRawChannel.h:20
TileFastRawChannel
Definition: TileFastRawChannel.h:17
TileFastRawChannel::m_quality
float m_quality
Definition: TileFastRawChannel.h:109