ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SCT_InnerSide Class Reference

#include <SCT_InnerSide.h>

Inheritance diagram for SCT_InnerSide:
Collaboration diagram for SCT_InnerSide:

Public Member Functions

 SCT_InnerSide (const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials, GeoModelIO::ReadGeoModel *sqliteReader, std::shared_ptr< std::map< std::string, GeoFullPhysVol * >> mapFPV, std::shared_ptr< std::map< std::string, GeoAlignableTransform * >> mapAX)
 
 SCT_InnerSide (const SCT_InnerSide &)=delete
 
SCT_InnerSideoperator= (const SCT_InnerSide &)=delete
 
 ~SCT_InnerSide ()
 
virtual GeoVPhysVol * build (SCT_Identifier id)
 
double thickness () const
 
double width () const
 
double length () const
 
const GeoTrf::Vector3D * env1RefPointVector () const
 
const GeoTrf::Vector3D * env2RefPointVector () const
 
const SCT_Hybridhybrid () const
 
const SCT_Sensorsensor () const
 
double hybridOffsetX () const
 
double hybridOffsetZ () const
 
const std::string & getName () const
 
std::string intToString (int i) const
 

Protected Member Functions

double epsilon () const
 

Protected Attributes

const GeoLogVol * m_logVolume
 
GeoModelIO::ReadGeoModel * m_sqliteReader
 
std::shared_ptr< std::map< std::string, GeoFullPhysVol * > > m_mapFPV
 
std::shared_ptr< std::map< std::string, GeoAlignableTransform * > > m_mapAX
 
InDetDD::SCT_DetectorManagerm_detectorManager
 
SCT_GeometryManagerm_geometryManager
 
SCT_MaterialManagerm_materials
 

Private Member Functions

void getParameters ()
 
virtual const GeoLogVol * preBuild ()
 

Private Attributes

double m_thickness = 0.0
 
double m_width = 0.0
 
double m_length = 0.0
 
double m_hybridOffsetX = 0.0
 
double m_hybridOffsetZ = 0.0
 
double m_safety = 0.0
 
std::unique_ptr< SCT_Hybridm_hybrid
 
std::unique_ptr< SCT_Sensorm_sensor
 
GeoIntrusivePtr< GeoTransform > m_hybridPos {nullptr}
 
GeoIntrusivePtr< GeoTransform > m_sensorPos {nullptr}
 
std::unique_ptr< GeoTrf::Vector3D > m_env1RefPointVector
 
std::unique_ptr< GeoTrf::Vector3D > m_env2RefPointVector
 
std::string m_name
 

Static Private Attributes

static const double s_epsilon = 1.0e-6 * Gaudi::Units::mm
 

Detailed Description

Definition at line 30 of file SCT_InnerSide.h.

Constructor & Destructor Documentation

◆ SCT_InnerSide() [1/2]

SCT_InnerSide::SCT_InnerSide ( const std::string &  name,
InDetDD::SCT_DetectorManager detectorManager,
SCT_GeometryManager geometryManager,
SCT_MaterialManager materials,
GeoModelIO::ReadGeoModel *  sqliteReader,
std::shared_ptr< std::map< std::string, GeoFullPhysVol * >>  mapFPV,
std::shared_ptr< std::map< std::string, GeoAlignableTransform * >>  mapAX 
)

Definition at line 42 of file SCT_InnerSide.cxx.

49  : SCT_UniqueComponentFactory(name, detectorManager, geometryManager, materials, sqliteReader, std::move(mapFPV), std::move(mapAX))
50 {
51  getParameters();
53 }

◆ SCT_InnerSide() [2/2]

SCT_InnerSide::SCT_InnerSide ( const SCT_InnerSide )
delete

◆ ~SCT_InnerSide()

SCT_InnerSide::~SCT_InnerSide ( )
default

Member Function Documentation

◆ build()

GeoVPhysVol * SCT_InnerSide::build ( SCT_Identifier  id)
virtual

Implements SCT_UniqueComponentFactory.

Definition at line 165 of file SCT_InnerSide.cxx.

