ATLAS Offline Software
SCT_PixelAttachment.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 
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 
21  InDetDD::SCT_DetectorManager* detectorManager,
22  SCT_GeometryManager* geometryManager,
23  SCT_MaterialManager* materials)
24  : SCT_SharedComponentFactory(name, detectorManager, geometryManager, materials)
25 {
26  getParameters();
28 }
29 
30 
31 void
33 {
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 *
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_ComponentFactory::m_geometryManager
SCT_GeometryManager * m_geometryManager
Definition: SCT_ComponentFactory.h:42
SCT_MaterialManager
Definition: SCT_MaterialManager.h:21
SCT_PixelAttachment::m_material
const GeoMaterial * m_material
Definition: SCT_PixelAttachment.h:40
InDetDD::SCT_DetectorManager
Definition: SCT_DetectorManager.h:49
SCT_MaterialManager.h
SCT_PixelAttachment::m_outerRadius
double m_outerRadius
Definition: SCT_PixelAttachment.h:43
SCT_PixelAttachment::m_zMin
double m_zMin
Definition: SCT_PixelAttachment.h:44
SCT_PixelAttachment::m_innerRadius
double m_innerRadius
Definition: SCT_PixelAttachment.h:42
SCT_PixelAttachment::m_length
double m_length
Definition: SCT_PixelAttachment.h:47
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::build
virtual GeoVPhysVol * build()
Definition: SCT_PixelAttachment.cxx:44
SCT_GeometryManager::barrelParameters
const SCT_BarrelParameters * barrelParameters() const
Definition: SCT_GeometryManager.cxx:78
SCT_ComponentFactory::m_materials
SCT_MaterialManager * m_materials
Definition: SCT_ComponentFactory.h:43
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
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:51
SCT_BarrelParameters
Definition: SCT_BarrelParameters.h:12
SCT_PixelAttachment::getParameters
void getParameters()
Definition: SCT_PixelAttachment.cxx:32
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
SCT_BarrelParameters.h
SCT_SharedComponentFactory
Definition: SCT_ComponentFactory.h:56
SCT_PixelAttachment.h
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
SCT_PixelAttachment::m_zMax
double m_zMax
Definition: SCT_PixelAttachment.h:45
SCT_ComponentFactory::getName
const std::string & getName() const
Definition: SCT_ComponentFactory.h:35
SCT_GeometryManager.h
SCT_GeometryManager
Definition: SCT_GeometryManager.h:25