ATLAS Offline Software
InnerDetector
InDetDetDescr
SCT_GeoModel
src
SCT_FwdThermalShieldElement.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
SCT_GeoModel/SCT_FwdThermalShieldElement.h
"
6
7
#include "
SCT_GeoModel/SCT_MaterialManager.h
"
8
9
#include "
SCT_GeoModel/SCT_GeometryManager.h
"
10
#include "
SCT_GeoModel/SCT_ForwardParameters.h
"
11
12
#include "GeoModelKernel/GeoTube.h"
13
#include "GeoModelKernel/GeoLogVol.h"
14
#include "GeoModelKernel/GeoPhysVol.h"
15
#include "GeoModelKernel/Units.h"
16
17
#include <cmath>
18
19
SCT_FwdThermalShieldElement::SCT_FwdThermalShieldElement
(
const
std::string &
name
,
int
iElement,
20
InDetDD::SCT_DetectorManager
* detectorManager,
21
SCT_GeometryManager
* geometryManager,
22
SCT_MaterialManager
* materials)
23
:
SCT_SharedComponentFactory
(
name
, detectorManager, geometryManager, materials),
24
m_iElement(iElement)
25
{
26
getParameters
();
27
m_physVolume
=
SCT_FwdThermalShieldElement::build
();
28
}
29
30
31
void
32
SCT_FwdThermalShieldElement::getParameters
()
33
{
34
const
SCT_ForwardParameters
*
parameters
=
m_geometryManager
->
forwardParameters
();
35
36
m_materialName
=
parameters
->fwdThermalShieldMaterial(
m_iElement
);
37
m_innerRadius
=
parameters
->fwdThermalShieldInnerRadius(
m_iElement
);
38
m_outerRadius
=
parameters
->fwdThermalShieldOuterRadius(
m_iElement
);
39
m_zMin
=
parameters
->fwdThermalShieldZMin(
m_iElement
);
40
m_zMax
=
parameters
->fwdThermalShieldZMax(
m_iElement
);
41
42
m_length
= std::abs(
m_zMax
-
m_zMin
);
43
44
}
45
46
GeoVPhysVol *
47
SCT_FwdThermalShieldElement::build
()
48
{
49
// Make the support disk. A simple tube.
50
const
GeoTube * elementShape =
new
GeoTube(
m_innerRadius
,
m_outerRadius
, 0.5 *
m_length
);
51
m_material
=
m_materials
->
getMaterialForVolume
(
m_materialName
, elementShape->volume());
52
if
(!
m_material
)
m_material
=
m_materials
->
getMaterial
(
m_materialName
);
53
const
GeoLogVol * elementLog =
new
GeoLogVol(
getName
(), elementShape,
m_material
);
54
55
GeoPhysVol * element =
new
GeoPhysVol(elementLog);
56
57
return
element;
58
}
SCT_ComponentFactory::m_geometryManager
SCT_GeometryManager * m_geometryManager
Definition:
SCT_ComponentFactory.h:42
SCT_FwdThermalShieldElement::m_materialName
std::string m_materialName
Definition:
SCT_FwdThermalShieldElement.h:40
SCT_MaterialManager
Definition:
SCT_MaterialManager.h:21
SCT_FwdThermalShieldElement::m_zMax
double m_zMax
Definition:
SCT_FwdThermalShieldElement.h:47
SCT_FwdThermalShieldElement::m_iElement
int m_iElement
Definition:
SCT_FwdThermalShieldElement.h:43
InDetDD::SCT_DetectorManager
Definition:
SCT_DetectorManager.h:49
SCT_MaterialManager.h
SCT_FwdThermalShieldElement::getParameters
void getParameters()
Definition:
SCT_FwdThermalShieldElement.cxx:32
SCT_GeometryManager::forwardParameters
const SCT_ForwardParameters * forwardParameters() const
Definition:
SCT_GeometryManager.cxx:98
SCT_FwdThermalShieldElement::m_outerRadius
double m_outerRadius
Definition:
SCT_FwdThermalShieldElement.h:45
SCT_FwdThermalShieldElement.h
SCT_FwdThermalShieldElement::SCT_FwdThermalShieldElement
SCT_FwdThermalShieldElement(const std::string &name, int iElement, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
Definition:
SCT_FwdThermalShieldElement.cxx:19
SCT_FwdThermalShieldElement::m_material
const GeoMaterial * m_material
Definition:
SCT_FwdThermalShieldElement.h:41
SCT_FwdThermalShieldElement::build
virtual GeoVPhysVol * build()
Definition:
SCT_FwdThermalShieldElement.cxx:47
SCT_FwdThermalShieldElement::m_length
double m_length
Definition:
SCT_FwdThermalShieldElement.h:49
SCT_MaterialManager::getMaterialForVolume
const GeoMaterial * getMaterialForVolume(const std::string &materialName, double volume)
Definition:
SCT_MaterialManager.cxx:61
SCT_ComponentFactory::m_materials
SCT_MaterialManager * m_materials
Definition:
SCT_ComponentFactory.h:43
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
SCT_SharedComponentFactory::m_physVolume
GeoVPhysVol * m_physVolume
Definition:
SCT_ComponentFactory.h:70
SCT_MaterialManager::getMaterial
const GeoMaterial * getMaterial(const std::string &materialName)
Definition:
SCT_MaterialManager.cxx:40
SCT_SharedComponentFactory
Definition:
SCT_ComponentFactory.h:56
physics_parameters.parameters
parameters
Definition:
physics_parameters.py:144
SCT_ForwardParameters.h
SCT_FwdThermalShieldElement::m_innerRadius
double m_innerRadius
Definition:
SCT_FwdThermalShieldElement.h:44
SCT_ComponentFactory::getName
const std::string & getName() const
Definition:
SCT_ComponentFactory.h:35
SCT_FwdThermalShieldElement::m_zMin
double m_zMin
Definition:
SCT_FwdThermalShieldElement.h:46
SCT_GeometryManager.h
SCT_GeometryManager
Definition:
SCT_GeometryManager.h:25
SCT_ForwardParameters
Definition:
SCT_ForwardParameters.h:16
Generated on Mon Dec 23 2024 21:17:53 for ATLAS Offline Software by
1.8.18