ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
SCT_GeoModel
src
SCT_PixelAttachment.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_PixelAttachment.h
"
6
7
#include "
SCT_MaterialManager.h
"
8
9
#include "
SCT_GeometryManager.h
"
10
#include "
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
// This is the SCT to Pixel attachment. This was originally defined in the
18
// general indet services but it is in the SCT mother volume.
19
20
SCT_PixelAttachment::SCT_PixelAttachment
(
const
std::string & name,
21
InDetDD::SCT_DetectorManager
* detectorManager,
22
SCT_GeometryManager
* geometryManager,
23
SCT_MaterialManager
* materials)
24
:
SCT_SharedComponentFactory
(name, detectorManager, geometryManager, materials)
25
{
26
getParameters
();
27
m_physVolume
=
SCT_PixelAttachment::build
();
28
}
29
30
31
void
32
SCT_PixelAttachment::getParameters
()
33
{
34
const
SCT_BarrelParameters
* parameters =
m_geometryManager
->barrelParameters();
35
m_material
=
m_materials
->getMaterial(parameters->pixelAttachmentMaterial());
36
m_length
= parameters->pixelAttachmentDeltaZ();
37
m_innerRadius
= parameters->pixelAttachmentInnerRadius();
38
m_outerRadius
= parameters->pixelAttachmentOuterRadius();
39
m_zMin
= parameters->pixelAttachmentZMin();
40
m_zMax
=
m_zMin
+
m_length
;
41
}
42
43
GeoVPhysVol *
44
SCT_PixelAttachment::build
()
45
{
46
// Make the SCT to Pixel attachment. A simple tube.
47
const
GeoTube * shape =
new
GeoTube(
m_innerRadius
,
m_outerRadius
, 0.5 *
m_length
);
48
const
GeoLogVol * log =
new
GeoLogVol(
getName
(), shape,
m_material
);
49
50
GeoPhysVol * attachment =
new
GeoPhysVol(log);
51
52
return
attachment;
53
}
SCT_BarrelParameters.h
SCT_GeometryManager.h
SCT_MaterialManager.h
SCT_PixelAttachment.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_GeometryManager
Definition
SCT_GeometryManager.h:25
SCT_MaterialManager
Definition
SCT_MaterialManager.h:21
SCT_PixelAttachment::build
virtual GeoVPhysVol * build()
Definition
SCT_PixelAttachment.cxx:44
SCT_PixelAttachment::m_length
double m_length
Definition
SCT_PixelAttachment.h:47
SCT_PixelAttachment::m_zMin
double m_zMin
Definition
SCT_PixelAttachment.h:44
SCT_PixelAttachment::SCT_PixelAttachment
SCT_PixelAttachment(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
Definition
SCT_PixelAttachment.cxx:20
SCT_PixelAttachment::getParameters
void getParameters()
Definition
SCT_PixelAttachment.cxx:32
SCT_PixelAttachment::m_material
const GeoMaterial * m_material
Definition
SCT_PixelAttachment.h:40
SCT_PixelAttachment::m_zMax
double m_zMax
Definition
SCT_PixelAttachment.h:45
SCT_PixelAttachment::m_innerRadius
double m_innerRadius
Definition
SCT_PixelAttachment.h:42
SCT_PixelAttachment::m_outerRadius
double m_outerRadius
Definition
SCT_PixelAttachment.h:43
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