ATLAS Offline Software
Loading...
Searching...
No Matches
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.
bool isEmpty () const
 Is there any data in this channel?
float timeOffset () const
 Return the time offset for this channel.
float timeBinWidth () const
 Return the time bin width for this channel.
size_t waveSize (unsigned int which) const
 Return the number of time bins for a wave.
LArVectorProxy wave (unsigned int which, size_t tbin) const
 Return wave data.

Static Public Attributes

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

Private Attributes

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

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}
float timeBinWidth() const
Return the time bin width for this channel.
LAr2DWaveBase()
Default constructor.
float timeOffset() const
Return the time offset for this channel.

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

31 : LAr2DWaveBase (other)
32{
33}

◆ LArOFCP1() [5/5]

LArOFCP1::LArOFCP1 ( const LArCompactSubsetConstChannelProxy & other)

Definition at line 36 of file LArOFCP1.cxx.

37 : LAr2DWaveBase (other)
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); }
LArVectorProxy wave(unsigned int which, size_t tbin) const
Return wave data.

◆ OFC_aSize()

size_t LArOFCP1::OFC_aSize ( ) const
inline

Definition at line 42 of file LArOFCP1.h.

42{ return waveSize(0); }
size_t waveSize(unsigned int which) const
Return the number of time bins for a wave.

◆ 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}
void swap(DataVector< T > &a, DataVector< T > &b)
See DataVector<T, BASE>::swap().
static const unsigned int nWaves
The number of different types of waves we store.
float m_timeOffset
The time offset for this channel.
std::vector< std::vector< float > > m_waves[nWaves]
The wave data.
float m_timeBinWidth
The time bin width for this channel.
which(filename, env=os.environ)
UNIX-style which ---------------------------------------------------------—.
Definition unixtools.py:39

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