ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LArDetectorManager Class Reference

Stored in storegate. Provides access to EMB, EMEC, HEC and FCAL Detector Managers. This manager for the whole LAr can purvey not only physical volumes but also pointers to managers for the sub-calorimeters:EMB, EMEC, HEC and FCAL. More...

#include <LArDetectorManager.h>

Inheritance diagram for LArDetectorManager:
Collaboration diagram for LArDetectorManager:

Public Member Functions

 LArDetectorManager (const EMBDetectorManager *emb, const EMECDetectorManager *emec, const HECDetectorManager *hec, const FCALDetectorManager *fcal)
 Constructor. More...
 
virtual PVConstLink getTreeTop (unsigned int i) const override
 Gets the ith tree top. More...
 
virtual unsigned int getNumTreeTops () const override
 Gets the number of tree tops. More...
 
void addTreeTop (const PVConstLink &treeTop)
 Add a Tree Top. More...
 
const EMBDetectorManagergetEmbManager () const
 Pointer to the manager for the Electromagnetic Barrel. More...
 
const EMECDetectorManagergetEmecManager () const
 Pointer to the manager for the Electromagnetic Endcap. More...
 
const HECDetectorManagergetHecManager () const
 Pointer to the manager for the Hadronic Endcap. More...
 
const FCALDetectorManagergetFcalManager () const
 Pointer to the manager for the Forward Calorimeter. More...
 
void isTestBeam (bool flag)
 Set Test Beam flag. More...
 
bool isTestBeam () const
 Get Test Beam flag. More...
 

Private Member Functions

 LArDetectorManager (const LArDetectorManager &right)
 
LArDetectorManageroperator= (const LArDetectorManager &right)
 

Private Attributes

const EMBDetectorManagerm_embManager {nullptr}
 
const EMECDetectorManagerm_emecManager {nullptr}
 
const HECDetectorManagerm_hecManager {nullptr}
 
const FCALDetectorManagerm_fcalManager {nullptr}
 
std::vector< PVConstLink > m_treeTop
 
bool m_isTestBeam {false}
 

Detailed Description

Stored in storegate. Provides access to EMB, EMEC, HEC and FCAL Detector Managers. This manager for the whole LAr can purvey not only physical volumes but also pointers to managers for the sub-calorimeters:EMB, EMEC, HEC and FCAL.

Definition at line 25 of file LArDetectorManager.h.

Constructor & Destructor Documentation

◆ LArDetectorManager() [1/2]

LArDetectorManager::LArDetectorManager ( const EMBDetectorManager emb,
const EMECDetectorManager emec,
const HECDetectorManager hec,
const FCALDetectorManager fcal 
)

Constructor.

Definition at line 8 of file LArDetectorManager.cxx.

12  : m_embManager(emb)
13  , m_emecManager(emec)
14  , m_hecManager(hec)
15  , m_fcalManager(fcal)
16  , m_isTestBeam(true)
17 {
18  setName("LArMgr");
19 }

◆ LArDetectorManager() [2/2]

LArDetectorManager::LArDetectorManager ( const LArDetectorManager right)
private

Member Function Documentation

◆ addTreeTop()

void LArDetectorManager::addTreeTop ( const PVConstLink &  treeTop)

Add a Tree Top.

Definition at line 31 of file LArDetectorManager.cxx.

32 {
33  if (std::find(m_treeTop.begin(),m_treeTop.end(),treeTop)!=m_treeTop.end()) return;
34  m_treeTop.push_back(treeTop);
35 }

◆ getEmbManager()

const EMBDetectorManager * LArDetectorManager::getEmbManager ( ) const
inline

Pointer to the manager for the Electromagnetic Barrel.

May be NULL.

Definition at line 96 of file LArDetectorManager.h.

97 {
98  return m_embManager;
99 }

◆ getEmecManager()

const EMECDetectorManager * LArDetectorManager::getEmecManager ( ) const
inline

Pointer to the manager for the Electromagnetic Endcap.

May be NULL.

Definition at line 101 of file LArDetectorManager.h.

102 {
103  return m_emecManager;
104 }

◆ getFcalManager()

const FCALDetectorManager * LArDetectorManager::getFcalManager ( ) const
inline

Pointer to the manager for the Forward Calorimeter.

Maybe NULL.

Definition at line 111 of file LArDetectorManager.h.

112 {
113  return m_fcalManager;
114 }

◆ getHecManager()

const HECDetectorManager * LArDetectorManager::getHecManager ( ) const
inline

Pointer to the manager for the Hadronic Endcap.

May be NULL.

Definition at line 106 of file LArDetectorManager.h.

107 {
108  return m_hecManager;
109 }

◆ getNumTreeTops()

unsigned int LArDetectorManager::getNumTreeTops ( ) const
overridevirtual

Gets the number of tree tops.

Definition at line 26 of file LArDetectorManager.cxx.

27 {
28  return m_treeTop.size();
29 }

◆ getTreeTop()

PVConstLink LArDetectorManager::getTreeTop ( unsigned int  i) const
overridevirtual

Gets the ith tree top.

Definition at line 21 of file LArDetectorManager.cxx.

22 {
23  return m_treeTop[i];
24 }

◆ isTestBeam() [1/2]

bool LArDetectorManager::isTestBeam ( ) const
inline

Get Test Beam flag.

Definition at line 121 of file LArDetectorManager.h.

122 {
123  return m_isTestBeam;
124 }

◆ isTestBeam() [2/2]

void LArDetectorManager::isTestBeam ( bool  flag)
inline

Set Test Beam flag.

Definition at line 116 of file LArDetectorManager.h.

117 {
118  m_isTestBeam = flag;
119 }

◆ operator=()

LArDetectorManager& LArDetectorManager::operator= ( const LArDetectorManager right)
private

Member Data Documentation

◆ m_embManager

const EMBDetectorManager* LArDetectorManager::m_embManager {nullptr}
private

Definition at line 88 of file LArDetectorManager.h.

◆ m_emecManager

const EMECDetectorManager* LArDetectorManager::m_emecManager {nullptr}
private

Definition at line 89 of file LArDetectorManager.h.

◆ m_fcalManager

const FCALDetectorManager* LArDetectorManager::m_fcalManager {nullptr}
private

Definition at line 91 of file LArDetectorManager.h.

◆ m_hecManager

const HECDetectorManager* LArDetectorManager::m_hecManager {nullptr}
private

Definition at line 90 of file LArDetectorManager.h.

◆ m_isTestBeam

bool LArDetectorManager::m_isTestBeam {false}
private

Definition at line 93 of file LArDetectorManager.h.

◆ m_treeTop

std::vector<PVConstLink> LArDetectorManager::m_treeTop
private

Definition at line 92 of file LArDetectorManager.h.


The documentation for this class was generated from the following files:
LArDetectorManager::m_hecManager
const HECDetectorManager * m_hecManager
Definition: LArDetectorManager.h:90
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
LArDetectorManager::m_embManager
const EMBDetectorManager * m_embManager
Definition: LArDetectorManager.h:88
LArDetectorManager::m_emecManager
const EMECDetectorManager * m_emecManager
Definition: LArDetectorManager.h:89
LArDetectorManager::m_fcalManager
const FCALDetectorManager * m_fcalManager
Definition: LArDetectorManager.h:91
lumiFormat.i
int i
Definition: lumiFormat.py:85
master.flag
bool flag
Definition: master.py:29
LArDetectorManager::m_isTestBeam
bool m_isTestBeam
Definition: LArDetectorManager.h:93
LArDetectorManager::m_treeTop
std::vector< PVConstLink > m_treeTop
Definition: LArDetectorManager.h:92