ATLAS Offline Software
SCT_PixelAttachment.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SCT_GEOMODEL_SCT_PIXELATTACHMENT_H
6 #define SCT_GEOMODEL_SCT_PIXELATTACHMENT_H
7 
9 
10 #include <string>
11 
12 class GeoMaterial;
13 
15 {
16 
17 public:
18  SCT_PixelAttachment(const std::string & name,
19  InDetDD::SCT_DetectorManager* detectorManager,
20  SCT_GeometryManager* geometryManager,
21  SCT_MaterialManager* materials);
22 
23 public:
24  const GeoMaterial * material() const {return m_material;}
25  double innerRadius() const {return m_innerRadius;}
26  double outerRadius() const {return m_outerRadius;}
27  double zMax() const {return m_zMax;}
28  double zMin() const {return m_zMin;}
29 
30  double length() const {return m_length;}
31  double radialThickness() const {return m_outerRadius - m_innerRadius;}
32  double zPosition() const {return 0.5*(m_zMin+m_zMax);}
33 
34 
35 private:
36 
37  void getParameters();
38  virtual GeoVPhysVol * build();
39 
40  const GeoMaterial * m_material = nullptr;
41 
42  double m_innerRadius = 0.0;
43  double m_outerRadius = 0.0;
44  double m_zMin = 0.0;
45  double m_zMax = 0.0;
46 
47  double m_length = 0.0;
48 };
49 
50 #endif // SCT_GEOMODEL_SCT_PIXELATTACHMENT_H
51 
SCT_MaterialManager
Definition: SCT_MaterialManager.h:21
SCT_PixelAttachment::m_material
const GeoMaterial * m_material
Definition: SCT_PixelAttachment.h:40
InDetDD::SCT_DetectorManager
Definition: SCT_DetectorManager.h:49
SCT_PixelAttachment::zMax
double zMax() const
Definition: SCT_PixelAttachment.h:27
SCT_PixelAttachment::m_outerRadius
double m_outerRadius
Definition: SCT_PixelAttachment.h:43
SCT_PixelAttachment::m_zMin
double m_zMin
Definition: SCT_PixelAttachment.h:44
SCT_PixelAttachment::m_innerRadius
double m_innerRadius
Definition: SCT_PixelAttachment.h:42
SCT_PixelAttachment::outerRadius
double outerRadius() const
Definition: SCT_PixelAttachment.h:26
SCT_ComponentFactory.h
SCT_PixelAttachment::m_length
double m_length
Definition: SCT_PixelAttachment.h:47
SCT_PixelAttachment::SCT_PixelAttachment
SCT_PixelAttachment(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
Definition: SCT_PixelAttachment.cxx:20
SCT_PixelAttachment::zPosition
double zPosition() const
Definition: SCT_PixelAttachment.h:32
SCT_PixelAttachment::build
virtual GeoVPhysVol * build()
Definition: SCT_PixelAttachment.cxx:44
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCT_PixelAttachment
Definition: SCT_PixelAttachment.h:15
SCT_PixelAttachment::radialThickness
double radialThickness() const
Definition: SCT_PixelAttachment.h:31
SCT_PixelAttachment::getParameters
void getParameters()
Definition: SCT_PixelAttachment.cxx:32
SCT_PixelAttachment::material
const GeoMaterial * material() const
Definition: SCT_PixelAttachment.h:24
SCT_SharedComponentFactory
Definition: SCT_ComponentFactory.h:56
SCT_PixelAttachment::m_zMax
double m_zMax
Definition: SCT_PixelAttachment.h:45
SCT_PixelAttachment::innerRadius
double innerRadius() const
Definition: SCT_PixelAttachment.h:25
SCT_GeometryManager
Definition: SCT_GeometryManager.h:25
SCT_PixelAttachment::length
double length() const
Definition: SCT_PixelAttachment.h:30
SCT_PixelAttachment::zMin
double zMin() const
Definition: SCT_PixelAttachment.h:28