ATLAS Offline Software
Loading...
Searching...
No Matches
LArShapeP2 Class Reference

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

#include <LArShapeP2.h>

Inheritance diagram for LArShapeP2:
Collaboration diagram for LArShapeP2:

Public Types

typedef ILArShape::ShapeRef_t ShapeRef_t

Public Member Functions

 LArShapeP2 ()
 LArShapeP2 (float timeOffset, float timeBinWidth, const std::vector< std::vector< float > > &vShape, const std::vector< std::vector< float > > &vShapeDer)
 LArShapeP2 (float timeOffset, float timeBinWidth, unsigned int nPhases, unsigned int nSamples, const std::vector< float > &shape, const std::vector< float > &shapeDer, unsigned int index)
 LArShapeP2 (const LArCompactSubsetChannelProxy &other)
 LArShapeP2 (const LArCompactSubsetConstChannelProxy &other)
size_t shapeSize () const
size_t shapeDerSize () const
ShapeRef_t shape (size_t tbin) const
ShapeRef_t shapeDer (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
M. Delmastro
Version
0-0-1 , 13/06/2008

Definition at line 19 of file LArShapeP2.h.

Member Typedef Documentation

◆ ShapeRef_t

Definition at line 24 of file LArShapeP2.h.

Constructor & Destructor Documentation

◆ LArShapeP2() [1/5]

LArShapeP2::LArShapeP2 ( )
inline

Definition at line 26 of file LArShapeP2.h.

26{}

◆ LArShapeP2() [2/5]

LArShapeP2::LArShapeP2 ( float timeOffset,
float timeBinWidth,
const std::vector< std::vector< float > > & vShape,
const std::vector< std::vector< float > > & vShapeDer )

Definition at line 9 of file LArShapeP2.cxx.

13 : LAr2DWaveBase (timeOffset, timeBinWidth, vShape, vShapeDer)
14{
15}
float timeBinWidth() const
Return the time bin width for this channel.
LAr2DWaveBase()
Default constructor.
float timeOffset() const
Return the time offset for this channel.

◆ LArShapeP2() [3/5]

LArShapeP2::LArShapeP2 ( float timeOffset,
float timeBinWidth,
unsigned int nPhases,
unsigned int nSamples,
const std::vector< float > & shape,
const std::vector< float > & shapeDer,
unsigned int index )

Definition at line 18 of file LArShapeP2.cxx.

26 nPhases, nSamples,
27 shape, shapeDer, index)
28{
29}
ShapeRef_t shapeDer(size_t tbin) const
Definition LArShapeP2.h:45
ShapeRef_t shape(size_t tbin) const
Definition LArShapeP2.h:44

◆ LArShapeP2() [4/5]

LArShapeP2::LArShapeP2 ( const LArCompactSubsetChannelProxy & other)

Definition at line 32 of file LArShapeP2.cxx.

33 : LAr2DWaveBase (other)
34{
35}

◆ LArShapeP2() [5/5]

LArShapeP2::LArShapeP2 ( const LArCompactSubsetConstChannelProxy & other)

Definition at line 38 of file LArShapeP2.cxx.

39 : LAr2DWaveBase (other)
40{
41}

Member Function Documentation

◆ isEmpty()

bool LAr2DWaveBase::isEmpty ( ) const
inherited

Is there any data in this channel?

◆ 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

◆ shape()

ShapeRef_t LArShapeP2::shape ( size_t tbin) const
inline

Definition at line 44 of file LArShapeP2.h.

44{ return wave(0, tbin); }
LArVectorProxy wave(unsigned int which, size_t tbin) const
Return wave data.

◆ shapeDer()

ShapeRef_t LArShapeP2::shapeDer ( size_t tbin) const
inline

Definition at line 45 of file LArShapeP2.h.

45{ return wave(1, tbin); }

◆ shapeDerSize()

size_t LArShapeP2::shapeDerSize ( ) const
inline

Definition at line 42 of file LArShapeP2.h.

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

◆ shapeSize()

size_t LArShapeP2::shapeSize ( ) const
inline

Definition at line 41 of file LArShapeP2.h.

41{ return waveSize(0); }

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