ATLAS Offline Software
LArDetectorManager.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include <algorithm>
7 
9  , const EMECDetectorManager* emec
10  , const HECDetectorManager* hec
11  , const FCALDetectorManager* fcal)
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 }
20 
21 PVConstLink LArDetectorManager::getTreeTop (unsigned int i) const
22 {
23  return m_treeTop[i];
24 }
25 
27 {
28  return m_treeTop.size();
29 }
30 
31 void LArDetectorManager::addTreeTop (const PVConstLink& treeTop)
32 {
33  if (std::find(m_treeTop.begin(),m_treeTop.end(),treeTop)!=m_treeTop.end()) return;
34  m_treeTop.push_back(treeTop);
35 }
36 
FCALDetectorManager
A manager class providing access to readout geometry information for the forward calorimeter.
Definition: FCALDetectorManager.h:29
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
EMECDetectorManager
A manager class providing access to readout geometry information for the electromagnetic endcap calor...
Definition: EMECDetectorManager.h:31
LArDetectorManager::getTreeTop
virtual PVConstLink getTreeTop(unsigned int i) const override
Gets the ith tree top.
Definition: LArDetectorManager.cxx:21
LArDetectorManager::getNumTreeTops
virtual unsigned int getNumTreeTops() const override
Gets the number of tree tops.
Definition: LArDetectorManager.cxx:26
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
LArDetectorManager::addTreeTop
void addTreeTop(const PVConstLink &treeTop)
Add a Tree Top.
Definition: LArDetectorManager.cxx:31
HECDetectorManager
A manager class providing access to readout geometry information for the hadronic endcap calorimeter.
Definition: HECDetectorManager.h:28
LArDetectorManager.h
LArDetectorManager::m_treeTop
std::vector< PVConstLink > m_treeTop
Definition: LArDetectorManager.h:92