ATLAS Offline Software
CaloCompactCell.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOEVENT_CALOCOMPACTCELL_H
6 #define CALOEVENT_CALOCOMPACTCELL_H
7 
21 #include "AthenaKernel/CLASS_DEF.h"
22 #include <vector>
23 
24 class CaloCompactCell final
25 {
26 
27  public:
28 
34  typedef unsigned short value_type;
35 
37  enum MASKS {WORDMASK = 0xFFFF};
38 
39  private:
41  std::vector<value_type> m_compactData;
42 
43  public:
48  CaloCompactCell(const std::vector<value_type> & theCompactData):
49  m_compactData(theCompactData)
50  { };
51 
52  ~CaloCompactCell() = default;
53 
58  inline const std::vector<value_type> & getData() const {
59  return m_compactData;
60  };
61 
62 };
63 
64 CLASS_DEF(CaloCompactCell, 107078417, 1)
65 #endif
66 
67 
68 
CaloCompactCell::m_compactData
std::vector< value_type > m_compactData
vector containing the compactified CaloCell information.
Definition: CaloCompactCell.h:41
CaloCompactCell::CaloCompactCell
CaloCompactCell(const std::vector< value_type > &theCompactData)
Constructor.
Definition: CaloCompactCell.h:48
CaloCompactCell::~CaloCompactCell
~CaloCompactCell()=default
CaloCompactCell::value_type
unsigned short value_type
value type for the compact CaloCell data
Definition: CaloCompactCell.h:34
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
CaloCompactCell::MASKS
MASKS
mask to project all bits of the value_type defined above.
Definition: CaloCompactCell.h:37
CaloCompactCell
holds compactified CaloCell information
Definition: CaloCompactCell.h:25
CaloCompactCell::WORDMASK
@ WORDMASK
Definition: CaloCompactCell.h:37
CaloCompactCell::getData
const std::vector< value_type > & getData() const
returns the vector of compactified CaloCell data.
Definition: CaloCompactCell.h:58
CLASS_DEF.h
macros to associate a CLID to a type