ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
SCT_GeoModel
src
SCT_BaseBoard.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
SCT_BaseBoard.h
"
6
7
#include "
SCT_MaterialManager.h
"
8
9
#include "
SCT_GeometryManager.h
"
10
#include "
SCT_BarrelModuleParameters.h
"
11
#include "
SCT_GeneralParameters.h
"
12
13
#include "GeoModelKernel/GeoBox.h"
14
#include "GeoModelKernel/GeoLogVol.h"
15
#include "GeoModelKernel/GeoPhysVol.h"
16
#include "GeoModelKernel/GeoMaterial.h"
17
18
SCT_BaseBoard::SCT_BaseBoard
(
const
std::string & name,
19
InDetDD::SCT_DetectorManager
* detectorManager,
20
SCT_GeometryManager
* geometryManager,
21
SCT_MaterialManager
* materials)
22
:
SCT_SharedComponentFactory
(name, detectorManager, geometryManager, materials)
23
{
24
getParameters
();
25
m_physVolume
=
SCT_BaseBoard::build
();
26
}
27
28
void
29
SCT_BaseBoard::getParameters
()
30
{
31
const
SCT_GeneralParameters
* generalParameters =
m_geometryManager
->generalParameters();
32
const
SCT_BarrelModuleParameters
* parameters =
m_geometryManager
->barrelModuleParameters();
33
34
m_material
=
m_materials
->getMaterial(parameters->baseBoardMaterial());
35
m_safety
= generalParameters->
safety
();
36
m_thickness
= parameters->baseBoardThickness();
37
m_width
= parameters->baseBoardWidth();
38
m_length
= parameters->baseBoardLength();
39
40
}
41
42
GeoVPhysVol *
43
SCT_BaseBoard::build
()
44
{
45
// Make BaseBoard. Just a simple box.
46
const
GeoBox * simpleBaseBoardShape =
new
GeoBox(0.5*
m_thickness
,
47
0.5*
m_width
,
48
0.5*
m_length
);
49
50
const
GeoLogVol * simpleBaseBoardLog =
51
new
GeoLogVol(
getName
(), simpleBaseBoardShape,
m_material
);
52
53
GeoPhysVol * simpleBaseBoard =
new
GeoPhysVol(simpleBaseBoardLog);
54
55
return
simpleBaseBoard;
56
}
SCT_BarrelModuleParameters.h
SCT_BaseBoard.h
SCT_GeneralParameters.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_BarrelModuleParameters
Definition
SCT_BarrelModuleParameters.h:12
SCT_BaseBoard::m_thickness
double m_thickness
Definition
SCT_BaseBoard.h:38
SCT_BaseBoard::m_material
const GeoMaterial * m_material
Definition
SCT_BaseBoard.h:37
SCT_BaseBoard::SCT_BaseBoard
SCT_BaseBoard(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
Definition
SCT_BaseBoard.cxx:18
SCT_BaseBoard::m_width
double m_width
Definition
SCT_BaseBoard.h:39
SCT_BaseBoard::m_safety
double m_safety
Definition
SCT_BaseBoard.h:45
SCT_BaseBoard::build
virtual GeoVPhysVol * build()
Definition
SCT_BaseBoard.cxx:43
SCT_BaseBoard::m_length
double m_length
Definition
SCT_BaseBoard.h:40
SCT_BaseBoard::getParameters
void getParameters()
Definition
SCT_BaseBoard.cxx:29
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_GeneralParameters
Definition
SCT_GeneralParameters.h:16
SCT_GeneralParameters::safety
double safety() const
Definition
SCT_GeneralParameters.cxx:48
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