ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LArRawChannel Class Referencefinal

Liquid Argon ROD output object base class. More...

#include <LArRawChannel.h>

Collaboration diagram for LArRawChannel:

Public Member Functions

 LArRawChannel ()
 default constructor for persistenty More...
 
 LArRawChannel (const LArRawChannel &)=default
 Default copy/move ctor/assignment. More...
 
 LArRawChannel (LArRawChannel &&)=default
 
LArRawChanneloperator= (const LArRawChannel &)=default
 
LArRawChanneloperator= (LArRawChannel &&)=default
 
 ~LArRawChannel ()=default
 destructor
More...
 
 LArRawChannel (HWIdentifier chan_id, int energy, int time, uint16_t quality, uint16_t provenance, CaloGain::CaloGain gain)
 useful constructor More...
 
HWIdentifier identify () const
 
HWIdentifier channelID () const
 
const HWIdentifierhardwareID () const
 
int energy () const
 
int time () const
 
uint16_t quality () const
 
uint16_t provenance () const
 
CaloGain::CaloGain gain () const
 

Private Attributes

HWIdentifier m_channelID
 online identifier More...
 
int m_energy
 energy in MeV More...
 
int m_time
 time in ps More...
 
union {
   int   m_quality
 
   uint16_t   m_qualProv [2]
 
}; 
 quality/provenance from pulse reconstruction More...
 
CaloGain::CaloGain m_gain
 gain information More...
 

Detailed Description

Liquid Argon ROD output object base class.

This class holds the output of a liquid argon channel when it is processed through the RODS

Objects of this type are readonly

Author
Kin Yip

move to DataVector Hong Ma

Version
00-00-02

Add raw channel gain information 25/09/2003 G.Unal


Move to HWIdentifier 10/2/2004 W. Lampl

Definition at line 40 of file LArRawChannel.h.

Constructor & Destructor Documentation

◆ LArRawChannel() [1/4]

LArRawChannel::LArRawChannel ( )
inline

default constructor for persistenty

inlines

Definition at line 126 of file LArRawChannel.h.

127  :
128  m_channelID(0),
129  m_energy(0),
130  m_time(0),
131  m_quality(0),
133 { }

◆ LArRawChannel() [2/4]

LArRawChannel::LArRawChannel ( const LArRawChannel )
default

Default copy/move ctor/assignment.

◆ LArRawChannel() [3/4]

LArRawChannel::LArRawChannel ( LArRawChannel &&  )
default

◆ ~LArRawChannel()

LArRawChannel::~LArRawChannel ( )
default

destructor

◆ LArRawChannel() [4/4]

LArRawChannel::LArRawChannel ( HWIdentifier  chan_id,
int  energy,
int  time,
uint16_t  quality,
uint16_t  provenance,
CaloGain::CaloGain  gain 
)
inline

useful constructor

Parameters
[in]chan_idOnline identifier of channel
[in]energyEnergy in MeV
[in]timetime in ps
[in]qualityQuality from pulse reconstruction
[in]provenanceProvenance of pulse reconstruction
[in]gainGain

Definition at line 136 of file LArRawChannel.h.

142  :
143  m_channelID(chan_id),
144  m_energy(energy),
145  m_time(time),
146  m_gain(gain)
147 { m_qualProv[0] = quality;
148  // cppcheck-suppress objectIndex
149  m_qualProv[1] = provenance;
150 }

Member Function Documentation

◆ channelID()

HWIdentifier LArRawChannel::channelID ( ) const
inline
Returns
online identifier

Definition at line 158 of file LArRawChannel.h.

158 { return m_channelID; }

◆ energy()

int LArRawChannel::energy ( ) const
inline
Returns
energy in MeV (rounded to integer)

Definition at line 166 of file LArRawChannel.h.

166 { return m_energy; }

◆ gain()

CaloGain::CaloGain LArRawChannel::gain ( ) const
inline
Returns
gain

Definition at line 186 of file LArRawChannel.h.

186 { return m_gain;}

◆ hardwareID()

const HWIdentifier & LArRawChannel::hardwareID ( ) const
inline

Definition at line 162 of file LArRawChannel.h.

162 {return m_channelID; }

◆ identify()

HWIdentifier LArRawChannel::identify ( ) const
inline
Returns
online identifier

Definition at line 154 of file LArRawChannel.h.

154 { return m_channelID ; }

◆ operator=() [1/2]

LArRawChannel& LArRawChannel::operator= ( const LArRawChannel )
default

◆ operator=() [2/2]

LArRawChannel& LArRawChannel::operator= ( LArRawChannel &&  )
default

◆ provenance()

uint16_t LArRawChannel::provenance ( ) const
inline
Returns
Provenance of pulse reconstruction

Definition at line 178 of file LArRawChannel.h.

179 {
180  // cppcheck-suppress objectIndex
181  return m_qualProv[1];
182 }

◆ quality()

uint16_t LArRawChannel::quality ( ) const
inline
Returns
quality from pulse reconstruction

Definition at line 174 of file LArRawChannel.h.

174 { return m_qualProv[0]; }

◆ time()

int LArRawChannel::time ( ) const
inline
Returns
time in ps (rounded to integer)

Definition at line 170 of file LArRawChannel.h.

170 { return m_time; }

Member Data Documentation

◆ @164

union { ... }

quality/provenance from pulse reconstruction

◆ m_channelID

HWIdentifier LArRawChannel::m_channelID
private

online identifier

Definition at line 96 of file LArRawChannel.h.

◆ m_energy

int LArRawChannel::m_energy
private

energy in MeV

Definition at line 98 of file LArRawChannel.h.

◆ m_gain

CaloGain::CaloGain LArRawChannel::m_gain
private

gain information

Definition at line 118 of file LArRawChannel.h.

◆ m_quality

int LArRawChannel::m_quality

Definition at line 112 of file LArRawChannel.h.

◆ m_qualProv

uint16_t LArRawChannel::m_qualProv[2]

Definition at line 113 of file LArRawChannel.h.

◆ m_time

int LArRawChannel::m_time
private

time in ps

Definition at line 100 of file LArRawChannel.h.


The documentation for this class was generated from the following file:
LArRawChannel::m_qualProv
uint16_t m_qualProv[2]
Definition: LArRawChannel.h:113
LArRawChannel::m_time
int m_time
time in ps
Definition: LArRawChannel.h:100
LArRawChannel::m_channelID
HWIdentifier m_channelID
online identifier
Definition: LArRawChannel.h:96
LArRawChannel::quality
uint16_t quality() const
Definition: LArRawChannel.h:174
LArRawChannel::m_quality
int m_quality
Definition: LArRawChannel.h:112
LArRawChannel::m_gain
CaloGain::CaloGain m_gain
gain information
Definition: LArRawChannel.h:118
CaloGain::CaloGain
CaloGain
Definition: CaloGain.h:11
LArRawChannel::time
int time() const
Definition: LArRawChannel.h:170
LArRawChannel::energy
int energy() const
Definition: LArRawChannel.h:166
LArRawChannel::gain
CaloGain::CaloGain gain() const
Definition: LArRawChannel.h:186
LArRawChannel::m_energy
int m_energy
energy in MeV
Definition: LArRawChannel.h:98
LArRawChannel::provenance
uint16_t provenance() const
Definition: LArRawChannel.h:178