ATLAS Offline Software
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
LArOFCP1 Class Reference

c-struct reproducing the structure of the persistent data More...

#include <LArOFCP1.h>

Inheritance diagram for LArOFCP1:
Collaboration diagram for LArOFCP1:

Public Types

typedef ILArOFC::OFCRef_t OFCRef_t
 

Public Member Functions

 LArOFCP1 ()
 
 LArOFCP1 (float timeOffset, float timeBinWidth, const std::vector< std::vector< float > > &vOFC_a, const std::vector< std::vector< float > > &vOFC_b)
 
 LArOFCP1 (float timeOffset, float timeBinWidth, unsigned int nPhases, unsigned int nSamples, const std::vector< float > &ofc_a, const std::vector< float > &ofc_b, unsigned int index)
 
 LArOFCP1 (const LArCompactSubsetChannelProxy &other)
 
 LArOFCP1 (const LArCompactSubsetConstChannelProxy &other)
 
size_t OFC_aSize () const
 
size_t OFC_bSize () const
 
OFCRef_t OFC_a (size_t tbin) const
 
OFCRef_t OFC_b (size_t tbin) const
 
void setFrom (LAr2DWaveBase &other)
 Assign from another wave object. More...
 
bool isEmpty () const
 Is there any data in this channel? More...
 
float timeOffset () const
 Return the time offset for this channel. More...
 
float timeBinWidth () const
 Return the time bin width for this channel. More...
 
size_t waveSize (unsigned int which) const
 Return the number of time bins for a wave. More...
 
LArVectorProxy wave (unsigned int which, size_t tbin) const
 Return wave data. More...
 

Static Public Attributes

static const unsigned int nWaves = 2
 The number of different types of waves we store. More...
 

Private Attributes

float m_timeOffset
 The time offset for this channel. More...
 
float m_timeBinWidth
 The time bin width for this channel. More...
 
std::vector< std::vector< float > > m_waves [nWaves]
 The wave data. More...
 

Detailed Description

c-struct reproducing the structure of the persistent data

Author
W. Lampl, S. Laplace
Version
0-0-1 , 12/12/03

Definition at line 20 of file LArOFCP1.h.

Member Typedef Documentation

◆ OFCRef_t

Definition at line 25 of file LArOFCP1.h.

Constructor & Destructor Documentation

◆ LArOFCP1() [1/5]

LArOFCP1::LArOFCP1 ( )
inline

Definition at line 27 of file LArOFCP1.h.

27 {}

◆ LArOFCP1() [2/5]

LArOFCP1::LArOFCP1 ( float  timeOffset,
float  timeBinWidth,
const std::vector< std::vector< float > > &  vOFC_a,
const std::vector< std::vector< float > > &  vOFC_b 
)

Definition at line 8 of file LArOFCP1.cxx.

11  : LAr2DWaveBase (timeOffset, timeBinWidth, vOFC_a, vOFC_b)
12 {
13 }

◆ LArOFCP1() [3/5]

LArOFCP1::LArOFCP1 ( float  timeOffset,
float  timeBinWidth,
unsigned int  nPhases,
unsigned int  nSamples,
const std::vector< float > &  ofc_a,
const std::vector< float > &  ofc_b,
unsigned int  index 
)

Definition at line 16 of file LArOFCP1.cxx.

24  nPhases, nSamples,
25  ofc_a, ofc_b, index)
26 {
27 }

◆ LArOFCP1() [4/5]

LArOFCP1::LArOFCP1 ( const LArCompactSubsetChannelProxy other)

Definition at line 30 of file LArOFCP1.cxx.

32 {
33 }

◆ LArOFCP1() [5/5]

LArOFCP1::LArOFCP1 ( const LArCompactSubsetConstChannelProxy other)

Definition at line 36 of file LArOFCP1.cxx.

38 {
39 }

Member Function Documentation

◆ isEmpty()

bool LAr2DWaveBase::isEmpty ( ) const
inherited

Is there any data in this channel?

◆ OFC_a()

OFCRef_t LArOFCP1::OFC_a ( size_t  tbin) const
inline

Definition at line 45 of file LArOFCP1.h.

45 { return wave(0, tbin); }

