ATLAS Offline Software
Loading...
Searching...
No Matches
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
27class CaloCell;
29
30private:
31
32 // Friends
33
34 // Data members
35
36 size_t m_iCell;
38
42 bool m_used;
43
44public:
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
Container class for CaloCell.
CaloCell_Base_ID::SUBCALO SUBCALO
Definition CaloCell_ID.h:50
Data object for each calorimeter readout cell.
Definition CaloCell.h:57
void setSignedRatio(const float &signedRatio)
IdentifierHash m_idHash
Global calorimeter hash.
CaloCell_ID::SUBCALO getSubDet() const
const IdentifierHash & getID() const
CaloTopoTmpClusterCellBase(const IdentifierHash &idHash, const CaloCell_ID::SUBCALO subDet, const size_t &iCell, const float &signedRatio)
This is a "hash" representation of an Identifier.