ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
SCT_GeoModel
src
SCT_FwdDiscSupport.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
SCT_FwdDiscSupport.h
"
6
#include "
SCT_MaterialManager.h
"
7
#include "
SCT_GeometryManager.h
"
8
#include "
SCT_ForwardParameters.h
"
9
10
#include "GeoModelKernel/GeoTube.h"
11
#include "GeoModelKernel/GeoLogVol.h"
12
#include "GeoModelKernel/GeoPhysVol.h"
13
#include "GeoModelKernel/Units.h"
14
15
#include <format>
16
17
SCT_FwdDiscSupport::SCT_FwdDiscSupport
(
const
std::string & name,
int
iWheel,
18
InDetDD::SCT_DetectorManager
* detectorManager,
19
SCT_GeometryManager
* geometryManager,
20
SCT_MaterialManager
* materials)
21
:
SCT_SharedComponentFactory
(name, detectorManager, geometryManager, materials),
22
m_iWheel
(iWheel)
23
{
24
getParameters
();
25
m_physVolume
=
SCT_FwdDiscSupport::build
();
26
}
27
28
29
void
30
SCT_FwdDiscSupport::getParameters
()
31
{
32
const
SCT_ForwardParameters
* parameters =
m_geometryManager
->forwardParameters();
33
34
m_materialName
= parameters->fwdDiscSupportMaterial();
35
m_thickness
= parameters->fwdDiscSupportThickness();
36
m_innerRadius
= parameters->fwdDiscSupportInnerRadius();
37
m_outerRadius
= parameters->fwdDiscSupportOuterRadius();
38
}
39
40
GeoVPhysVol *
41
SCT_FwdDiscSupport::build
()
42
{
43
// Make the support disk. A simple tube.
44
const
GeoTube * discSupportShape =
new
GeoTube(
m_innerRadius
,
m_outerRadius
, 0.5 *
m_thickness
);
45
m_material
=
m_materials
->getMaterialForVolume(std::format(
"{}{}"
,
m_materialName
,
m_iWheel
), discSupportShape->volume());
46
if
(!
m_material
)
m_material
=
m_materials
->getMaterial(
m_materialName
);
47
const
GeoLogVol * discSupportLog =
new
GeoLogVol(
getName
(), discSupportShape,
m_material
);
48
49
GeoPhysVol * discSupport =
new
GeoPhysVol(discSupportLog);
50
51
return
discSupport;
52
}
SCT_ForwardParameters.h
SCT_FwdDiscSupport.h
SCT_GeometryManager.h
SCT_MaterialManager.h
InDetDD::SCT_DetectorManager
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated SCT in...
Definition
SCT_DetectorManager.h:50
SCT_ComponentFactory::getName
const std::string & getName() const
Definition
SCT_ComponentFactory.h:35
SCT_ComponentFactory::m_geometryManager
SCT_GeometryManager * m_geometryManager
Definition
SCT_ComponentFactory.h:39
SCT_ComponentFactory::m_materials
SCT_MaterialManager * m_materials
Definition
SCT_ComponentFactory.h:40
SCT_ForwardParameters
Definition
SCT_ForwardParameters.h:16
SCT_FwdDiscSupport::m_thickness
double m_thickness
Definition
SCT_FwdDiscSupport.h:41
SCT_FwdDiscSupport::getParameters
void getParameters()
Definition
SCT_FwdDiscSupport.cxx:30
SCT_FwdDiscSupport::m_material
const GeoMaterial * m_material
Definition
SCT_FwdDiscSupport.h:42
SCT_FwdDiscSupport::m_iWheel
int m_iWheel
Definition
SCT_FwdDiscSupport.h:36
SCT_FwdDiscSupport::SCT_FwdDiscSupport
SCT_FwdDiscSupport(const std::string &name, int iWheel, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
Definition
SCT_FwdDiscSupport.cxx:17
SCT_FwdDiscSupport::m_materialName
std::string m_materialName
Definition
SCT_FwdDiscSupport.h:43
SCT_FwdDiscSupport::build
virtual GeoVPhysVol * build()
Definition
SCT_FwdDiscSupport.cxx:41
SCT_FwdDiscSupport::m_innerRadius
double m_innerRadius
Definition
SCT_FwdDiscSupport.h:39
SCT_FwdDiscSupport::m_outerRadius
double m_outerRadius
Definition
SCT_FwdDiscSupport.h:40
SCT_GeometryManager
Definition
SCT_GeometryManager.h:25
SCT_MaterialManager
Definition
SCT_MaterialManager.h:21
SCT_SharedComponentFactory::m_physVolume
GeoVPhysVol * m_physVolume
Definition
SCT_ComponentFactory.h:66
SCT_SharedComponentFactory::SCT_SharedComponentFactory
SCT_SharedComponentFactory(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials=nullptr)
Definition
SCT_ComponentFactory.h:56
Generated on
for ATLAS Offline Software by
1.17.0