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

Base class for LArDigits taken by LATOME. More...

#include <LArSCDigit.h>

Inheritance diagram for LArSCDigit:
Collaboration diagram for LArSCDigit:

Public Member Functions

 LArSCDigit (const HWIdentifier &channel_value, short channel, unsigned int sourceId, const std::vector< short > &sample_values, const std::vector< unsigned short > &bcids)
 
short Channel () const
 
unsigned int SourceId () const
 
const std::vector< unsigned short > & BCId () const
 
virtual ~LArSCDigit ()=default
 Destructor. More...
 
 LArSCDigit ()
 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_chan
 LATOME channel. More...
 
uint32_t m_sourceId
 LATOME source Id. More...
 
std::vector< uint16_t > m_BCId
 vector of BCID 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 by LATOME.

Additional data members to LArDigits are the LATOME channel number and the vector of BCIDs

Author
Pavol Strizenec

Definition at line 19 of file LArSCDigit.h.

Constructor & Destructor Documentation

◆ LArSCDigit() [1/2]

LArSCDigit::LArSCDigit ( const HWIdentifier channel_value,
short  channel,
unsigned int  sourceId,
const std::vector< short > &  sample_values,
const std::vector< unsigned short > &  bcids 
)
inline

Definition at line 34 of file LArSCDigit.h.

36  :
37  LArDigit(channel_value, CaloGain::LARHIGHGAIN, sample_values),
38  m_chan(channel), m_sourceId(sourceId), m_BCId(std::move(bcids))
39  {};

◆ ~LArSCDigit()

virtual LArSCDigit::~LArSCDigit ( )
virtualdefault

Destructor.

◆ LArSCDigit() [2/2]

LArSCDigit::LArSCDigit ( )

default constructor for persistency

Definition at line 8 of file LArSCDigit.cxx.

9  : LArDigit(),
10  m_chan(0),m_sourceId(0)
11 {}

Member Function Documentation

◆ BCId()

const std::vector<unsigned short>& LArSCDigit::BCId ( ) const
inline
Returns
bcids

Definition at line 48 of file LArSCDigit.h.

48 {return m_BCId;}

◆ Channel()

short LArSCDigit::Channel ( ) const
inline
Returns
channel value

Definition at line 42 of file LArSCDigit.h.

42 {return static_cast<short>(m_chan);}

◆ channelID()

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

Definition at line 69 of file LArDigit.h.

69 { return m_hardwareID; }

◆ 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; }

◆ 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 }

◆ SourceId()

unsigned int LArSCDigit::SourceId ( ) const
inline
Returns
source Id value

Definition at line 45 of file LArSCDigit.h.

45 {return static_cast<unsigned int>(m_sourceId);}

Member Data Documentation

◆ m_BCId

std::vector<uint16_t> LArSCDigit::m_BCId
private

vector of BCID

Definition at line 30 of file LArSCDigit.h.

◆ m_chan

uint16_t LArSCDigit::m_chan
private

LATOME channel.

Definition at line 24 of file LArSCDigit.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.

◆ m_sourceId

uint32_t LArSCDigit::m_sourceId
private

LATOME source Id.

Definition at line 27 of file LArSCDigit.h.


The documentation for this class was generated from the following files:
LArSCDigit::m_chan
uint16_t m_chan
LATOME channel.
Definition: LArSCDigit.h:24
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
LArDigit::LArDigit
LArDigit()=default
default constructor for persistency
LArDigit::samples
const std::vector< short > & samples() const
Definition: LArDigit.h:78
LArSCDigit::m_sourceId
uint32_t m_sourceId
LATOME source Id.
Definition: LArSCDigit.h:27
LArDigit::m_gain
CaloGain::CaloGain m_gain
gain
Definition: LArDigit.h:32
LArSCDigit::m_BCId
std::vector< uint16_t > m_BCId
vector of BCID
Definition: LArSCDigit.h:30
CaloGain::LARHIGHGAIN
@ LARHIGHGAIN
Definition: CaloGain.h:18
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