ATLAS Offline Software
CaloNoiseHashRanges.h
Go to the documentation of this file.
1 //Dear emacs, this is -*-c++-*-
2 /*
3  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4 */
5 #ifndef CALOCONDITIONS_CALONOISEHASHRANGES
6 #define CALOCONDITIONS_CALONOISEHASHRANGES
7 
8 #include <map>
10 
11 class CaloCell_ID;
12 
13 
19 
20  public:
21  //Delete default constructor
22  CaloNoiseHashRanges() = delete;
23 
30  CaloNoiseHashRanges(const CaloCell_ID* cellId);
31 
32 
33  ~CaloNoiseHashRanges() = default;
34 
35  //SYSTEM == COOL channel number
36  enum SYSTEM{EMECZNEG = 0,
37  EMBZNEG = 1,
38  EMBZPOS = 2,
39  EMECZPOS = 3,
40  HEC =16,
41  FCAL =32,
42  TILE =48};
43 
44 
45  //Getters:
46 
48  const std::map<SYSTEM,IdentifierHash>& hashOffsets() const {return m_hashOffsets;}
50  std::size_t maxLArCells() const {return m_maxLArCells;}
52  std::size_t maxTileCells() const {return m_maxTileCells;}
53 
54 
55 private:
56  std::map<SYSTEM,IdentifierHash> m_hashOffsets;
57  std::size_t m_maxLArCells;
58  std::size_t m_maxTileCells;
59 
60 };
61 
62 #endif
CaloNoiseHashRanges::EMBZNEG
@ EMBZNEG
Definition: CaloNoiseHashRanges.h:37
CaloNoiseHashRanges::EMBZPOS
@ EMBZPOS
Definition: CaloNoiseHashRanges.h:38
CaloNoiseHashRanges::m_maxLArCells
std::size_t m_maxLArCells
Definition: CaloNoiseHashRanges.h:57
CaloNoiseHashRanges::TILE
@ TILE
Definition: CaloNoiseHashRanges.h:42
CaloNoiseHashRanges::maxTileCells
std::size_t maxTileCells() const
Return the number of Tile cells.
Definition: CaloNoiseHashRanges.h:52
CaloNoiseHashRanges::EMECZNEG
@ EMECZNEG
Definition: CaloNoiseHashRanges.h:36
CaloNoiseHashRanges
Helper to calculate hash offsets in each COOL channel.
Definition: CaloNoiseHashRanges.h:18
CaloNoiseHashRanges::~CaloNoiseHashRanges
~CaloNoiseHashRanges()=default
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
CaloNoiseHashRanges::FCAL
@ FCAL
Definition: CaloNoiseHashRanges.h:41
CaloNoiseHashRanges::HEC
@ HEC
Definition: CaloNoiseHashRanges.h:40
CaloNoiseHashRanges::CaloNoiseHashRanges
CaloNoiseHashRanges()=delete
CaloNoiseHashRanges::m_maxTileCells
std::size_t m_maxTileCells
Definition: CaloNoiseHashRanges.h:58
IdentifierHash.h
CaloNoiseHashRanges::EMECZPOS
@ EMECZPOS
Definition: CaloNoiseHashRanges.h:39
CaloNoiseHashRanges::SYSTEM
SYSTEM
Definition: CaloNoiseHashRanges.h:36
CaloNoiseHashRanges::m_hashOffsets
std::map< SYSTEM, IdentifierHash > m_hashOffsets
Definition: CaloNoiseHashRanges.h:56
CaloNoiseHashRanges::maxLArCells
std::size_t maxLArCells() const
Return the number of LAr cells.
Definition: CaloNoiseHashRanges.h:50
CaloNoiseHashRanges::hashOffsets
const std::map< SYSTEM, IdentifierHash > & hashOffsets() const
Return a map of cool-channel and hash-offset.
Definition: CaloNoiseHashRanges.h:48