ATLAS Offline Software
Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
LArCompactSubsetChannelVector Class Reference

This acts like a vector of channel objects. More...

#include <LArCompactSubset.h>

Inheritance diagram for LArCompactSubsetChannelVector:
Collaboration diagram for LArCompactSubsetChannelVector:

Classes

class  const_iterator
 Iterator for LArCompactSubsetChannelVector. More...
 

Public Types

typedef const_iterator iterator
 No separate non-const iterator. More...
 

Public Member Functions

 LArCompactSubsetChannelVector (size_t febIndex, LArCompactSubsetVector *subset)
 Constructor. More...
 
size_t size () const
 Return the size of this vector (number of channels for this FEB). More...
 
LArCompactSubsetChannelProxy operator[] (size_t i)
 Vector indexing. More...
 
LArCompactSubsetConstChannelProxy operator[] (size_t i) const
 Vector indexing. More...
 
const_iterator begin () const
 Begin iterator. More...
 
const_iterator end () const
 End iterator. More...
 
void resize (size_t sz)
 Resize this vector. More...
 

Protected Attributes

size_t m_febIndex
 The index of the FEB with which this vector is associated. More...
 
LArCompactSubsetVectorm_subset
 The subset within which we live. More...
 

Detailed Description

This acts like a vector of channel objects.

We don't implement the complete vector interface, though; just what's actually used.

Definition at line 258 of file LArCompactSubset.h.

Member Typedef Documentation

◆ iterator

No separate non-const iterator.

Definition at line 327 of file LArCompactSubset.h.

Constructor & Destructor Documentation

◆ LArCompactSubsetChannelVector()

LArCompactSubsetChannelVector::LArCompactSubsetChannelVector ( size_t  febIndex,
LArCompactSubsetVector subset 
)

Constructor.

Parameters
febIndexFEB index with which we're associated.
subsetSubset within which we live.

Member Function Documentation

◆ begin()

const_iterator LArCompactSubsetChannelVector::begin ( ) const

Begin iterator.

◆ end()

const_iterator LArCompactSubsetChannelVector::end ( ) const

End iterator.

◆ operator[]() [1/2]

LArCompactSubsetChannelProxy LArCompactSubsetChannelVector::operator[] ( size_t  i)

Vector indexing.

Returns a channel proxy.

Parameters
iChannel index within the vector.

◆ operator[]() [2/2]

LArCompactSubsetConstChannelProxy LArCompactSubsetChannelVector::operator[] ( size_t  i) const

Vector indexing.

Returns a channel proxy.

Parameters
iChannel index within the vector.

◆ resize()

void LArCompactSubsetChannelVector::resize ( size_t  sz)

Resize this vector.

Parameters
szThe desired new size.

Restriction: Only the vector associated with the last FEB index in the subset may be resized.

◆ size()

size_t LArCompactSubsetChannelVector::size ( ) const

Return the size of this vector (number of channels for this FEB).

Member Data Documentation

◆ m_febIndex

size_t LArCompactSubsetChannelVector::m_febIndex
protected

The index of the FEB with which this vector is associated.

Definition at line 379 of file LArCompactSubset.h.

◆ m_subset

LArCompactSubsetVector* LArCompactSubsetChannelVector::m_subset
protected

The subset within which we live.

Definition at line 382 of file LArCompactSubset.h.


The documentation for this class was generated from the following file: