Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
LArDigit Class Reference

Liquid Argon digit base class. More...

#include <LArDigit.h>

Inheritance diagram for LArDigit:
Collaboration diagram for LArDigit:

Public Member Functions

virtual ~LArDigit ()=default
 Destructor. More...
 
 LArDigit ()=default
 default constructor for persistency More...
 
 LArDigit (const LArDigit &)=default
 default copy/move assignment More...
 
 LArDigit (LArDigit &&)=default
 
LArDigitoperator= (const LArDigit &)=default
 
LArDigitoperator= (LArDigit &&)=default
 
 LArDigit (const HWIdentifier &channel_value, CaloGain::CaloGain gain_value, const std::vector< short > &sample_values)
 constructor More...
 
 LArDigit (const HWIdentifier &channel_value, CaloGain::CaloGain gain_value, std::vector< short > &&sample_values)
 
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

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

Liquid Argon digit base class.

represents the output of the FrontEnd electronics: ADC time samples in a given gain for a readout channel

Definition at line 25 of file LArDigit.h.

Constructor & Destructor Documentation

◆ ~LArDigit()

virtual LArDigit::~LArDigit ( )
virtualdefault

Destructor.

◆ LArDigit() [1/5]

LArDigit::LArDigit ( )
default

default constructor for persistency

◆ LArDigit() [2/5]

LArDigit::LArDigit ( const LArDigit )
default

default copy/move assignment

◆ LArDigit() [3/5]

LArDigit::LArDigit ( LArDigit &&  )
default

◆ LArDigit() [4/5]

LArDigit::LArDigit ( const HWIdentifier channel_value,
CaloGain::CaloGain  gain_value,
const std::vector< short > &  sample_values 
)
inline

constructor

Parameters
[in]channel_valueOnline identifier
[in]gain_valueGain
[in]sample_valueReference of vector with ADC samples

Definition at line 53 of file LArDigit.h.

55  : m_hardwareID(channel_value),
56  m_gain(gain_value),
57  m_samples(sample_values) {}

◆ LArDigit() [5/5]

LArDigit::LArDigit ( const HWIdentifier channel_value,
CaloGain::CaloGain  gain_value,
std::vector< short > &&  sample_values 
)
inline

Definition at line 59 of file LArDigit.h.

61  : m_hardwareID(channel_value),
62  m_gain(gain_value),
63  m_samples(std::move(sample_values)) {}

Member Function Documentation

◆ channelID()

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

Definition at line 69 of file LArDigit.h.

69 { return m_hardwareID; }

◆ gain()

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

Definition at line 72 of file LArDigit.h.

72 { return m_gain; }

◆ hardwareID()

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

Definition at line 66 of file LArDigit.h.

66 { return m_hardwareID; }

◆ nsamples()

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

Definition at line 75 of file LArDigit.h.

75 { return m_samples.size(); }

◆ operator=() [1/2]

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

◆ operator=() [2/2]

LArDigit& LArDigit::operator= ( LArDigit &&  )
default

◆ samples()

const std::vector<short>& LArDigit::samples ( ) const
inline
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)

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_gain

CaloGain::CaloGain LArDigit::m_gain = CaloGain::UNKNOWNGAIN
private

gain

Definition at line 32 of file LArDigit.h.

◆ m_hardwareID

HWIdentifier LArDigit::m_hardwareID
private

Online Identifier.

Definition at line 29 of file LArDigit.h.

◆ m_samples

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

vector of ADC samples

Definition at line 35 of file LArDigit.h.


The documentation for this class was generated from the following files:
LArDigit::samples
const std::vector< short > & samples() const
Definition: LArDigit.h:78
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