ATLAS Offline Software
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
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. 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
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 }

◆ 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,
28 {
29 }

◆ LArShapeP2() [4/5]

LArShapeP2::LArShapeP2 ( const LArCompactSubsetChannelProxy other)

Definition at line 32 of file LArShapeP2.cxx.

34 {
35 }

◆ LArShapeP2() [5/5]

LArShapeP2::LArShapeP2 ( const LArCompactSubsetConstChannelProxy other)

Definition at line 38 of file LArShapeP2.cxx.

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 }

◆ shape()

ShapeRef_t LArShapeP2::shape ( size_t  tbin) const
inline

Definition at line 44 of file LArShapeP2.h.

44 { return wave(0, tbin); }

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

◆ 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:
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.
LArShapeP2::shapeDer
ShapeRef_t shapeDer(size_t tbin) const
Definition: LArShapeP2.h:45
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
LArShapeP2::shape
ShapeRef_t shape(size_t tbin) const
Definition: LArShapeP2.h:44
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
LArDigits2NtupleDumper.nSamples
nSamples
Definition: LArDigits2NtupleDumper.py:70