ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
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
19SCT_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),
29{
30 m_length = std::abs(endPos - startPos);
31 m_zPosition = 0.5 * (startPos + endPos);
32
35}
36
37
38void
40{
41 const SCT_ForwardParameters * parameters = m_geometryManager->forwardParameters();
42 m_material = m_materials->getMaterial(parameters->fwdPowerTapeMaterial());
43 m_crossSectArea = parameters->fwdPowerTapeCrossSectArea();
44}
45
46GeoVPhysVol *
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
54 m_thickness = area/(2. * Gaudi::Units::pi * m_innerRadius);
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}
double area(double R)
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_FwdPowerTape(const std::string &name, int numModules, double innerRadius, double startPos, double endPos, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
const GeoMaterial * m_material
double innerRadius() const
SCT_SharedComponentFactory(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials=nullptr)