ATLAS Offline Software
|
This acts like a vector of channel objects. More...
#include <LArCompactSubset.h>
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... | |
LArCompactSubsetVector * | m_subset |
The subset within which we live. More... | |
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.
No separate non-const iterator.
Definition at line 327 of file LArCompactSubset.h.
LArCompactSubsetChannelVector::LArCompactSubsetChannelVector | ( | size_t | febIndex, |
LArCompactSubsetVector * | subset | ||
) |
Constructor.
febIndex | FEB index with which we're associated. |
subset | Subset within which we live. |
const_iterator LArCompactSubsetChannelVector::begin | ( | ) | const |
Begin iterator.
const_iterator LArCompactSubsetChannelVector::end | ( | ) | const |
End iterator.
LArCompactSubsetChannelProxy LArCompactSubsetChannelVector::operator[] | ( | size_t | i | ) |
Vector indexing.
Returns a channel proxy.
i | Channel index within the vector. |
LArCompactSubsetConstChannelProxy LArCompactSubsetChannelVector::operator[] | ( | size_t | i | ) | const |
Vector indexing.
Returns a channel proxy.
i | Channel index within the vector. |
void LArCompactSubsetChannelVector::resize | ( | size_t | sz | ) |
Resize this vector.
sz | The desired new size. |
Restriction: Only the vector associated with the last FEB index in the subset may be resized.
size_t LArCompactSubsetChannelVector::size | ( | ) | const |
Return the size of this vector (number of channels for this FEB).
|
protected |
The index of the FEB with which this vector is associated.
Definition at line 379 of file LArCompactSubset.h.
|
protected |
The subset within which we live.
Definition at line 382 of file LArCompactSubset.h.