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

Base class for LArDigits taken during calibration runs. More...

#include <LArCalibDigit.h>

Inheritance diagram for LArCalibDigit:
Collaboration diagram for LArCalibDigit:

Public Member Functions

 LArCalibDigit (HWIdentifier &channel_value, CaloGain::CaloGain gain_value, const std::vector< short > &sample_values, uint16_t DAC_value, uint16_t delay_value, bool isPulsed_value)
 constructor More...
 
int DAC () const
 
int delay () const
 
bool isPulsed () const
 
virtual ~LArCalibDigit ()
 Destructor. More...
 
 LArCalibDigit ()
 default constructor for persistency More...
 
const HWIdentifierhardwareID () const
 
const HWIdentifierchannelID () const
 
CaloGain::CaloGain gain () const
 
int nsamples () const
 
const std::vector< short > & samples () const
 
void setSamples (const std::vector< short > &samples)
 Set new digits in object. More...
 

Private Attributes

uint16_t m_DAC
 DAC-Value. More...
 
uint16_t m_delayPulsed
 Delay-Value and isPulsed boolean encoded in this variable. More...
 
HWIdentifier m_hardwareID
 Online Identifier. More...
 
CaloGain::CaloGain m_gain = CaloGain::UNKNOWNGAIN
 gain More...
 
std::vector< short > m_samples
 vector of ADC samples More...
 

Detailed Description

Base class for LArDigits taken during calibration runs.


Modifications: 10/02//2004: Move to HWIdentifer (replaces LArSignalChannelID) Walter Lampl

Additional data members to LArDigits are the DAC value, the delay value and a bool that tells whether the cell was pulsed or not

Author
Walter Lampl

Definition at line 29 of file LArCalibDigit.h.

Constructor & Destructor Documentation

◆ LArCalibDigit() [1/2]

LArCalibDigit::LArCalibDigit ( HWIdentifier channel_value,
CaloGain::CaloGain  gain_value,
const std::vector< short > &  sample_values,
uint16_t  DAC_value,
uint16_t  delay_value,
bool  isPulsed_value 
)
inline

constructor

Parameters
[in]channel_valueonline channel identifier
[in]gain_valueGain
[in]sample_valuesreference to vector of ADC time samples
[in]DAC_valueDAC
[in]delay_valuedelay
[in]isPulsed_valuebool to tell if channel is pulse by calibration system

Definition at line 49 of file LArCalibDigit.h.

50  :
51  LArDigit(channel_value, gain_value, sample_values), m_DAC(DAC_value),
52  m_delayPulsed((delay_value & 0x7FFF) | ((uint16_t)isPulsed_value<<15 ))//, m_isPulsed(isPulsed_value)
53  {};

◆ ~LArCalibDigit()

LArCalibDigit::~LArCalibDigit ( )
virtualdefault

Destructor.

◆ LArCalibDigit() [2/2]

LArCalibDigit::LArCalibDigit ( )

default constructor for persistency

Definition at line 12 of file LArCalibDigit.cxx.

13  : LArDigit(),
14  m_DAC(0),
15  m_delayPulsed(0)
16 {}

Member Function Documentation

◆ channelID()

const HWIdentifier& LArDigit::channelID ( ) const
inlineinherited
Returns
channel ID

Definition at line 69 of file LArDigit.h.

69 { return m_hardwareID; }

◆ DAC()

int LArCalibDigit::DAC ( ) const
inline
Returns
DAC value

Definition at line 56 of file LArCalibDigit.h.

56 {return static_cast<int>(m_DAC);}

◆ delay()

int LArCalibDigit::delay ( ) const
inline
Returns
delay value

Definition at line 59 of file LArCalibDigit.h.

59 {return static_cast<int>(m_delayPulsed & 0x7FFF);}

◆ gain()

CaloGain::CaloGain LArDigit::gain ( ) const
inlineinherited
Returns
gain value

Definition at line 72 of file LArDigit.h.

72 { return m_gain; }

◆ hardwareID()

const HWIdentifier& LArDigit::hardwareID ( ) const
inlineinherited
Returns
HWIdentifier

Definition at line 66 of file LArDigit.h.

66 { return m_hardwareID; }

◆ isPulsed()

bool LArCalibDigit::isPulsed ( ) const
inline
Returns
isPulsed flag

Definition at line 62 of file LArCalibDigit.h.

62 {return static_cast<bool>(m_delayPulsed & 0x8000);}

◆ nsamples()

int LArDigit::nsamples ( ) const
inlineinherited
Returns
number of samples

Definition at line 75 of file LArDigit.h.

75 { return m_samples.size(); }

◆ samples()

const std::vector<short>& LArDigit::samples ( ) const
inlineinherited
Returns
a reference to a stl vector containing the sample values

Definition at line 78 of file LArDigit.h.

78 { return m_samples; }

◆ setSamples()

void LArDigit::setSamples ( const std::vector< short > &  samples)
inherited

Set new digits in object.

Parameters
[in]samplesvector of ADC time samples

Definition at line 8 of file LArDigit.cxx.

9 {
10  m_samples.clear();
12 }

Member Data Documentation

◆ m_DAC

uint16_t LArCalibDigit::m_DAC
private

DAC-Value.

Definition at line 34 of file LArCalibDigit.h.

◆ m_delayPulsed

uint16_t LArCalibDigit::m_delayPulsed
private

Delay-Value and isPulsed boolean encoded in this variable.

Definition at line 37 of file LArCalibDigit.h.

◆ m_gain

CaloGain::CaloGain LArDigit::m_gain = CaloGain::UNKNOWNGAIN
privateinherited

gain

Definition at line 32 of file LArDigit.h.

◆ m_hardwareID

HWIdentifier LArDigit::m_hardwareID
privateinherited

Online Identifier.

Definition at line 29 of file LArDigit.h.

◆ m_samples

std::vector<short> LArDigit::m_samples
privateinherited

vector of ADC samples

Definition at line 35 of file LArDigit.h.


The documentation for this class was generated from the following files:
LArCalibDigit::m_DAC
uint16_t m_DAC
DAC-Value.
Definition: LArCalibDigit.h:34
LArCalibDigit::m_delayPulsed
uint16_t m_delayPulsed
Delay-Value and isPulsed boolean encoded in this variable.
Definition: LArCalibDigit.h:37
LArDigit::LArDigit
LArDigit()=default
default constructor for persistency
LArDigit::samples
const std::vector< short > & samples() const
Definition: LArDigit.h:78
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
LArDigit::m_gain
CaloGain::CaloGain m_gain
gain
Definition: LArDigit.h:32
LArDigit::m_samples
std::vector< short > m_samples
vector of ADC samples
Definition: LArDigit.h:35
LArDigit::m_hardwareID
HWIdentifier m_hardwareID
Online Identifier.
Definition: LArDigit.h:29