ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | List of all members
LArCompactSubsetChannelProxy Class Reference

A more compact way of storing shape/ofc data — non-const portion. More...

#include <LArCompactSubset.h>

Inheritance diagram for LArCompactSubsetChannelProxy:
Collaboration diagram for LArCompactSubsetChannelProxy:

Public Member Functions

 LArCompactSubsetChannelProxy ()
 Default constructor. More...
 
 LArCompactSubsetChannelProxy (unsigned int chan, LArCompactSubsetVector &subset)
 Constructor. More...
 
LArCompactSubsetChannelProxyoperator= (const LAr2DWaveBase &other)
 Initialize the referenced data from a standalone object. More...
 
void assign (const LAr2DWaveBase &other)
 Initialize the referenced data from a standalone object. More...
 
bool isValid () const
 Test to see if the proxy is valid. 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 getSize () const
 Return the number of time bins for this channel. More...
 
LArVectorProxy getData (unsigned int which, size_t tbin) const
 Return one set of wave data from this channel. More...
 
size_t shapeSize () const
 
size_t shapeDerSize () const
 
ILArShape::ShapeRef_t shape (size_t tbin) const
 
ILArShape::ShapeRef_t shapeDer (size_t tbin) const
 
size_t OFC_aSize () const
 
size_t OFC_bSize () const
 
ILArOFC::OFCRef_t OFC_a (size_t tbin) const
 
ILArOFC::OFCRef_t OFC_b (size_t tbin) const
 

Protected Attributes

unsigned int m_chan
 Channel index to which we're referring. More...
 
const LArCompactSubsetVectorm_subset
 Subset within which we live. Null for an invalid proxy. More...
 

Private Attributes

LArCompactSubsetVectorm_subset_nc
 Subset within which we live (non-const). Null for an invalid proxy. More...
 

Detailed Description

A more compact way of storing shape/ofc data — non-const portion.

Definition at line 176 of file LArCompactSubset.h.

Constructor & Destructor Documentation

◆ LArCompactSubsetChannelProxy() [1/2]

LArCompactSubsetChannelProxy::LArCompactSubsetChannelProxy ( )

Default constructor.

Makes an invalid proxy.

◆ LArCompactSubsetChannelProxy() [2/2]

LArCompactSubsetChannelProxy::LArCompactSubsetChannelProxy ( unsigned int  chan,
LArCompactSubsetVector subset 
)

Constructor.

chan The channel index we reference.

subset The subset object within which we live.

Member Function Documentation

◆ assign()

void LArCompactSubsetChannelProxy::assign ( const LAr2DWaveBase other)

Initialize the referenced data from a standalone object.

Parameters
otherThe object from which to initialize.

Definition at line 27 of file LArCompactSubset.cxx.

28 {
29  size_t chanSize = other.waveSize(0);
30  m_subset_nc->setTimings (m_chan, other.timeOffset(), other.timeBinWidth());
31  for (unsigned int which = 0; which < LAr2DWaveBase::nWaves; ++which) {
32  assert (chanSize == other.waveSize(which));
33  for (unsigned int tbin = 0; tbin < chanSize; tbin++)
34  m_subset_nc->setData (which, m_chan, tbin, chanSize,
35  other.wave(which, tbin));
36  }
37 }

◆ getData()

LArVectorProxy LArCompactSubsetConstChannelProxy::getData ( unsigned int  which,
size_t  tbin 
) const
inherited

Return one set of wave data from this channel.

Parameters
whichIndex of the wave type to return.
tbinTime bin index.

◆ getSize()

size_t LArCompactSubsetConstChannelProxy::getSize ( ) const
inherited

Return the number of time bins for this channel.

◆ isValid()

bool LArCompactSubsetConstChannelProxy::isValid ( ) const
inherited

Test to see if the proxy is valid.

◆ OFC_a()

ILArOFC::OFCRef_t LArCompactSubsetConstChannelProxy::OFC_a ( size_t  tbin) const
inherited

◆ OFC_aSize()

size_t LArCompactSubsetConstChannelProxy::OFC_aSize ( ) const
inherited

◆ OFC_b()

ILArOFC::OFCRef_t LArCompactSubsetConstChannelProxy::OFC_b ( size_t  tbin) const
inherited

◆ OFC_bSize()

size_t LArCompactSubsetConstChannelProxy::OFC_bSize ( ) const
inherited

◆ operator=()

LArCompactSubsetChannelProxy& LArCompactSubsetChannelProxy::operator= ( const LAr2DWaveBase other)

Initialize the referenced data from a standalone object.

Parameters
otherThe object from which to initialize.

◆ shape()

ILArShape::ShapeRef_t LArCompactSubsetConstChannelProxy::shape ( size_t  tbin) const
inherited

◆ shapeDer()

ILArShape::ShapeRef_t LArCompactSubsetConstChannelProxy::shapeDer ( size_t  tbin) const
inherited

◆ shapeDerSize()

size_t LArCompactSubsetConstChannelProxy::shapeDerSize ( ) const
inherited

◆ shapeSize()

size_t LArCompactSubsetConstChannelProxy::shapeSize ( ) const
inherited

◆ timeBinWidth()

float LArCompactSubsetConstChannelProxy::timeBinWidth ( ) const
inherited

Return the time bin width for this channel.

◆ timeOffset()

float LArCompactSubsetConstChannelProxy::timeOffset ( ) const
inherited

Return the time offset for this channel.

Member Data Documentation

◆ m_chan

unsigned int LArCompactSubsetConstChannelProxy::m_chan
protectedinherited

Channel index to which we're referring.

Definition at line 166 of file LArCompactSubset.h.

◆ m_subset

const LArCompactSubsetVector* LArCompactSubsetConstChannelProxy::m_subset
protectedinherited

Subset within which we live. Null for an invalid proxy.

Definition at line 169 of file LArCompactSubset.h.

◆ m_subset_nc

LArCompactSubsetVector* LArCompactSubsetChannelProxy::m_subset_nc
private

Subset within which we live (non-const). Null for an invalid proxy.

Definition at line 211 of file LArCompactSubset.h.


The documentation for this class was generated from the following files:
LAr2DWaveBase::nWaves
static const unsigned int nWaves
The number of different types of waves we store.
Definition: LAr2DWaveBase.h:52
LArCompactSubsetVector::setData
void setData(unsigned int which, unsigned int chan, size_t tbin, size_t chanSize, const LArVectorProxy &from)
Set wave data for a channel.
Definition: LArCompactSubset.cxx:177
LArCompactSubsetConstChannelProxy::m_chan
unsigned int m_chan
Channel index to which we're referring.
Definition: LArCompactSubset.h:166
LArCompactSubsetChannelProxy::m_subset_nc
LArCompactSubsetVector * m_subset_nc
Subset within which we live (non-const). Null for an invalid proxy.
Definition: LArCompactSubset.h:211
python.Utils.unixtools.which
def which(filename, env=os.environ)
UNIX-style which ---------------------------------------------------------—.
Definition: unixtools.py:39
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
LArCompactSubsetVector::setTimings
void setTimings(unsigned int chan, float timeOffset, float timeBinWidth)
Set timing information for a channel.
Definition: LArCompactSubset.cxx:150