ATLAS Offline Software
InnerDetector
InDetDetDescr
SCT_GeoModel
src
SCT_Dogleg.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
//
6
// 14th Aug 2005 S.Mima modified.
7
//
8
#include "
SCT_GeoModel/SCT_Dogleg.h
"
9
10
#include "
SCT_GeoModel/SCT_GeometryManager.h
"
11
#include "
SCT_GeoModel/SCT_MaterialManager.h
"
12
13
#include "
SCT_GeoModel/SCT_BarrelParameters.h
"
14
15
#include "GeoModelKernel/GeoBox.h"
16
#include "GeoModelKernel/GeoLogVol.h"
17
#include "GeoModelKernel/GeoPhysVol.h"
18
#include "GeoModelKernel/GeoMaterial.h"
19
#include "GeoModelKernel/Units.h"
20
21
SCT_Dogleg::SCT_Dogleg
(
const
std::string &
name
,
22
InDetDD::SCT_DetectorManager
* detectorManager,
23
SCT_GeometryManager
* geometryManager,
24
SCT_MaterialManager
* materials)
25
:
SCT_SharedComponentFactory
(
name
, detectorManager, geometryManager, materials)
26
{
27
getParameters
();
28
m_physVolume
=
SCT_Dogleg::build
();
29
}
30
31
32
void
33
SCT_Dogleg::getParameters
()
34
{
35
const
SCT_BarrelParameters
*
parameters
=
m_geometryManager
->
barrelParameters
();
36
37
m_material
=
m_materials
->
getMaterial
(
parameters
->doglegMaterial());
38
m_thickness
=
parameters
->doglegThickness();
39
m_length
=
parameters
->doglegLength();
40
m_width
=
parameters
->doglegWidth();
41
}
42
43
GeoVPhysVol *
44
SCT_Dogleg::build
()
45
{
46
47
// Build the Dogleg. Just a simple box.
48
// Width is in z-direction.
49
// Length is in phi-direction.
50
// NB. This is opposite to other elements I use.
51
52
const
GeoBox * doglegShape =
new
GeoBox(0.5*
m_thickness
, 0.5*
m_length
, 0.5*
m_width
);
53
const
GeoLogVol *doglegLog =
54
new
GeoLogVol(
getName
(), doglegShape,
m_material
);
55
GeoPhysVol * dogleg =
new
GeoPhysVol(doglegLog);
56
57
return
dogleg;
58
}
SCT_ComponentFactory::m_geometryManager
SCT_GeometryManager * m_geometryManager
Definition:
SCT_ComponentFactory.h:42
SCT_MaterialManager
Definition:
SCT_MaterialManager.h:21
InDetDD::SCT_DetectorManager
Definition:
SCT_DetectorManager.h:49
SCT_Dogleg::getParameters
void getParameters()
Definition:
SCT_Dogleg.cxx:33
SCT_MaterialManager.h
SCT_Dogleg::m_material
const GeoMaterial * m_material
Definition:
SCT_Dogleg.h:39
SCT_Dogleg::m_thickness
double m_thickness
Definition:
SCT_Dogleg.h:40
SCT_Dogleg::m_length
double m_length
Definition:
SCT_Dogleg.h:42
SCT_GeometryManager::barrelParameters
const SCT_BarrelParameters * barrelParameters() const
Definition:
SCT_GeometryManager.cxx:78
SCT_Dogleg.h
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_BarrelParameters
Definition:
SCT_BarrelParameters.h:12
SCT_Dogleg::SCT_Dogleg
SCT_Dogleg(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
Definition:
SCT_Dogleg.cxx:21
SCT_BarrelParameters.h
SCT_SharedComponentFactory
Definition:
SCT_ComponentFactory.h:56
physics_parameters.parameters
parameters
Definition:
physics_parameters.py:144
SCT_Dogleg::m_width
double m_width
Definition:
SCT_Dogleg.h:41
SCT_Dogleg::build
virtual GeoVPhysVol * build()
Definition:
SCT_Dogleg.cxx:44
SCT_ComponentFactory::getName
const std::string & getName() const
Definition:
SCT_ComponentFactory.h:35
SCT_GeometryManager.h
SCT_GeometryManager
Definition:
SCT_GeometryManager.h:25
Generated on Mon Dec 23 2024 21:17:52 for ATLAS Offline Software by
1.8.18