![]() |
ATLAS Offline Software
|
container class for CaloCompactCell objects
More...
#include <CaloCompactCellContainer.h>
Classes | |
| class | compact_input_iterator |
| store the compact cell with index iCell More... | |
| class | compact_output_iterator |
| Simple iterator-like object for writing to the container. More... | |
Public Types | |
| typedef int | value_type |
| value type for the internal data | |
Public Member Functions | |
| CaloCompactCellContainer () | |
| default Constructor. | |
| CaloCompactCellContainer (const std::vector< value_type > &theCompactData) | |
| Constructor. | |
| virtual | ~CaloCompactCellContainer () |
| const std::vector< value_type > & | getData () const |
| returns the entire compact cell container (includes header) | |
| std::vector< value_type > & | getData () |
| returns the entire compact cell container (includes header) | |
| const std::vector< value_type > | getHeader () const |
| returns header portion of the compact cell container | |
| void | resize (const unsigned int &totalSize) |
| resize the data vector to totalSize (includes Header) | |
| void | setHeader (const std::vector< value_type > &theHeader) |
| replaces the current header (if there was one) | |
| compact_input_iterator | compact_begin_input () const |
Return a new compact_input_iterator pointing at the start of the data. | |
| compact_input_iterator | compact_begin_input_from (int) const |
Return a new compact_input_iterator pointing at position given as the parameter BUT from the end of the data. | |
| compact_output_iterator | compact_begin_output (int headerLength) |
Return a new compact_output_iterator pointing at the start of the data. | |
Private Attributes | |
| std::vector< value_type > | m_compactData |
| vector containing header and compact cell data. | |
container class for CaloCompactCell objects
Container class to contain compactified CaloCell objects from a complete CaloCellContainer. The completeness is required in the sense that for every Calorimeter present in the CaloCellContainer all possible cells have to be filled. This allows for not storing the Identifier for the cells. The compact cells (and instances of this class) are produced by the CaloCompactCellTool in CaloTools.
Definition at line 36 of file CaloCompactCellContainer.h.
| typedef int CaloCompactCellContainer::value_type |
value type for the internal data
The internal data format has a length of 32bit. Therefore this type must have the length of 32 bits.
Definition at line 46 of file CaloCompactCellContainer.h.
|
inline |
default Constructor.
Definition at line 59 of file CaloCompactCellContainer.h.
|
inline |
Constructor.
| theCompactData | The vector holding the header and CaloCompactCell data |
Definition at line 69 of file CaloCompactCellContainer.h.
|
inlinevirtual |
Definition at line 73 of file CaloCompactCellContainer.h.
|
inline |
Return a new compact_input_iterator pointing at the start of the data.
Definition at line 289 of file CaloCompactCellContainer.h.
|
inline |
Return a new compact_input_iterator pointing at position given as the parameter BUT from the end of the data.
Definition at line 296 of file CaloCompactCellContainer.h.
|
inline |
Return a new compact_output_iterator pointing at the start of the data.
| headerLength | The length of the header in front of the data. |
Definition at line 356 of file CaloCompactCellContainer.h.
|
inline |
returns the entire compact cell container (includes header)
Definition at line 88 of file CaloCompactCellContainer.h.
|
inline |
returns the entire compact cell container (includes header)
Definition at line 80 of file CaloCompactCellContainer.h.
| const std::vector< CaloCompactCellContainer::value_type > CaloCompactCellContainer::getHeader | ( | ) | const |
returns header portion of the compact cell container
Definition at line 22 of file CaloCompactCellContainer.cxx.
| void CaloCompactCellContainer::resize | ( | const unsigned int & | totalSize | ) |
resize the data vector to totalSize (includes Header)
| totalSize | the total size in unites of value_type |
Definition at line 30 of file CaloCompactCellContainer.cxx.
| void CaloCompactCellContainer::setHeader | ( | const std::vector< value_type > & | theHeader | ) |
replaces the current header (if there was one)
| theHeader | the new header |
used by the compactifier tool on creation of the container
Definition at line 35 of file CaloCompactCellContainer.cxx.
|
private |
vector containing header and compact cell data.
the first int in the vector must contain the header length (in number of 32bit ints) including the first int
Definition at line 56 of file CaloCompactCellContainer.h.