ATLAS Offline Software
Loading...
Searching...
No Matches
LArRawSC Class Referencefinal

Liquid Argon SuperCell raw data. More...

#include <LArRawSC.h>

Collaboration diagram for LArRawSC:

Public Member Functions

 LArRawSC (const HWIdentifier &channel_value, const short chan, const unsigned int sourceId, const std::vector< int > &energies, const std::vector< unsigned short > &bcids, std::vector< bool > &satur)
 constructor
 LArRawSC (const HWIdentifier &channel_value, const short chan, const unsigned int sourceId, std::vector< int > &&energies, std::vector< unsigned short > &&bcids, std::vector< bool > &&satur)
const HWIdentifierhardwareID () const
short chan () const
unsigned int SourceId () const
int nsamples () const
const std::vector< int > & energies () const
const std::vector< unsigned short > & bcids () const
const std::vector< bool > & satur () const
const std::vector< int > & tauEnergies () const
const std::vector< bool > & passTauSelection () const
bool ofcaOverflow () const
bool ofcbOverflow () const
bool pedOverflow () const
void setHardwareId (const HWIdentifier id)
 Set identifier.
void setChannel (const unsigned chan)
 Set channel number.
void setSourceId (const unsigned sourceId)
 Set source id.
void setEnergies (const std::vector< int > &&energies)
 Set energies .
void setBCIds (const std::vector< unsigned short > &&bcids)
 Set bcids.
void setTauEnergies (const std::vector< int > &&tauEnergies)
 Set energies*taus .
void setPassTauSelection (const std::vector< bool > &&pass)
 @set true if passes the tau selection
void setSaturation (const std::vector< bool > &&satur)
 @set saturation flags
void setOFCaOverflow (bool overflow)
 @set OFCa Overflow
void setOFCbOverflow (bool overflow)
 @set OFCb Overflow
void setPedOverflow (bool overflow)
 @set pedestal Overflow
 LArRawSC ()=default
 default constructor for persistency
 LArRawSC (const LArRawSC &)=default
 default copy/move assignement
 LArRawSC (LArRawSC &&)=default
LArRawSCoperator= (const LArRawSC &)=default
LArRawSCoperator= (LArRawSC &&)=default
 ~LArRawSC ()=default
 Destructor.

Private Attributes

HWIdentifier m_hardwareID {}
 Online Identifier.
short m_chan = 0
 Latome channel.
unsigned int m_sourceId = 0U
 LATOME source Id.
std::vector< int > m_energies
 vector of energies
std::vector< unsigned short > m_BCId
 vector of bcids
std::vector< bool > m_satur
 vector of saturation flags
std::vector< bool > m_passTauSelection
 did pass tau selection
std::vector< int > m_tauEnergies
 vector of taus*energies
bool m_ofcaOverflow {}
 OFCa Overflow.
bool m_ofcbOverflow {}
 OFCb Overflow.
bool m_pedOverflow {}
 pedestal Overflow

Detailed Description

Liquid Argon SuperCell raw data.

represents the output of the LATOME

Definition at line 19 of file LArRawSC.h.

Constructor & Destructor Documentation

◆ LArRawSC() [1/5]

LArRawSC::LArRawSC ( const HWIdentifier & channel_value,
const short chan,
const unsigned int sourceId,
const std::vector< int > & energies,
const std::vector< unsigned short > & bcids,
std::vector< bool > & satur )
inline

constructor

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

Definition at line 62 of file LArRawSC.h.

65 : m_hardwareID(channel_value),
66 m_chan(chan),
67 m_sourceId(sourceId),
71 m_ofcaOverflow(false),
72 m_ofcbOverflow(false),
73 m_pedOverflow(false) {}
short chan() const
Definition LArRawSC.h:92
bool m_ofcbOverflow
OFCb Overflow.
Definition LArRawSC.h:51
std::vector< int > m_energies
vector of energies
Definition LArRawSC.h:33
short m_chan
Latome channel.
Definition LArRawSC.h:27
const std::vector< bool > & satur() const
Definition LArRawSC.h:107
std::vector< unsigned short > m_BCId
vector of bcids
Definition LArRawSC.h:36
const std::vector< unsigned short > & bcids() const
Definition LArRawSC.h:104
unsigned int m_sourceId
LATOME source Id.
Definition LArRawSC.h:30
bool m_ofcaOverflow
OFCa Overflow.
Definition LArRawSC.h:48
const std::vector< int > & energies() const
Definition LArRawSC.h:101
bool m_pedOverflow
pedestal Overflow
Definition LArRawSC.h:54
std::vector< bool > m_satur
vector of saturation flags
Definition LArRawSC.h:39
HWIdentifier m_hardwareID
Online Identifier.
Definition LArRawSC.h:24

