ATLAS Offline Software
CaloGeometryFromCaloDDM.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "CaloDetDescr/CaloDetDescrElement.h"
8 
10  : CaloGeometry()
11  , AthMessaging("CaloGeometryFromCaloDDM")
12 {
13 }
14 
16 = default;
17 
19 {
20  int jentry=0;
21  for(CaloDetDescrManager::calo_element_const_iterator calo_iter=calo_dd_man->element_begin();calo_iter<calo_dd_man->element_end();++calo_iter) {
22  const CaloDetDescrElement* pcell=*calo_iter;
23  addcell(pcell);
24 
25  if(jentry%25000==0) {
26  ATH_MSG_DEBUG(jentry<<" : "<<pcell->getSampling()<<", "<<pcell->identify());
27  }
28  ++jentry;
29  }
30 
31  return PostProcessGeometry();
32 }
34  this->SetFCal_ChannelMap( fcal_dd_man->getChannelMap() );
35  this->calculateFCalRminRmax();
36  return this->checkFCalGeometryConsistency();
37 }
CaloGeometry::PostProcessGeometry
virtual bool PostProcessGeometry()
Definition: CaloGeometry.cxx:627
FCALDetectorManager
A manager class providing access to readout geometry information for the forward calorimeter.
Definition: FCALDetectorManager.h:29
CaloGeometry::checkFCalGeometryConsistency
virtual bool checkFCalGeometryConsistency()
Definition: CaloGeometry.cxx:922
CaloGeometryFromCaloDDM::LoadFCalChannelMapFromFCalDDM
bool LoadFCalChannelMapFromFCalDDM(const FCALDetectorManager *fcal_dd_man)
Definition: CaloGeometryFromCaloDDM.cxx:33
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloGeometryFromCaloDDM::~CaloGeometryFromCaloDDM
virtual ~CaloGeometryFromCaloDDM()
CaloGeometry::addcell
virtual void addcell(const CaloDetDescrElement *cell)
Definition: CaloGeometry.cxx:67
CaloGeometryFromCaloDDM::LoadGeometryFromCaloDDM
bool LoadGeometryFromCaloDDM(const CaloDetDescrManager *calo_dd_man)
Definition: CaloGeometryFromCaloDDM.cxx:18
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloGeometry
Definition: CaloGeometry.h:27
CaloGeometryFromCaloDDM::CaloGeometryFromCaloDDM
CaloGeometryFromCaloDDM()
Definition: CaloGeometryFromCaloDDM.cxx:9
CaloGeometryFromCaloDDM.h
CaloDetDescrElement::identify
Identifier identify() const override final
cell identifier
Definition: CaloDetDescrElement.cxx:64
CaloGeometry::SetFCal_ChannelMap
void SetFCal_ChannelMap(const FCAL_ChannelMap *fcal_ChannnelMap)
Definition: CaloGeometry.h:73
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
CaloDetDescrManager_Base::element_begin
calo_element_const_iterator element_begin() const
first element
Definition: CaloDetDescrManager.cxx:111
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
CaloDetDescrElement::getSampling
CaloCell_ID::CaloSample getSampling() const
cell sampling
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:395
FCALDetectorManager::getChannelMap
const FCAL_ChannelMap * getChannelMap() const
Returns the Channel Map.
Definition: FCALDetectorManager.h:126
CaloGeometry::calculateFCalRminRmax
void calculateFCalRminRmax()
Definition: CaloGeometry.cxx:905
CaloConstIteratorAdaptor
Tranform iterator over pointers to iterator over const pointers.
Definition: CaloConstIteratorAdaptor.h:47