|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef GEOMODELSVC_RDBMATERIALMANAGER_H
6 #define GEOMODELSVC_RDBMATERIALMANAGER_H
18 #include "GeoModelKernel/GeoIntrusivePtr.h"
19 #include "GeoModelKernel/GeoElement.h"
39 virtual const GeoMaterial *
getMaterial(
const std::string &
name)
override;
42 virtual const GeoElement *
getElement(
const std::string &
name)
override;
45 virtual const GeoElement *
getElement(
unsigned int atomicNumber)
override;
48 virtual void addMaterial(
const std::string& space, GeoMaterial* material)
override;
54 virtual size_t size()
override;
56 virtual std::ostream &
printAll(std::ostream & o=std::cout)
const override;
94 using GeoEleVec = std::vector<GeoIntrusivePtr<GeoElement>>;
IRDBRecordset_ptr m_indetmatcomponents
IRDBRecordset_ptr m_shieldmatcomponents
virtual void addMaterial(const std::string &space, GeoMaterial *material) override
std::map< std::string, GeoIntrusivePtr< GeoMaterial > > MaterialMap
IRDBRecordset_ptr m_toromaterials
IRDBRecordset_ptr m_larmatcomponents
IRDBRecordset_ptr m_sctmaterials
StoredMaterialManager::MaterialMap m_materialMap
IRDBRecordset_ptr m_muomaterials
IRDBRecordset_ptr m_trtmaterials
IRDBRecordset_ptr m_sctmatcomponents
IRDBRecordset_ptr m_pixmaterials
IRDBRecordset_ptr m_stdmatcomponents
GeoEleVec m_elementVector
Definition of the abstract IRDBAccessSvc interface.
IRDBRecordset_ptr m_trtmatcomponents
IRDBRecordset_ptr m_muomatcomponents
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode readMaterialsFromDB(ISvcLocator *pSvcLocator)
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
virtual size_t size() override
IRDBRecordset_ptr m_tilematerials
IRDBRecordset_ptr m_pixmatcomponents
IRDBRecordset_ptr m_tilematcomponents
virtual const GeoMaterial * getMaterial(const std::string &name) override
IRDBRecordset_ptr m_toromatcomponents
IRDBRecordset_ptr m_stdmaterials
virtual std::ostream & printAll(std::ostream &o=std::cout) const override
virtual const GeoElement * getElement(const std::string &name) override
IRDBRecordset_ptr m_indetmaterials
virtual ~RDBMaterialManager()
RDBMaterialManager(ISvcLocator *pSvcLocator)
MaterialMap::const_iterator MaterialMapIterator
void buildSpecialMaterials()
GeoMaterial * searchMaterialMap(const std::string &name) const
This class holds one or more material managers and makes them storeable, under StoreGate.
virtual StoredMaterialManager::MaterialMapIterator begin() const override
IRDBRecordset_ptr m_pixtbmaterials
IRDBRecordset_ptr m_shieldmaterials
virtual StoredMaterialManager::MaterialMapIterator end() const override
IRDBRecordset_ptr m_pixtbmatcomponents
IRDBRecordset_ptr m_elements
GeoElement * searchElementVector(const std::string &name) const
IRDBRecordset_ptr m_larmaterials
std::vector< GeoIntrusivePtr< GeoElement > > GeoEleVec