ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_CloseOut.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_CloseOut.h"
6
9
11
12#include "GeoModelKernel/GeoTube.h"
13#include "GeoModelKernel/GeoLogVol.h"
14#include "GeoModelKernel/GeoPhysVol.h"
15#include "GeoModelKernel/Units.h"
16
17
18SCT_CloseOut::SCT_CloseOut(const std::string & name, int iLayer,
19 InDetDD::SCT_DetectorManager* detectorManager,
20 SCT_GeometryManager* geometryManager,
21 SCT_MaterialManager* materials)
22 : SCT_SharedComponentFactory(name, detectorManager, geometryManager, materials),
23 m_iLayer(iLayer)
24{
27}
28
29
30void
32{
33 const SCT_BarrelParameters * parameters = m_geometryManager->barrelParameters();
34
35 m_material = m_materials->getMaterial(parameters->closeOutMaterial(m_iLayer));
36 m_length = parameters->closeOutDeltaZ(m_iLayer);
37
38 // Same inner and outer radius of support cylinder.
39 m_outerRadius = parameters->supportCylOuterRadius(m_iLayer);
40 m_innerRadius = parameters->supportCylInnerRadius(m_iLayer);
41
42}
43
44GeoVPhysVol *
46{
47 // Make the closeOut. A simple tube.
48 const GeoTube * closeOutShape = new GeoTube(m_innerRadius, m_outerRadius, 0.5 * m_length);
49 const GeoLogVol * closeOutLog = new GeoLogVol(getName(), closeOutShape, m_material);
50
51 GeoPhysVol * closeOut = new GeoPhysVol(closeOutLog);
52
53 return closeOut;
54}
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated SCT in...
const GeoMaterial * m_material
SCT_CloseOut(const std::string &name, int iLayer, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
void getParameters()
double m_length
double m_outerRadius
double m_innerRadius
virtual GeoVPhysVol * build()
const std::string & getName() const
SCT_GeometryManager * m_geometryManager
SCT_MaterialManager * m_materials
SCT_SharedComponentFactory(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials=nullptr)