◆ LArRawSC() [2/5]

LArRawSC::LArRawSC ( const HWIdentifier & channel_value,
const short chan,
const unsigned int sourceId,
std::vector< int > && energies,
std::vector< unsigned short > && bcids,
std::vector< bool > && satur )
inline

Definition at line 75 of file LArRawSC.h.

78 : m_hardwareID(channel_value),
79 m_chan(chan),
80 m_sourceId(sourceId),
81 m_energies(std::move(energies)),
82 m_BCId(std::move(bcids)),
83 m_satur(std::move(satur)),
84 m_ofcaOverflow(false),
85 m_ofcbOverflow(false),
86 m_pedOverflow(false) {}

◆ LArRawSC() [3/5]

LArRawSC::LArRawSC ( )
default

default constructor for persistency

◆ LArRawSC() [4/5]

LArRawSC::LArRawSC ( const LArRawSC & )
default

default copy/move assignement

◆ LArRawSC() [5/5]

LArRawSC::LArRawSC ( LArRawSC && )
default

◆ ~LArRawSC()

LArRawSC::~LArRawSC ( )
default

Destructor.

Member Function Documentation

◆ bcids()

const std::vector< unsigned short > & LArRawSC::bcids ( ) const
inline
Returns
a reference to a stl vector containing the bcid values

Definition at line 104 of file LArRawSC.h.

104{ return m_BCId; }

◆ chan()

short LArRawSC::chan ( ) const
inline
Returns
channel

Definition at line 92 of file LArRawSC.h.

92{ return m_chan; }

◆ energies()

const std::vector< int > & LArRawSC::energies ( ) const
inline
Returns
a reference to a stl vector containing the energies values

Definition at line 101 of file LArRawSC.h.

101{ return m_energies; }

◆ hardwareID()

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

Definition at line 89 of file LArRawSC.h.

89{ return m_hardwareID; }

◆ nsamples()

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

Definition at line 98 of file LArRawSC.h.

98{ return m_energies.size(); }

◆ ofcaOverflow()

bool LArRawSC::ofcaOverflow ( ) const
inline
Returns
OFCa Overflow

Definition at line 117 of file LArRawSC.h.

117{ return m_ofcaOverflow; }

◆ ofcbOverflow()

bool LArRawSC::ofcbOverflow ( ) const
inline
Returns
OFCb Overflow

Definition at line 120 of file LArRawSC.h.

120{ return m_ofcbOverflow; }

◆ operator=() [1/2]

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

◆ operator=() [2/2]

LArRawSC & LArRawSC::operator= ( LArRawSC && )
default

◆ passTauSelection()

const std::vector< bool > & LArRawSC::passTauSelection ( ) const
inline
Returns
true if the channel passes the tau selection

Definition at line 113 of file LArRawSC.h.

113 {
114 return m_passTauSelection; }
std::vector< bool > m_passTauSelection
did pass tau selection
Definition LArRawSC.h:42

◆ pedOverflow()

bool LArRawSC::pedOverflow ( ) const
inline
Returns
pedestal Overflow

Definition at line 123 of file LArRawSC.h.

123{ return m_pedOverflow; }

◆ satur()

const std::vector< bool > & LArRawSC::satur ( ) const
inline
Returns
a reference to a stl vector containing the saturation flags

Definition at line 107 of file LArRawSC.h.

107{ return m_satur; }

◆ setBCIds()

void LArRawSC::setBCIds ( const std::vector< unsigned short > && bcids)

Set bcids.

Parameters
[in]samplesvector of bcids

Definition at line 13 of file LArRawSC.cxx.

14{
15 m_BCId = std::move(bcids);
16}

◆ setChannel()

void LArRawSC::setChannel ( const unsigned chan)

Set channel number.

Definition at line 32 of file LArRawSC.cxx.

32 {
33 m_chan = chan;
34}

◆ setEnergies()

void LArRawSC::setEnergies ( const std::vector< int > && energies)

Set energies .

Parameters
[in]samplesvector of energies

Definition at line 8 of file LArRawSC.cxx.