◆ OFC_aSize()

size_t LArOFCP1::OFC_aSize ( ) const
inline

Definition at line 42 of file LArOFCP1.h.

42 { return waveSize(0); }

◆ OFC_b()

OFCRef_t LArOFCP1::OFC_b ( size_t  tbin) const
inline

Definition at line 46 of file LArOFCP1.h.

46 { return wave(1, tbin); }

◆ OFC_bSize()

size_t LArOFCP1::OFC_bSize ( ) const
inline

Definition at line 43 of file LArOFCP1.h.

43 { return waveSize(1); }

◆ setFrom()

void LAr2DWaveBase::setFrom ( LAr2DWaveBase other)
inherited

Assign from another wave object.

Parameters
otherThe source object. NOTE: We use move semantics; OTHER is left with no data.

Could write with an rvalue reference in the future?

Definition at line 109 of file LAr2DWaveBase.cxx.

110 {
111  m_timeOffset = other.m_timeOffset;
112  m_timeBinWidth = other.m_timeBinWidth;
113  for (unsigned int which = 0; which < nWaves; ++which)
114  m_waves[which].swap (other.m_waves[which]);
115 }

◆ timeBinWidth()

float LAr2DWaveBase::timeBinWidth ( ) const
inherited

Return the time bin width for this channel.

◆ timeOffset()

float LAr2DWaveBase::timeOffset ( ) const
inherited

Return the time offset for this channel.

◆ wave()

LArVectorProxy LAr2DWaveBase::wave ( unsigned int  which,
size_t  tbin 
) const
inherited

Return wave data.

Parameters
whichThe type of wave to return.
tbinThe time bin to return.

◆ waveSize()

size_t LAr2DWaveBase::waveSize ( unsigned int  which) const
inherited

Return the number of time bins for a wave.

Parameters
whichThe type of wave to query.

Member Data Documentation

◆ m_timeBinWidth

float LAr2DWaveBase::m_timeBinWidth
privateinherited

The time bin width for this channel.

Definition at line 150 of file LAr2DWaveBase.h.

◆ m_timeOffset

float LAr2DWaveBase::m_timeOffset
privateinherited

The time offset for this channel.

Definition at line 147 of file LAr2DWaveBase.h.

◆ m_waves

std::vector<std::vector<float> > LAr2DWaveBase::m_waves[nWaves]
privateinherited

The wave data.

Definition at line 153 of file LAr2DWaveBase.h.

◆ nWaves

const unsigned int LAr2DWaveBase::nWaves = 2
staticinherited

The number of different types of waves we store.

Definition at line 52 of file LAr2DWaveBase.h.


The documentation for this class was generated from the following files:
LAr2DWaveBase::timeBinWidth
float timeBinWidth() const
Return the time bin width for this channel.
LAr2DWaveBase::nWaves
static const unsigned int nWaves
The number of different types of waves we store.
Definition: LAr2DWaveBase.h:52
LAr2DWaveBase::wave
LArVectorProxy wave(unsigned int which, size_t tbin) const
Return wave data.
index
Definition: index.py:1
LAr2DWaveBase::LAr2DWaveBase
LAr2DWaveBase()
Default constructor.
LAr2DWaveBase::m_timeBinWidth
float m_timeBinWidth
The time bin width for this channel.
Definition: LAr2DWaveBase.h:150
LAr2DWaveBase::waveSize
size_t waveSize(unsigned int which) const
Return the number of time bins for a wave.
LAr2DWaveBase::m_waves
std::vector< std::vector< float > > m_waves[nWaves]
The wave data.
Definition: LAr2DWaveBase.h:153
LAr2DWaveBase::timeOffset
float timeOffset() const
Return the time offset for this channel.
python.Utils.unixtools.which
def which(filename, env=os.environ)
UNIX-style which ---------------------------------------------------------—.
Definition: unixtools.py:39
WriteCalibToCool.swap
swap
Definition: WriteCalibToCool.py:94
LAr2DWaveBase::m_timeOffset
float m_timeOffset
The time offset for this channel.
Definition: LAr2DWaveBase.h:147
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
LArDigits2NtupleDumper.nSamples
nSamples
Definition: LArDigits2NtupleDumper.py:70