ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_MaterialManager.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6#include "GeoModelKernel/GeoMaterial.h"
7#include "GeoModelKernel/GeoElement.h"
8#include "SCT_DataBase.h"
10#include "GaudiKernel/SystemOfUnits.h"
11
12#include <iostream>
13
14// Constructor
16 m_materialManager(std::make_unique<InDetMaterialManager>("SCT_MaterialManager", db->athenaComps()))
17{
18 // Make my material manager.
19 m_materialManager->addWeightTable(db->weightTable(), "sct");
20 m_materialManager->addScalingTable(db->scalingTable());
21
23
24 m_gasMaterial = m_materialManager->getMaterial("std::Air");
25}
26
27// Add materials not yet in the database
28void
32
33const GeoElement*
34SCT_MaterialManager::getElement(const std::string & elementName)
35{
36 return m_materialManager->getElement(elementName);
37}
38
39const GeoMaterial*
40SCT_MaterialManager::getMaterial(const std::string & materialName)
41{
42 return m_materialManager->getMaterial(materialName);
43}
44
45void
47{
48 return m_materialManager->addMaterial(material);
49}
50
51const GeoMaterial*
52SCT_MaterialManager::getMaterial(const std::string & originalMaterial,
53 double density,
54 const std::string & newName)
55{
56
57 return m_materialManager->getMaterial(originalMaterial, density, newName);
58}
59
60const GeoMaterial *
61SCT_MaterialManager::getMaterialForVolume(const std::string & materialName, double volume)
62{
63 return m_materialManager->getMaterialForVolume(materialName, volume);
64}
65
66
67
68const GeoMaterial*
Definition of the abstract IRDBRecordset interface.
InDetMaterialManager.
const GeoMaterial * m_gasMaterial
const GeoMaterial * getMaterial(const std::string &materialName)
SCT_MaterialManager(SCT_DataBase *db)
std::unique_ptr< InDetMaterialManager > m_materialManager
const GeoMaterial * getMaterialForVolume(const std::string &materialName, double volume)
const GeoMaterial * gasMaterial() const
const GeoElement * getElement(const std::string &elementName)
void addMaterial(GeoMaterial *material)
STL namespace.