ATLAS Offline Software
Loading...
Searching...
No Matches
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
20
22#include <vector>
23
24class 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
64CLASS_DEF(CaloCompactCell, 107078417, 1)
65#endif
66
67
68
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
holds compactified CaloCell information
MASKS
mask to project all bits of the value_type defined above.
std::vector< value_type > m_compactData
vector containing the compactified CaloCell information.
unsigned short value_type
value type for the compact CaloCell data
CaloCompactCell(const std::vector< value_type > &theCompactData)
Constructor.
~CaloCompactCell()=default
const std::vector< value_type > & getData() const
returns the vector of compactified CaloCell data.