9{
10 m_energies = std::move(energies);
11}

◆ setHardwareId()

void LArRawSC::setHardwareId ( const HWIdentifier id)

Set identifier.

Definition at line 28 of file LArRawSC.cxx.

28 {
29 m_hardwareID = hwid;
30}

◆ setOFCaOverflow()

void LArRawSC::setOFCaOverflow ( bool overflow)
inline

@set OFCa Overflow

Definition at line 158 of file LArRawSC.h.

158{ m_ofcaOverflow=overflow; }

◆ setOFCbOverflow()

void LArRawSC::setOFCbOverflow ( bool overflow)
inline

@set OFCb Overflow

Definition at line 161 of file LArRawSC.h.

161{ m_ofcbOverflow=overflow; }

◆ setPassTauSelection()

void LArRawSC::setPassTauSelection ( const std::vector< bool > && pass)

@set true if passes the tau selection

Definition at line 23 of file LArRawSC.cxx.

24{
25 m_passTauSelection = std::move(pass);
26}

◆ setPedOverflow()

void LArRawSC::setPedOverflow ( bool overflow)
inline

@set pedestal Overflow

Definition at line 164 of file LArRawSC.h.

164{ m_pedOverflow=overflow; }

◆ setSaturation()

void LArRawSC::setSaturation ( const std::vector< bool > && satur)

@set saturation flags

Definition at line 40 of file LArRawSC.cxx.

40 {
41 m_satur = std::move(satur);
42
43}

◆ setSourceId()

void LArRawSC::setSourceId ( const unsigned sourceId)

Set source id.

Definition at line 36 of file LArRawSC.cxx.

36 {
37 m_sourceId = sourceId;
38}

◆ setTauEnergies()

void LArRawSC::setTauEnergies ( const std::vector< int > && tauEnergies)

Set energies*taus .

Parameters
[in]samplesvector of energies*taus

Definition at line 18 of file LArRawSC.cxx.

19{
20 m_tauEnergies = std::move(tauEnergies);
21}
const std::vector< int > & tauEnergies() const
Definition LArRawSC.h:110
std::vector< int > m_tauEnergies
vector of taus*energies
Definition LArRawSC.h:45

◆ SourceId()

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

Definition at line 95 of file LArRawSC.h.

95{ return m_sourceId; }

◆ tauEnergies()

const std::vector< int > & LArRawSC::tauEnergies ( ) const
inline
Returns
a reference to a stl vector containing the energies*taus

Definition at line 110 of file LArRawSC.h.

110{ return m_tauEnergies; }

Member Data Documentation

◆ m_BCId

std::vector< unsigned short > LArRawSC::m_BCId
private

vector of bcids

Definition at line 36 of file LArRawSC.h.

◆ m_chan

short LArRawSC::m_chan = 0
private

Latome channel.

Definition at line 27 of file LArRawSC.h.

◆ m_energies

std::vector< int > LArRawSC::m_energies
private

vector of energies

Definition at line 33 of file LArRawSC.h.

◆ m_hardwareID

HWIdentifier LArRawSC::m_hardwareID {}
private

Online Identifier.

Definition at line 24 of file LArRawSC.h.

24{};

◆ m_ofcaOverflow

bool LArRawSC::m_ofcaOverflow {}
private

OFCa Overflow.

Definition at line 48 of file LArRawSC.h.

48{};

◆ m_ofcbOverflow

bool LArRawSC::m_ofcbOverflow {}
private

OFCb Overflow.

Definition at line 51 of file LArRawSC.h.

51{};

◆ m_passTauSelection

std::vector< bool > LArRawSC::m_passTauSelection
private

did pass tau selection

Definition at line 42 of file LArRawSC.h.

◆ m_pedOverflow

bool LArRawSC::m_pedOverflow {}
private

pedestal Overflow

Definition at line 54 of file LArRawSC.h.

54{};

◆ m_satur

std::vector< bool > LArRawSC::m_satur
private

vector of saturation flags

Definition at line 39 of file LArRawSC.h.

◆ m_sourceId

unsigned int LArRawSC::m_sourceId = 0U
private

LATOME source Id.

Definition at line 30 of file LArRawSC.h.

◆ m_tauEnergies

std::vector< int > LArRawSC::m_tauEnergies
private

vector of taus*energies

Definition at line 45 of file LArRawSC.h.


The documentation for this class was generated from the following files: