ATLAS Offline Software
CaloTopoTmpClusterCellBase.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 //-----------------------------------------------------------------------
6 // File and Version Information:
7 // $Id: CaloTopoTmpClusterCellBase.h,v 1.6 2008-12-23 02:57:16 ssnyder Exp $
8 //
9 // Description: Base class for the ClusterCell Container for the
10 // topological cluster making tools
11 //
12 // Environment:
13 // Software developed for the ATLAS Detector at the CERN LHC
14 //
15 // Author List:
16 // Sven Menke
17 //
18 //-----------------------------------------------------------------------
19 
20 #ifndef CALOTOPOTMPCLUSTERCELLBASE_H
21 #define CALOTOPOTMPCLUSTERCELLBASE_H
22 
25 
26 class CaloCellContainer;
27 class CaloCell;
29 
30 private:
31 
32  // Friends
33 
34  // Data members
35 
36  size_t m_iCell;
38 
42  bool m_used;
43 
44 public:
45 
46  // Constructors
47 
48  CaloTopoTmpClusterCellBase(const IdentifierHash & idHash, const CaloCell_ID::SUBCALO subDet, const size_t &iCell, const float & signedRatio)
49  : m_iCell(iCell),
50  m_subDet(subDet),
51  m_idHash(idHash),
52  m_signedRatio(signedRatio),
53  m_used(false)
54  {
55  }
56 
57  // Destructors
58 
59  // Methods
60 
61  inline const IdentifierHash & getID() const
62  {
63  return m_idHash;
64  }
65 
66 
67  inline const size_t & getCaloCell() const
68  {
69  return m_iCell;
70  }
71 
73  {
74  return m_subDet;
75  }
76 
77  inline const float & getSignedRatio() const
78  {
79  return m_signedRatio;
80  }
81 
82  inline void setSignedRatio(const float & signedRatio)
83  {
84  m_signedRatio = signedRatio;
85  }
86 
87  inline bool getUsed() const
88  {
89  return m_used;
90  }
91 
92  inline void setUsed()
93  {
94  m_used = true;
95  }
96 
97  inline void setUnused()
98  {
99  m_used = false;
100  }
101 };
102 
103 #endif // CALOTOPOTMPCLUSTERCELLBASE_H
104 
CaloTopoTmpClusterCellBase::m_signedRatio
float m_signedRatio
Definition: CaloTopoTmpClusterCellBase.h:41
CaloTopoTmpClusterCellBase
Definition: CaloTopoTmpClusterCellBase.h:28
CaloTopoTmpClusterCellBase::m_idHash
IdentifierHash m_idHash
Global calorimeter hash.
Definition: CaloTopoTmpClusterCellBase.h:40
CaloCell_ID.h
CaloTopoTmpClusterCellBase::getCaloCell
const size_t & getCaloCell() const
Definition: CaloTopoTmpClusterCellBase.h:67
CaloTopoTmpClusterCellBase::getSubDet
CaloCell_ID::SUBCALO getSubDet() const
Definition: CaloTopoTmpClusterCellBase.h:72
CaloCell_Base_ID::SUBCALO
SUBCALO
enumeration of sub calorimeters
Definition: CaloCell_Base_ID.h:46
CaloTopoTmpClusterCellBase::setSignedRatio
void setSignedRatio(const float &signedRatio)
Definition: CaloTopoTmpClusterCellBase.h:82
CaloTopoTmpClusterCellBase::m_used
bool m_used
Definition: CaloTopoTmpClusterCellBase.h:42
CaloTopoTmpClusterCellBase::CaloTopoTmpClusterCellBase
CaloTopoTmpClusterCellBase(const IdentifierHash &idHash, const CaloCell_ID::SUBCALO subDet, const size_t &iCell, const float &signedRatio)
Definition: CaloTopoTmpClusterCellBase.h:48
CaloTopoTmpClusterCellBase::m_subDet
CaloCell_ID::SUBCALO m_subDet
Definition: CaloTopoTmpClusterCellBase.h:37
CaloTopoTmpClusterCellBase::setUnused
void setUnused()
Definition: CaloTopoTmpClusterCellBase.h:97
CaloTopoTmpClusterCellBase::getID
const IdentifierHash & getID() const
Definition: CaloTopoTmpClusterCellBase.h:61
IdentifierHash.h
CaloTopoTmpClusterCellBase::getUsed
bool getUsed() const
Definition: CaloTopoTmpClusterCellBase.h:87
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
CaloTopoTmpClusterCellBase::setUsed
void setUsed()
Definition: CaloTopoTmpClusterCellBase.h:92
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
CaloTopoTmpClusterCellBase::m_iCell
size_t m_iCell
Definition: CaloTopoTmpClusterCellBase.h:36
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
CaloTopoTmpClusterCellBase::getSignedRatio
const float & getSignedRatio() const
Definition: CaloTopoTmpClusterCellBase.h:77