166 {
167 
168  if(m_sqliteReader){
169 
170  m_sensor->build(id);
171  return nullptr;
172 
173  }
174  GeoFullPhysVol * innerSide = new GeoFullPhysVol(m_logVolume);
175 
176  //
177  // Build the innerSide
178  //
179  // Add Sensor
180  innerSide->add(new GeoIdentifierTag(1000));
181  innerSide->add(m_sensorPos);
182  innerSide->add(m_sensor->build(id));
183 
184  // Add Hybrid
185  innerSide->add(m_hybridPos);
186  innerSide->add(m_hybrid->getVolume());
187 
188  return innerSide;
189 }

◆ env1RefPointVector()

const GeoTrf::Vector3D* SCT_InnerSide::env1RefPointVector ( ) const
inline

Definition at line 55 of file SCT_InnerSide.h.

55 {return m_env1RefPointVector.get();}

◆ env2RefPointVector()

const GeoTrf::Vector3D* SCT_InnerSide::env2RefPointVector ( ) const
inline

Definition at line 56 of file SCT_InnerSide.h.

56 {return m_env2RefPointVector.get();}

◆ epsilon()

double SCT_ComponentFactory::epsilon ( ) const
protectedinherited

Definition at line 38 of file SCT_ComponentFactory.cxx.

39 {
40  return s_epsilon;
41 }

◆ getName()

const std::string& SCT_ComponentFactory::getName ( ) const
inlineinherited

Definition at line 35 of file SCT_ComponentFactory.h.

35 {return m_name;}

◆ getParameters()

void SCT_InnerSide::getParameters ( )
private

Definition at line 59 of file SCT_InnerSide.cxx.

60 {
62  const SCT_GeneralParameters * generalParameters = m_geometryManager->generalParameters();
63 
64  m_safety = generalParameters->safety();
65  m_hybridOffsetZ = parameters->hybridOffsetZ();
66  m_hybridOffsetX = parameters->hybridOffsetX();
67 }

◆ hybrid()

const SCT_Hybrid* SCT_InnerSide::hybrid ( ) const
inline

Definition at line 60 of file SCT_InnerSide.h.

60 {return m_hybrid.get();}

◆ hybridOffsetX()

double SCT_InnerSide::hybridOffsetX ( ) const
inline

Definition at line 63 of file SCT_InnerSide.h.

63 {return m_hybridOffsetX;}

◆ hybridOffsetZ()

double SCT_InnerSide::hybridOffsetZ ( ) const
inline

Definition at line 65 of file SCT_InnerSide.h.

65 {return m_hybridOffsetZ;}

◆ intToString()

std::string SCT_ComponentFactory::intToString ( int  i) const
inherited

Definition at line 30 of file SCT_ComponentFactory.cxx.

31 {
32  std::ostringstream str;
33  str << i;
34  return str.str();
35 }

◆ length()

double SCT_InnerSide::length ( ) const
inline

Definition at line 53 of file SCT_InnerSide.h.

53 {return m_length;}

◆ operator=()

SCT_InnerSide& SCT_InnerSide::operator= ( const SCT_InnerSide )
delete

◆ preBuild()

const GeoLogVol * SCT_InnerSide::preBuild ( )
privatevirtual

Implements SCT_UniqueComponentFactory.

Definition at line 71 of file SCT_InnerSide.cxx.

