ATLAS Offline Software
Loading...
Searching...
No Matches
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
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;
101 }
102
103 private:
105 unsigned int m_channel;
106 unsigned int m_adc;
108 float m_time;
110};
111
112#endif
113
void set(unsigned int channel, unsigned int adc, float amplitude, float time, float quality)
TileFastRawChannel(unsigned int channel, unsigned int adc, float amplitude, float time, float quality)
unsigned int adc(void) const
void set(int frag, unsigned int channel, unsigned int adc, float amplitude, float time, float quality)
float time(void) const
float quality(void) const
TileFastRawChannel(int frag, unsigned int channel, unsigned int adc, float amplitude, float time, float quality)
float amplitude(void) const
unsigned int channel(void) const
unsigned int frag(void) const