ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
24
25class LArDetectorManager : public GeoVDetectorManager
26{
27 public:
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
116inline void LArDetectorManager::isTestBeam(bool flag)
117{
118 m_isTestBeam = flag;
119}
120
122{
123 return m_isTestBeam;
124}
125
126CLASS_DEF(LArDetectorManager, 14436910, 1)
127
128#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
A manager class providing access to readout geometry information for the electromagnetic barrel calor...
A manager class providing access to readout geometry information for the electromagnetic endcap calor...
A manager class providing access to readout geometry information for the forward calorimeter.
A manager class providing access to readout geometry information for the hadronic endcap calorimeter.
Stored in storegate.
std::vector< PVConstLink > m_treeTop
virtual unsigned int getNumTreeTops() const override
Gets the number of tree tops.
const FCALDetectorManager * getFcalManager() const
Pointer to the manager for the Forward Calorimeter.
const EMBDetectorManager * getEmbManager() const
Pointer to the manager for the Electromagnetic Barrel.
void addTreeTop(const PVConstLink &treeTop)
Add a Tree Top.
virtual PVConstLink getTreeTop(unsigned int i) const override
Gets the ith tree top.
const EMBDetectorManager * m_embManager
LArDetectorManager(const EMBDetectorManager *emb, const EMECDetectorManager *emec, const HECDetectorManager *hec, const FCALDetectorManager *fcal)
Constructor.
const FCALDetectorManager * m_fcalManager
LArDetectorManager & operator=(const LArDetectorManager &right)
const HECDetectorManager * getHecManager() const
Pointer to the manager for the Hadronic Endcap.
bool isTestBeam() const
Get Test Beam flag.
const HECDetectorManager * m_hecManager
const EMECDetectorManager * m_emecManager
LArDetectorManager(const LArDetectorManager &right)
const EMECDetectorManager * getEmecManager() const
Pointer to the manager for the Electromagnetic Endcap.