|
ATLAS Offline Software
|
Go to the documentation of this file.
23 const int & nBytesPerCell)
const
34 std::vector<CaloCompactCell::value_type> cData(nWords);
36 for (
int iWord=0;iWord<nWords;iWord++) {
41 int iMod = ((iCell*nWords+iWord)%nRatio)<<(8/nRatio);
67 (
const std::vector<CaloCompactCellContainer::value_type> & theHeader)
69 for(
unsigned int i=0;
i<theHeader.size();
i++)
76 const int & headerLength) {
83 std::vector<CaloCompactCell::value_type> cData(theCompactCell.
getData());
87 const int nWords = cData.size();
89 for (
int iWord=0;iWord<nWords;iWord++) {
91 int iPos = headerLength + (
int)((iCell*nWords+iWord)/nRatio);
94 int iMod = ((iCell*nWords+iWord)%nRatio)<<(8/nRatio);
int value_type
value type for the internal data
CaloCompactCell getCompactCell(const int &iCell, const int &nBytesPerCell) const
returns the compactified CaloCell data
void setHeader(const std::vector< value_type > &theHeader)
replaces the current header (if there was one)
const std::vector< value_type > getHeader() const
returns header portion of the compact cell container
unsigned short value_type
value type for the compact CaloCell data
void resize(const unsigned int &totalSize)
resize the data vector to totalSize (includes Header)
holds compactified CaloCell information
void setCompactCell(const CaloCompactCell &theCompactCell, const int &iCell, const int &headerLength)
store the compact cell with index iCell
const std::vector< value_type > & getData() const
returns the vector of compactified CaloCell data.
std::vector< value_type > m_compactData
vector containing header and compact cell data.