ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
SCT_GeoModel
src
SCT_Dogleg.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
//
6
// 14th Aug 2005 S.Mima modified.
7
//
8
#include "
SCT_Dogleg.h
"
9
10
#include "
SCT_GeometryManager.h
"
11
#include "
SCT_MaterialManager.h
"
12
13
#include "
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_BarrelParameters.h
SCT_Dogleg.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_BarrelParameters
Definition
SCT_BarrelParameters.h:12
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_Dogleg::build
virtual GeoVPhysVol * build()
Definition
SCT_Dogleg.cxx:44
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_Dogleg::m_width
double m_width
Definition
SCT_Dogleg.h:41
SCT_Dogleg::getParameters
void getParameters()
Definition
SCT_Dogleg.cxx:33
SCT_Dogleg::m_thickness
double m_thickness
Definition
SCT_Dogleg.h:40
SCT_Dogleg::m_material
const GeoMaterial * m_material
Definition
SCT_Dogleg.h:39
SCT_Dogleg::m_length
double m_length
Definition
SCT_Dogleg.h:42
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