ATLAS Offline Software
SCT_CoolingEnd.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 
18 SCT_CoolingEnd::SCT_CoolingEnd(const std::string & name, int iLayer,
19  double innerRadius,
20  double length,
21  InDetDD::SCT_DetectorManager* detectorManager,
22  SCT_GeometryManager* geometryManager,
23  SCT_MaterialManager* materials)
24  : SCT_SharedComponentFactory(name, detectorManager, geometryManager, materials),
25  m_iLayer(iLayer),
26  m_innerRadius(innerRadius),
27  m_length(length)
28 {
29  getParameters();
31 }
32 
33 
34 void
36 {
38 
39  m_materialName = parameters->coolingEndMaterial(m_iLayer);
40  m_radialWidth = parameters->clampDeltaR(m_iLayer);
41 
43 }
44 
45 GeoVPhysVol *
47 {
48  // Make volume representing cooling inlets, outlets and U-bends. A simple tube.
49  const GeoTube * coolShape = new GeoTube(m_innerRadius, m_outerRadius, 0.5 * m_length);
52  const GeoLogVol * coolLog = new GeoLogVol(getName(), coolShape, m_material);
53 
54  GeoPhysVol * cool = new GeoPhysVol(coolLog);
55 
56  return cool;
57 }
SCT_ComponentFactory::m_geometryManager
SCT_GeometryManager * m_geometryManager
Definition: SCT_ComponentFactory.h:42
SCT_MaterialManager
Definition: SCT_MaterialManager.h:21
InDetDD::SCT_DetectorManager
Definition: SCT_DetectorManager.h:49
SCT_MaterialManager.h
SCT_CoolingEnd::m_outerRadius
double m_outerRadius
Definition: SCT_CoolingEnd.h:41
SCT_CoolingEnd::m_innerRadius
double m_innerRadius
Definition: SCT_CoolingEnd.h:40
cool
Definition: CoolTagInfo.h:12
SCT_CoolingEnd::m_iLayer
int m_iLayer
Definition: SCT_CoolingEnd.h:36
SCT_GeometryManager::barrelParameters
const SCT_BarrelParameters * barrelParameters() const
Definition: SCT_GeometryManager.cxx:78
SCT_MaterialManager::getMaterialForVolume
const GeoMaterial * getMaterialForVolume(const std::string &materialName, double volume)
Definition: SCT_MaterialManager.cxx:61
SCT_CoolingEnd::SCT_CoolingEnd
SCT_CoolingEnd(const std::string &name, int iLayer, double innerRadius, double length, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
Definition: SCT_CoolingEnd.cxx:18
SCT_ComponentFactory::m_materials
SCT_MaterialManager * m_materials
Definition: SCT_ComponentFactory.h:43
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCT_SharedComponentFactory::m_physVolume
GeoVPhysVol * m_physVolume
Definition: SCT_ComponentFactory.h:70
SCT_CoolingEnd::getParameters
void getParameters()
Definition: SCT_CoolingEnd.cxx:35
SCT_CoolingEnd::m_material
const GeoMaterial * m_material
Definition: SCT_CoolingEnd.h:38
SCT_MaterialManager::getMaterial
const GeoMaterial * getMaterial(const std::string &materialName)
Definition: SCT_MaterialManager.cxx:40
SCT_BarrelParameters
Definition: SCT_BarrelParameters.h:12
SCT_BarrelParameters.h
SCT_SharedComponentFactory
Definition: SCT_ComponentFactory.h:56
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
SCT_CoolingEnd::build
virtual GeoVPhysVol * build()
Definition: SCT_CoolingEnd.cxx:46
SCT_CoolingEnd::m_length
double m_length
Definition: SCT_CoolingEnd.h:42
SCT_ComponentFactory::getName
const std::string & getName() const
Definition: SCT_ComponentFactory.h:35
length
double length(const pvec &v)
Definition: FPGATrackSimLLPDoubletHoughTransformTool.cxx:26
SCT_CoolingEnd.h
SCT_GeometryManager.h
SCT_GeometryManager
Definition: SCT_GeometryManager.h:25
SCT_CoolingEnd::m_radialWidth
double m_radialWidth
Definition: SCT_CoolingEnd.h:43
SCT_CoolingEnd::m_materialName
std::string m_materialName
Definition: SCT_CoolingEnd.h:39