ATLAS Offline Software
Loading...
Searching...
No Matches
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
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{
28}
29
30
31void
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();
41}
42
43GeoVPhysVol *
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}
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated SCT in...
const std::string & getName() const
SCT_GeometryManager * m_geometryManager
SCT_MaterialManager * m_materials
virtual GeoVPhysVol * build()
SCT_PixelAttachment(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
const GeoMaterial * m_material
SCT_SharedComponentFactory(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials=nullptr)