ATLAS Offline Software
Loading...
Searching...
No Matches
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
20
21
22const 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
31{
33}
34
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}
static unsigned int totalSize(const MultiDimArray< T, N > &ht)
std::vector< value_type > m_compactData
vector containing header and compact cell data.
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)
const std::vector< value_type > getHeader() const
returns header portion of the compact cell container