ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
InDetDD::DistortedMaterialManager Class Reference

#include <DistortedMaterialManager.h>

Collaboration diagram for InDetDD::DistortedMaterialManager:

Public Member Functions

 DistortedMaterialManager ()
 
IRDBRecordset_ptr extraMaterialTable () const
 
StoredMaterialManagermaterialManager ()
 

Private Attributes

StoredMaterialManagerm_materialManager {nullptr}
 
IRDBRecordset_ptr m_xMatTable
 

Detailed Description

Definition at line 13 of file DistortedMaterialManager.h.

Constructor & Destructor Documentation

◆ DistortedMaterialManager()

InDetDD::DistortedMaterialManager::DistortedMaterialManager ( )

Definition at line 17 of file DistortedMaterialManager.cxx.

17  {
18  ISvcLocator* svcLocator = Gaudi::svcLocator(); // from Bootstrap
19 
20  MsgStream log(Athena::getMessageSvc(), "ExtraMaterialManager");
21  log << MSG::DEBUG << "Initialized InDet Distorted Material Manager" << endmsg;
22 
23  StoreGateSvc* detStore{nullptr};
24  StatusCode sc = svcLocator->service("DetectorStore", detStore);
25  if (sc.isFailure()) log << MSG::FATAL << "Could not locate DetectorStore" << endmsg;
26 
27  IGeoDbTagSvc* geoDbTag{nullptr};
28  sc = svcLocator->service("GeoDbTagSvc",geoDbTag);
29  if (sc.isFailure()) log << MSG::FATAL << "Could not locate GeoDbTagSvc" << endmsg;
30 
31  IRDBAccessSvc* rdbSvc{nullptr};
32  sc = svcLocator->service(geoDbTag->getParamSvcName(), rdbSvc);
33  if (sc.isFailure()) log << MSG::FATAL << "Could not locate " << geoDbTag->getParamSvcName() << endmsg;
34 
35  // Get version tag and node for InDet.
36  DecodeVersionKey versionKey("InnerDetector");
37  const std::string& detectorKey = versionKey.tag();
38  const std::string& detectorNode = versionKey.node();
39 
40  log << MSG::DEBUG << "Retrieving Record Sets from database ..." << endmsg;
41  log << MSG::DEBUG << "Key = " << detectorKey << " Node = " << detectorNode << endmsg;
42 
43  m_xMatTable = rdbSvc->getRecordsetPtr("InDetExtraMaterial", detectorKey, detectorNode);
44  m_materialManager = detStore->tryRetrieve<StoredMaterialManager>("MATERIALS");
45  }

Member Function Documentation

◆ extraMaterialTable()

IRDBRecordset_ptr InDetDD::DistortedMaterialManager::extraMaterialTable ( ) const
inline

Definition at line 17 of file DistortedMaterialManager.h.

17 {return m_xMatTable;}

◆ materialManager()

StoredMaterialManager* InDetDD::DistortedMaterialManager::materialManager ( )
inline

Definition at line 18 of file DistortedMaterialManager.h.

18 {return m_materialManager;}

Member Data Documentation

◆ m_materialManager

StoredMaterialManager* InDetDD::DistortedMaterialManager::m_materialManager {nullptr}
private

Definition at line 21 of file DistortedMaterialManager.h.

◆ m_xMatTable

IRDBRecordset_ptr InDetDD::DistortedMaterialManager::m_xMatTable
private

Definition at line 22 of file DistortedMaterialManager.h.


The documentation for this class was generated from the following files:
python.Constants.FATAL
int FATAL
Definition: Control/AthenaCommon/python/Constants.py:19
InDetDD::DistortedMaterialManager::m_xMatTable
IRDBRecordset_ptr m_xMatTable
Definition: DistortedMaterialManager.h:22
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
IRDBAccessSvc
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
Definition: IRDBAccessSvc.h:45
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DecodeVersionKey
This is a helper class to query the version tags from GeoModelSvc and determine the appropriate tag a...
Definition: DecodeVersionKey.h:18
IGeoDbTagSvc
Definition: IGeoDbTagSvc.h:26
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
StoredMaterialManager
This class holds one or more material managers and makes them storeable, under StoreGate.
Definition: StoredMaterialManager.h:28
InDetDD::DistortedMaterialManager::m_materialManager
StoredMaterialManager * m_materialManager
Definition: DistortedMaterialManager.h:21