ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloEvent
src
CaloCompactCellContainer.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//-----------------------------------------------------------------------
6
// File and Version Information:
7
// $Id: CaloCompactCellContainer.cxx,v 1.2 2004-08-05 22:15:01 menke Exp $
8
//
9
// Description: see CaloCompactCellContainer.h
10
//
11
// Environment:
12
// Software developed for the ATLAS Detector at the CERN LHC
13
//
14
// Author List:
15
// Sven Menke
16
//
17
//-----------------------------------------------------------------------
18
19
#include "
CaloEvent/CaloCompactCellContainer.h
"
20
21
22
const
std::vector<CaloCompactCellContainer::value_type>
CaloCompactCellContainer::getHeader
()
const
23
{
24
std::vector<value_type> theHeader(
m_compactData
[0]);
25
for
(
int
i=0;i<
m_compactData
[0];i++)
26
theHeader[i] =
m_compactData
[i];
27
return
theHeader;
28
}
29
30
void
CaloCompactCellContainer::resize
(
const
unsigned
int
&
totalSize
)
31
{
32
m_compactData
.resize(
totalSize
);
33
}
34
35
void
CaloCompactCellContainer::setHeader
36
(
const
std::vector<CaloCompactCellContainer::value_type> & theHeader)
37
{
38
for
(
unsigned
int
i=0;i<theHeader.size();i++)
39
m_compactData
[i] = theHeader[i];
40
}
CaloCompactCellContainer.h
totalSize
static unsigned int totalSize(const MultiDimArray< T, N > &ht)
Definition
MultiDimArray.h:310
CaloCompactCellContainer::m_compactData
std::vector< value_type > m_compactData
vector containing header and compact cell data.
Definition
CaloCompactCellContainer.h:56
CaloCompactCellContainer::resize
void resize(const unsigned int &totalSize)
resize the data vector to totalSize (includes Header)
Definition
CaloCompactCellContainer.cxx:30
CaloCompactCellContainer::setHeader
void setHeader(const std::vector< value_type > &theHeader)
replaces the current header (if there was one)
Definition
CaloCompactCellContainer.cxx:36
CaloCompactCellContainer::getHeader
const std::vector< value_type > getHeader() const
returns header portion of the compact cell container
Definition
CaloCompactCellContainer.cxx:22
Generated on
for ATLAS Offline Software by
1.17.0