ATLAS Offline Software
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
SCT_GeoModel
src
SCT_FwdPowerTape.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_FwdPowerTape.h
"
6
7
#include "
SCT_MaterialManager.h
"
8
9
#include "
SCT_GeometryManager.h
"
10
#include "
SCT_ForwardParameters.h
"
11
12
#include "GeoModelKernel/GeoTube.h"
13
#include "GeoModelKernel/GeoLogVol.h"
14
#include "GeoModelKernel/GeoPhysVol.h"
15
#include "GaudiKernel/PhysicalConstants.h"
16
17
#include <cmath>
18
19
SCT_FwdPowerTape::SCT_FwdPowerTape
(
const
std::string & name,
20
int
numModules,
21
double
innerRadius
,
22
double
startPos,
23
double
endPos,
24
InDetDD::SCT_DetectorManager
* detectorManager,
25
SCT_GeometryManager
* geometryManager,
26
SCT_MaterialManager
* materials)
27
:
SCT_SharedComponentFactory
(name, detectorManager, geometryManager, materials),
28
m_numModules
(numModules),
m_innerRadius
(
innerRadius
)
29
{
30
m_length
= std::abs(endPos - startPos);
31
m_zPosition
= 0.5 * (startPos + endPos);
32
33
getParameters
();
34
m_physVolume
=
SCT_FwdPowerTape::build
();
35
}
36
37
38
void
39
SCT_FwdPowerTape::getParameters
()
40
{
41
const
SCT_ForwardParameters
* parameters =
m_geometryManager
->forwardParameters();
42
m_material
=
m_materials
->getMaterial(parameters->fwdPowerTapeMaterial());
43
m_crossSectArea
= parameters->fwdPowerTapeCrossSectArea();
44
}
45
46
GeoVPhysVol *
47
SCT_FwdPowerTape::build
()
48
{
49
// Calculate the dimensions.
50
// The area = 2*Gaudi::Units::pi*r_ave*delta_r approx= 2 * Gaudi::Units::pi * rMin * delta_r
51
// where m_thickness = delta_r
52
53
double
area
=
m_crossSectArea
*
m_numModules
;
54
m_thickness
=
area
/(2. * Gaudi::Units::pi *
m_innerRadius
);
55
m_outerRadius
=
m_innerRadius
+
m_thickness
;
56
57
// Make the support disk. A simple tube.
58
const
GeoTube * powerTapeShape =
new
GeoTube(
m_innerRadius
,
m_outerRadius
, 0.5 *
m_length
);
59
const
GeoLogVol * powerTapeLog =
new
GeoLogVol(
getName
(), powerTapeShape,
m_material
);
60
61
GeoPhysVol * powerTape =
new
GeoPhysVol(powerTapeLog);
62
63
return
powerTape;
64
}
area
double area(double R)
Definition
ConvertStaveServices.cxx:42
SCT_ForwardParameters.h
SCT_FwdPowerTape.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:49
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:42
SCT_ComponentFactory::m_materials
SCT_MaterialManager * m_materials
Definition
SCT_ComponentFactory.h:43
SCT_ForwardParameters
Definition
SCT_ForwardParameters.h:16
SCT_FwdPowerTape::m_numModules
int m_numModules
Definition
SCT_FwdPowerTape.h:40
SCT_FwdPowerTape::build
virtual GeoVPhysVol * build()
Definition
SCT_FwdPowerTape.cxx:47
SCT_FwdPowerTape::m_innerRadius
double m_innerRadius
Definition
SCT_FwdPowerTape.h:42
SCT_FwdPowerTape::SCT_FwdPowerTape
SCT_FwdPowerTape(const std::string &name, int numModules, double innerRadius, double startPos, double endPos, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
Definition
SCT_FwdPowerTape.cxx:19
SCT_FwdPowerTape::m_crossSectArea
double m_crossSectArea
Definition
SCT_FwdPowerTape.h:41
SCT_FwdPowerTape::m_zPosition
double m_zPosition
Definition
SCT_FwdPowerTape.h:46
SCT_FwdPowerTape::getParameters
void getParameters()
Definition
SCT_FwdPowerTape.cxx:39
SCT_FwdPowerTape::m_thickness
double m_thickness
Definition
SCT_FwdPowerTape.h:44
SCT_FwdPowerTape::m_material
const GeoMaterial * m_material
Definition
SCT_FwdPowerTape.h:39
SCT_FwdPowerTape::m_outerRadius
double m_outerRadius
Definition
SCT_FwdPowerTape.h:43
SCT_FwdPowerTape::m_length
double m_length
Definition
SCT_FwdPowerTape.h:45
SCT_FwdPowerTape::innerRadius
double innerRadius() const
Definition
SCT_FwdPowerTape.h:29
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:70
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:59
Generated on
for ATLAS Offline Software by
1.14.0