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

This acts as a pointer to a LArCompactSubsetChannelProxy. More...

#include <LArCompactSubset.h>

Inheritance diagram for LArCompactSubsetChannelPointer:
Collaboration diagram for LArCompactSubsetChannelPointer:

Public Member Functions

 LArCompactSubsetChannelPointer (const LArCompactSubsetChannelProxy *p)
 Constructor. More...
 
LArCompactSubsetChannelProxy operator* () const
 ‘Dereference’ the pointer. More...
 
 operator bool () const
 Test for a valid pointer. 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

This acts as a pointer to a LArCompactSubsetChannelProxy.

Actually, since LArCompactSubsetChannelProxy is itself a reference, and we'd need to hold the reference anyway, we just extend LArCompactSubsetChannelProxy with a pointer dereference.

Definition at line 225 of file LArCompactSubset.h.

Constructor & Destructor Documentation

◆ LArCompactSubsetChannelPointer()

LArCompactSubsetChannelPointer::LArCompactSubsetChannelPointer ( const LArCompactSubsetChannelProxy p)

Constructor.

Parameters
pPointer to a channel proxy.

Member Function Documentation

◆ assign()

void LArCompactSubsetChannelProxy::assign ( const LAr2DWaveBase other)
inherited

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 bool()

LArCompactSubsetChannelPointer::operator bool ( ) const

Test for a valid pointer.

◆ operator*()

LArCompactSubsetChannelProxy LArCompactSubsetChannelPointer::operator* ( ) const

‘Dereference’ the pointer.

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

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