ATLAS Offline Software
LArDetectorManager.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARREADOUTGEOMETRY_LARDETECTORMANAGER_H
6 #define LARREADOUTGEOMETRY_LARDETECTORMANAGER_H
7 
9 #include "GeoModelKernel/GeoVDetectorManager.h"
10 
11 class EMBDetectorManager;
13 class HECDetectorManager;
15 
25 class LArDetectorManager : public GeoVDetectorManager
26 {
27  public:
31  LArDetectorManager (const EMBDetectorManager* emb, const EMECDetectorManager* emec, const HECDetectorManager* hec, const FCALDetectorManager* fcal);
32 
36  virtual PVConstLink getTreeTop (unsigned int i) const override;
37 
41  virtual unsigned int getNumTreeTops () const override;
42 
46  void addTreeTop (const PVConstLink& treeTop);
47 
51  const EMBDetectorManager* getEmbManager () const;
52 
53 
57  const EMECDetectorManager* getEmecManager () const;
58 
59 
63  const HECDetectorManager* getHecManager () const;
64 
65 
69  const FCALDetectorManager* getFcalManager () const;
70 
71 
75  void isTestBeam(bool flag);
76 
80  bool isTestBeam() const;
81 
82 
83  private:
84 
87 
92  std::vector<PVConstLink> m_treeTop;
93  bool m_isTestBeam{false};
94 };
95 
97 {
98  return m_embManager;
99 }
100 
102 {
103  return m_emecManager;
104 }
105 
107 {
108  return m_hecManager;
109 }
110 
112 {
113  return m_fcalManager;
114 }
115 
117 {
118  m_isTestBeam = flag;
119 }
120 
122 {
123  return m_isTestBeam;
124 }
125 
126 CLASS_DEF(LArDetectorManager, 14436910, 1)
127 
128 #endif
FCALDetectorManager
A manager class providing access to readout geometry information for the forward calorimeter.
Definition: FCALDetectorManager.h:29
LArDetectorManager::m_hecManager
const HECDetectorManager * m_hecManager
Definition: LArDetectorManager.h:90
EMECDetectorManager
A manager class providing access to readout geometry information for the electromagnetic endcap calor...
Definition: EMECDetectorManager.h:31
LArDetectorManager::m_embManager
const EMBDetectorManager * m_embManager
Definition: LArDetectorManager.h:88
LArDetectorManager::getTreeTop
virtual PVConstLink getTreeTop(unsigned int i) const override
Gets the ith tree top.
Definition: LArDetectorManager.cxx:21
LArDetectorManager::m_emecManager
const EMECDetectorManager * m_emecManager
Definition: LArDetectorManager.h:89
LArDetectorManager::operator=
LArDetectorManager & operator=(const LArDetectorManager &right)
LArDetectorManager::getNumTreeTops
virtual unsigned int getNumTreeTops() const override
Gets the number of tree tops.
Definition: LArDetectorManager.cxx:26
LArDetectorManager::getEmecManager
const EMECDetectorManager * getEmecManager() const
Pointer to the manager for the Electromagnetic Endcap.
Definition: LArDetectorManager.h:101
LArDetectorManager::m_fcalManager
const FCALDetectorManager * m_fcalManager
Definition: LArDetectorManager.h:91
LArDetectorManager::LArDetectorManager
LArDetectorManager(const LArDetectorManager &right)
EMBDetectorManager
A manager class providing access to readout geometry information for the electromagnetic barrel calor...
Definition: EMBDetectorManager.h:32
lumiFormat.i
int i
Definition: lumiFormat.py:85
LArDetectorManager::LArDetectorManager
LArDetectorManager(const EMBDetectorManager *emb, const EMECDetectorManager *emec, const HECDetectorManager *hec, const FCALDetectorManager *fcal)
Constructor.
Definition: LArDetectorManager.cxx:8
master.flag
bool flag
Definition: master.py:29
LArDetectorManager::getFcalManager
const FCALDetectorManager * getFcalManager() const
Pointer to the manager for the Forward Calorimeter.
Definition: LArDetectorManager.h:111
LArDetectorManager::isTestBeam
bool isTestBeam() const
Get Test Beam flag.
Definition: LArDetectorManager.h:121
LArDetectorManager::addTreeTop
void addTreeTop(const PVConstLink &treeTop)
Add a Tree Top.
Definition: LArDetectorManager.cxx:31
LArDetectorManager
Stored in storegate. Provides access to EMB, EMEC, HEC and FCAL Detector Managers....
Definition: LArDetectorManager.h:26
HECDetectorManager
A manager class providing access to readout geometry information for the hadronic endcap calorimeter.
Definition: HECDetectorManager.h:28
LArDetectorManager::m_isTestBeam
bool m_isTestBeam
Definition: LArDetectorManager.h:93
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
LArDetectorManager::m_treeTop
std::vector< PVConstLink > m_treeTop
Definition: LArDetectorManager.h:92
LArDetectorManager::getHecManager
const HECDetectorManager * getHecManager() const
Pointer to the manager for the Hadronic Endcap.
Definition: LArDetectorManager.h:106
CLASS_DEF.h
macros to associate a CLID to a type
LArDetectorManager::getEmbManager
const EMBDetectorManager * getEmbManager() const
Pointer to the manager for the Electromagnetic Barrel.
Definition: LArDetectorManager.h:96