72 {
73  // Create child components
74  m_sensor = std::make_unique<SCT_Sensor>("BRLSensor", m_detectorManager, m_geometryManager, m_materials, m_sqliteReader, m_mapFPV, m_mapAX);
75 
76  if(m_sqliteReader) return nullptr;
77 
78  m_hybrid = std::make_unique<SCT_Hybrid>("Hybrid", m_detectorManager, m_geometryManager, m_materials);
79 
80  //
81  // Define constants for convenience.
82  // t_XXX: thickness of XXX.
83  // w_XXX: width of XXX.
84  // l_XXX: length of XXX.
85  //
86  const double t_hybrid = m_hybrid->thickness();
87  const double w_hybrid = m_hybrid->width();
88  const double l_hybrid = m_hybrid->length();
89 
90  const double t_sensor = m_sensor->thickness();
91  const double w_sensor = m_sensor->width();
92  const double l_sensor = m_sensor->length();
93 
94  //
95  // Calculate a few things.
96  //
97  const double sensorPosX = 0.0;
98  const double sensorPosY = 0.0;
99  const double sensorPosZ = 0.0;
100 
101  const double hybridPosX = m_hybridOffsetX;
102  const double hybridPosY = 0.0;
103  const double hybridPosZ = m_hybridOffsetZ;
104 
105  //
106  // ise : InnerSideEnvelope
107  // Reference: sct_module_geometry.ps
108  //
109  const double w_ise1 = w_sensor + m_safety;
110  const double t_ise1 = t_sensor + m_safety;
111  const double l_ise1 = l_sensor + m_safety;
112 
113  const double t_ise2 = t_hybrid + m_safety;
114  const double w_ise2 = w_hybrid + m_safety;
115  const double l_ise2 = l_hybrid + m_safety;
116 
117  const double ise2PosX = hybridPosX;
118  const double ise2PosY = hybridPosY;
119  const double ise2PosZ = hybridPosZ;
120 
121  m_env1RefPointVector = std::make_unique<GeoTrf::Vector3D>(0.0, 0.0, 0.0);
122  m_env2RefPointVector = std::make_unique<GeoTrf::Vector3D>(-ise2PosX, -ise2PosY, -ise2PosZ);
123 
124  m_hybridPos = new GeoTransform(GeoTrf::Translate3D(hybridPosX, hybridPosY, hybridPosZ));
125 
126  // The depth axis goes from the backside to the implant side
127  // and so point away from the module center.
128  // The two sensor+hybrid combinations are built in a similar way.
129  //
130  // ^
131  // --- hybrid |
132  // ------- sensor | x-axis
133  //
134  // Shown is the outer side. The inner side is the same but with a rotation of 180 deg around the z-axis.
135  //
136  //Gaudi::Units::HepRotation rotSensor;
137  //rotSensor.rotateZ(180*Gaudi::Units::deg);
138  m_sensorPos = new GeoTransform(GeoTrf::Translate3D(sensorPosX, sensorPosY, sensorPosZ));
139 
140  //
141  // Make an envelope for the whole module.
142  //
143  const GeoBox * ise1Shape = new GeoBox(0.5 * t_ise1,
144  0.5 * w_ise1,
145  0.5 * l_ise1);
146  const GeoBox * ise2Shape = new GeoBox(0.5 * t_ise2,
147  0.5 * w_ise2,
148  0.5 * l_ise2);
149 
150  const GeoShape & InnerSideEnvelopeShape = (*ise1Shape).
151  add(*ise2Shape << GeoTrf::Translate3D(ise2PosX, ise2PosY, ise2PosZ));
152 
153  const GeoLogVol * InnerSideEnvelopeLog = new GeoLogVol("InnerSideEnvelope",
154  &InnerSideEnvelopeShape,
156  m_thickness = 0.5*t_ise1 + hybridPosX + 0.5*t_ise2;
157  m_width = w_ise1;
158  m_length = l_ise1;
159 
160  return InnerSideEnvelopeLog;
161 }

◆ sensor()

const SCT_Sensor* SCT_InnerSide::sensor ( ) const
inline

Definition at line 61 of file SCT_InnerSide.h.

61 {return m_sensor.get();}

◆ thickness()

double SCT_InnerSide::thickness ( ) const
inline

Definition at line 51 of file SCT_InnerSide.h.

51 {return m_thickness;}

◆ width()

double SCT_InnerSide::width ( ) const
inline

Definition at line 52 of file SCT_InnerSide.h.

52 {return m_width;}

Member Data Documentation

◆ m_detectorManager

InDetDD::SCT_DetectorManager* SCT_ComponentFactory::m_detectorManager
protectedinherited

Definition at line 41 of file SCT_ComponentFactory.h.

◆ m_env1RefPointVector

std::unique_ptr<GeoTrf::Vector3D> SCT_InnerSide::m_env1RefPointVector
private

Definition at line 86 of file SCT_InnerSide.h.

◆ m_env2RefPointVector

std::unique_ptr<GeoTrf::Vector3D> SCT_InnerSide::m_env2RefPointVector
private

Definition at line 87 of file SCT_InnerSide.h.

◆ m_geometryManager

SCT_GeometryManager* SCT_ComponentFactory::m_geometryManager
protectedinherited

Definition at line 42 of file SCT_ComponentFactory.h.

◆ m_hybrid

std::unique_ptr<SCT_Hybrid> SCT_InnerSide::m_hybrid
private

Definition at line 80 of file SCT_InnerSide.h.

◆ m_hybridOffsetX

double SCT_InnerSide::m_hybridOffsetX = 0.0
private

Definition at line 76 of file SCT_InnerSide.h.

◆ m_hybridOffsetZ

double SCT_InnerSide::m_hybridOffsetZ = 0.0
private

Definition at line 77 of file SCT_InnerSide.h.

◆ m_hybridPos

GeoIntrusivePtr<GeoTransform> SCT_InnerSide::m_hybridPos {nullptr}
private

Definition at line 83 of file SCT_InnerSide.h.

◆ m_length

double SCT_InnerSide::m_length = 0.0
private

Definition at line 74 of file SCT_InnerSide.h.

◆ m_logVolume

const GeoLogVol* SCT_UniqueComponentFactory::m_logVolume
protectedinherited

Definition at line 90 of file SCT_ComponentFactory.h.

◆ m_mapAX

std::shared_ptr<std::map<std::string, GeoAlignableTransform*> > SCT_UniqueComponentFactory::m_mapAX
protectedinherited

Definition at line 96 of file SCT_ComponentFactory.h.

◆ m_mapFPV

std::shared_ptr<std::map<std::string, GeoFullPhysVol*> > SCT_UniqueComponentFactory::m_mapFPV
protectedinherited

Definition at line 95 of file SCT_ComponentFactory.h.

◆ m_materials

SCT_MaterialManager* SCT_ComponentFactory::m_materials
protectedinherited

Definition at line 43 of file SCT_ComponentFactory.h.

◆ m_name

std::string SCT_ComponentFactory::m_name
privateinherited

Definition at line 49 of file SCT_ComponentFactory.h.

◆ m_safety

double SCT_InnerSide::m_safety = 0.0
private

Definition at line 78 of file SCT_InnerSide.h.

◆ m_sensor

std::unique_ptr<SCT_Sensor> SCT_InnerSide::m_sensor
private

Definition at line 81 of file SCT_InnerSide.h.

◆ m_sensorPos

GeoIntrusivePtr<GeoTransform> SCT_InnerSide::m_sensorPos {nullptr}
private

Definition at line 84 of file SCT_InnerSide.h.

◆ m_sqliteReader

GeoModelIO::ReadGeoModel* SCT_UniqueComponentFactory::m_sqliteReader
protectedinherited

Definition at line 91 of file SCT_ComponentFactory.h.

◆ m_thickness

double SCT_InnerSide::m_thickness = 0.0
private

Definition at line 72 of file SCT_InnerSide.h.

◆ m_width

double SCT_InnerSide::m_width = 0.0
private

Definition at line 73 of file SCT_InnerSide.h.

◆ s_epsilon

const double SCT_ComponentFactory::s_epsilon = 1.0e-6 * Gaudi::Units::mm
staticprivateinherited

Definition at line 50 of file SCT_ComponentFactory.h.


The documentation for this class was generated from the following files:
SCT_ComponentFactory::m_geometryManager
SCT_GeometryManager * m_geometryManager
Definition: SCT_ComponentFactory.h:42
SCT_ComponentFactory::m_name
std::string m_name
Definition: SCT_ComponentFactory.h:49
SCT_UniqueComponentFactory::m_mapFPV
std::shared_ptr< std::map< std::string, GeoFullPhysVol * > > m_mapFPV
Definition: SCT_ComponentFactory.h:95
SCT_GeneralParameters::safety
double safety() const
Definition: SCT_GeneralParameters.cxx:48
SCT_UniqueComponentFactory::m_mapAX
std::shared_ptr< std::map< std::string, GeoAlignableTransform * > > m_mapAX
Definition: SCT_ComponentFactory.h:96
SCT_UniqueComponentFactory::SCT_UniqueComponentFactory
SCT_UniqueComponentFactory(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials=nullptr, GeoModelIO::ReadGeoModel *sqliteReader=nullptr, std::shared_ptr< std::map< std::string, GeoFullPhysVol * >> mapFPV=nullptr, std::shared_ptr< std::map< std::string, GeoAlignableTransform * >> mapAX=nullptr)
Definition: SCT_ComponentFactory.cxx:44
SCT_ComponentFactory::m_detectorManager
InDetDD::SCT_DetectorManager * m_detectorManager
Definition: SCT_ComponentFactory.h:41
SCT_InnerSide::m_thickness
double m_thickness
Definition: SCT_InnerSide.h:72
SCT_InnerSide::m_env1RefPointVector
std::unique_ptr< GeoTrf::Vector3D > m_env1RefPointVector
Definition: SCT_InnerSide.h:86
SCT_InnerSide::m_hybridPos
GeoIntrusivePtr< GeoTransform > m_hybridPos
Definition: SCT_InnerSide.h:83
SCT_GeometryManager::generalParameters
const SCT_GeneralParameters * generalParameters() const
Definition: SCT_GeometryManager.cxx:105
lumiFormat.i
int i
Definition: lumiFormat.py:85
SCT_InnerSide::m_safety
double m_safety
Definition: SCT_InnerSide.h:78
SCT_MaterialManager::gasMaterial
const GeoMaterial * gasMaterial() const
Definition: SCT_MaterialManager.cxx:69
SCT_InnerSide::m_hybridOffsetZ
double m_hybridOffsetZ
Definition: SCT_InnerSide.h:77
SCT_InnerSide::getParameters
void getParameters()
Definition: SCT_InnerSide.cxx:59
add
bool add(const std::string &hname, TKey *tobj)
Definition: fastadd.cxx:55
SCT_InnerSide::m_env2RefPointVector
std::unique_ptr< GeoTrf::Vector3D > m_env2RefPointVector
Definition: SCT_InnerSide.h:87
SCT_InnerSide::m_hybridOffsetX
double m_hybridOffsetX
Definition: SCT_InnerSide.h:76
SCT_GeneralParameters
Definition: SCT_GeneralParameters.h:16
SCT_ComponentFactory::s_epsilon
static const double s_epsilon
Definition: SCT_ComponentFactory.h:50
SCT_GeometryManager::barrelModuleParameters
const SCT_BarrelModuleParameters * barrelModuleParameters() const
Definition: SCT_GeometryManager.cxx:84
SCT_InnerSide::m_sensorPos
GeoIntrusivePtr< GeoTransform > m_sensorPos
Definition: SCT_InnerSide.h: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_BarrelModuleParameters
Definition: SCT_BarrelModuleParameters.h:12
SCT_InnerSide::m_width
double m_width
Definition: SCT_InnerSide.h:73
SCT_UniqueComponentFactory::m_logVolume
const GeoLogVol * m_logVolume
Definition: SCT_ComponentFactory.h:90
SCT_InnerSide::m_sensor
std::unique_ptr< SCT_Sensor > m_sensor
Definition: SCT_InnerSide.h:81
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
SCT_InnerSide::m_length
double m_length
Definition: SCT_InnerSide.h:74
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
str
Definition: BTagTrackIpAccessor.cxx:11
SCT_UniqueComponentFactory::m_sqliteReader
GeoModelIO::ReadGeoModel * m_sqliteReader
Definition: SCT_ComponentFactory.h:91
SCT_InnerSide::m_hybrid
std::unique_ptr< SCT_Hybrid > m_hybrid
Definition: SCT_InnerSide.h:80
SCT_InnerSide::preBuild
virtual const GeoLogVol * preBuild()
Definition: SCT_InnerSide.cxx:71