ATLAS Offline Software
SCT_BaseBoard.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 
12 
13 #include "GeoModelKernel/GeoBox.h"
14 #include "GeoModelKernel/GeoLogVol.h"
15 #include "GeoModelKernel/GeoPhysVol.h"
16 #include "GeoModelKernel/GeoMaterial.h"
17 
18 SCT_BaseBoard::SCT_BaseBoard(const std::string & name,
19  InDetDD::SCT_DetectorManager* detectorManager,
20  SCT_GeometryManager* geometryManager,
21  SCT_MaterialManager* materials)
22  : SCT_SharedComponentFactory(name, detectorManager, geometryManager, materials)
23 {
24  getParameters();
26 }
27 
28 void
30 {
31  const SCT_GeneralParameters * generalParameters = m_geometryManager->generalParameters();
33 
34  m_material = m_materials->getMaterial(parameters->baseBoardMaterial());
35  m_safety = generalParameters->safety();
36  m_thickness = parameters->baseBoardThickness();
37  m_width = parameters->baseBoardWidth();
38  m_length = parameters->baseBoardLength();
39 
40 }
41 
42 GeoVPhysVol *
44 {
45  // Make BaseBoard. Just a simple box.
46  const GeoBox * simpleBaseBoardShape = new GeoBox(0.5*m_thickness,
47  0.5*m_width,
48  0.5*m_length);
49 
50  const GeoLogVol * simpleBaseBoardLog =
51  new GeoLogVol(getName(), simpleBaseBoardShape, m_material);
52 
53  GeoPhysVol * simpleBaseBoard = new GeoPhysVol(simpleBaseBoardLog);
54 
55  return simpleBaseBoard;
56 }
SCT_BaseBoard.h
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_GeneralParameters::safety
double safety() const
Definition: SCT_GeneralParameters.cxx:48
SCT_MaterialManager.h
SCT_BaseBoard::m_thickness
double m_thickness
Definition: SCT_BaseBoard.h:38
SCT_BarrelModuleParameters.h
SCT_BaseBoard::m_material
const GeoMaterial * m_material
Definition: SCT_BaseBoard.h:37
SCT_GeometryManager::generalParameters
const SCT_GeneralParameters * generalParameters() const
Definition: SCT_GeometryManager.cxx:105
SCT_GeneralParameters.h
SCT_BaseBoard::getParameters
void getParameters()
Definition: SCT_BaseBoard.cxx:29
SCT_BaseBoard::build
virtual GeoVPhysVol * build()
Definition: SCT_BaseBoard.cxx:43
SCT_GeneralParameters
Definition: SCT_GeneralParameters.h:16
SCT_GeometryManager::barrelModuleParameters
const SCT_BarrelModuleParameters * barrelModuleParameters() const
Definition: SCT_GeometryManager.cxx:84
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_BarrelModuleParameters
Definition: SCT_BarrelModuleParameters.h:12
SCT_MaterialManager::getMaterial
const GeoMaterial * getMaterial(const std::string &materialName)
Definition: SCT_MaterialManager.cxx:40
SCT_SharedComponentFactory
Definition: SCT_ComponentFactory.h:56
SCT_BaseBoard::m_width
double m_width
Definition: SCT_BaseBoard.h:39
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
SCT_BaseBoard::SCT_BaseBoard
SCT_BaseBoard(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
Definition: SCT_BaseBoard.cxx:18
SCT_BaseBoard::m_safety
double m_safety
Definition: SCT_BaseBoard.h:45
SCT_ComponentFactory::getName
const std::string & getName() const
Definition: SCT_ComponentFactory.h:35
SCT_GeometryManager.h
SCT_BaseBoard::m_length
double m_length
Definition: SCT_BaseBoard.h:40
SCT_GeometryManager
Definition: SCT_GeometryManager.h:25