ATLAS Offline Software
InnerDetector
InDetDetDescr
SCT_GeoModel
src
SCT_FSIFibreMask.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_FSIFibreMask.h
"
6
7
#include "
SCT_GeoModel/SCT_MaterialManager.h
"
8
9
#include "
SCT_GeoModel/SCT_GeometryManager.h
"
10
#include "
SCT_GeoModel/SCT_BarrelParameters.h
"
11
12
#include "GeoModelKernel/GeoTube.h"
13
#include "GeoModelKernel/GeoLogVol.h"
14
#include "GeoModelKernel/GeoPhysVol.h"
15
#include "GeoModelKernel/Units.h"
16
17
18
SCT_FSIFibreMask::SCT_FSIFibreMask
(
const
std::string &
name
,
int
iLayer,
double
length
,
19
InDetDD::SCT_DetectorManager
* detectorManager,
20
SCT_GeometryManager
* geometryManager,
21
SCT_MaterialManager
* materials)
22
:
SCT_SharedComponentFactory
(
name
, detectorManager, geometryManager, materials),
23
m_iLayer(iLayer), m_length(
length
)
24
{
25
getParameters
();
26
m_physVolume
=
SCT_FSIFibreMask::build
();
27
}
28
29
30
void
31
SCT_FSIFibreMask::getParameters
()
32
{
33
const
SCT_BarrelParameters
*
parameters
=
m_geometryManager
->
barrelParameters
();
34
35
m_materialName
=
parameters
->fsiFibreMaskMaterial();
36
m_outerRadius
=
parameters
->supportCylInnerRadius(
m_iLayer
);
37
m_innerRadius
=
m_outerRadius
-
parameters
->fsiFibreMaskDeltaR();
38
39
}
40
41
GeoVPhysVol *
42
SCT_FSIFibreMask::build
()
43
{
44
// Make the support cyliner. A simple tube.
45
const
GeoTube * fibreMaskShape =
new
GeoTube(
m_innerRadius
,
m_outerRadius
, 0.5 *
m_length
);
46
m_material
=
m_materials
->
getMaterialForVolume
(
m_materialName
+
intToString
(
m_iLayer
), fibreMaskShape->volume());
47
const
GeoLogVol * fibreMaskLog =
new
GeoLogVol(
getName
(), fibreMaskShape,
m_material
);
48
49
GeoPhysVol * fibreMask =
new
GeoPhysVol(fibreMaskLog);
50
51
return
fibreMask;
52
}
SCT_ComponentFactory::m_geometryManager
SCT_GeometryManager * m_geometryManager
Definition:
SCT_ComponentFactory.h:42
SCT_MaterialManager
Definition:
SCT_MaterialManager.h:21
SCT_FSIFibreMask::m_materialName
std::string m_materialName
Definition:
SCT_FSIFibreMask.h:37
InDetDD::SCT_DetectorManager
Definition:
SCT_DetectorManager.h:49
SCT_MaterialManager.h
SCT_FSIFibreMask::getParameters
void getParameters()
Definition:
SCT_FSIFibreMask.cxx:31
SCT_FSIFibreMask.h
SCT_FSIFibreMask::m_material
const GeoMaterial * m_material
Definition:
SCT_FSIFibreMask.h:36
SCT_FSIFibreMask::build
virtual GeoVPhysVol * build()
Definition:
SCT_FSIFibreMask.cxx:42
SCT_GeometryManager::barrelParameters
const SCT_BarrelParameters * barrelParameters() const
Definition:
SCT_GeometryManager.cxx:78
SCT_FSIFibreMask::m_length
double m_length
Definition:
SCT_FSIFibreMask.h:40
SCT_FSIFibreMask::SCT_FSIFibreMask
SCT_FSIFibreMask(const std::string &name, int iLayer, double length, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
Definition:
SCT_FSIFibreMask.cxx:18
SCT_ComponentFactory::intToString
std::string intToString(int i) const
Definition:
SCT_ComponentFactory.cxx:30
SCT_MaterialManager::getMaterialForVolume
const GeoMaterial * getMaterialForVolume(const std::string &materialName, double volume)
Definition:
SCT_MaterialManager.cxx:61
SCT_FSIFibreMask::m_iLayer
int m_iLayer
Definition:
SCT_FSIFibreMask.h:34
SCT_ComponentFactory::m_materials
SCT_MaterialManager * m_materials
Definition:
SCT_ComponentFactory.h:43
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
SCT_SharedComponentFactory::m_physVolume
GeoVPhysVol * m_physVolume
Definition:
SCT_ComponentFactory.h:70
SCT_FSIFibreMask::m_outerRadius
double m_outerRadius
Definition:
SCT_FSIFibreMask.h:39
SCT_BarrelParameters
Definition:
SCT_BarrelParameters.h:12
SCT_BarrelParameters.h
SCT_SharedComponentFactory
Definition:
SCT_ComponentFactory.h:56
physics_parameters.parameters
parameters
Definition:
physics_parameters.py:144
SCT_ComponentFactory::getName
const std::string & getName() const
Definition:
SCT_ComponentFactory.h:35
length
double length(const pvec &v)
Definition:
FPGATrackSimLLPDoubletHoughTransformTool.cxx:26
SCT_FSIFibreMask::m_innerRadius
double m_innerRadius
Definition:
SCT_FSIFibreMask.h:38
SCT_GeometryManager.h
SCT_GeometryManager
Definition:
SCT_GeometryManager.h:25
Generated on Thu Nov 7 2024 21:25:29 for ATLAS Offline Software by
1.8.18