ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_FwdCoolingPipe.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 "GaudiKernel/PhysicalConstants.h"
16
17#include <cmath>
18
19inline double sqr(double x) {return x * x;}
20
22 int numPipes,
23 double innerRadius,
24 double startPos,
25 double endPos,
26 InDetDD::SCT_DetectorManager* detectorManager,
27 SCT_GeometryManager* geometryManager,
28 SCT_MaterialManager* materials)
29 : SCT_SharedComponentFactory(name, detectorManager, geometryManager, materials),
31{
32 m_length = std::abs(endPos - startPos);
33 m_zPosition = 0.5 * (startPos + endPos);
34
37}
38
39
40void
42{
43 const SCT_ForwardParameters * parameters = m_geometryManager->forwardParameters();
44 m_material = m_materials->getMaterial(parameters->fwdCoolingPipeMaterial());
45 m_pipeRadius = parameters->fwdCoolingPipeRadius();
46}
47
48GeoVPhysVol *
50{
51 // Calculate the dimensions.
52 // area = Gaudi::Units::pi*(pipeRadius)^2 * numPipes
53 // also area = 2*Gaudi::Units::pi*r_ave*delta_r approx= 2 * Gaudi::Units::pi * rMin * delta_r
54 // solve for delta_r
55 // m_thickness = delta_r
56
57 double area = Gaudi::Units::pi * sqr(m_pipeRadius) * m_numPipes;
58 m_thickness = area/(2. * Gaudi::Units::pi * m_innerRadius);
60
61
62 // Make the support disk. A simple tube.
63 const GeoTube * pipeShape = new GeoTube(m_innerRadius, m_outerRadius, 0.5 * m_length);
64 const GeoLogVol * pipeLog = new GeoLogVol(getName(), pipeShape, m_material);
65
66 GeoPhysVol * pipe = new GeoPhysVol(pipeLog);
67
68 return pipe;
69}
double area(double R)
#define sqr(t)
#define x
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
double innerRadius() const
const GeoMaterial * m_material
virtual GeoVPhysVol * build()
SCT_FwdCoolingPipe(const std::string &name, int numPipes, double innerRadius, double startPos, double endPos, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
SCT_SharedComponentFactory(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials=nullptr)