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

#include <SCT_FwdHybrid.h>

Inheritance diagram for SCT_FwdHybrid:
Collaboration diagram for SCT_FwdHybrid:

Public Member Functions

 SCT_FwdHybrid (const std::string &name, int ringType, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
 
const GeoMaterial * material () const
 
double outerWidth () const
 
double innerWidth () const
 
double length () const
 
double thickness () const
 
double mountPointToOuterEdge () const
 
double mountPointToInnerEdge () const
 
virtual GeoVPhysVol * build ()
 
GeoVPhysVol * getVolume ()
 
const std::string & getName () const
 
std::string intToString (int i) const
 

Protected Member Functions

double epsilon () const
 

Protected Attributes

GeoVPhysVol * m_physVolume
 
InDetDD::SCT_DetectorManagerm_detectorManager
 
SCT_GeometryManagerm_geometryManager
 
SCT_MaterialManagerm_materials
 

Private Member Functions

void getParameters ()
 

Private Attributes

int m_ringType
 
double m_outerWidth = 0.0
 
double m_innerWidth = 0.0
 
double m_length1 = 0.0
 
double m_length = 0.0
 
double m_thickness = 0.0
 
double m_width2 = 0.0
 
double m_length2 = 0.0
 
double m_thickness2 = 0.0
 
double m_mountPointToInnerEdge = 0.0
 
double m_mountPointToOuterEdge = 0.0
 
const GeoMaterial * m_material = nullptr
 
std::string m_materialName
 
std::string m_name
 

Static Private Attributes

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

Detailed Description

Definition at line 15 of file SCT_FwdHybrid.h.

Constructor & Destructor Documentation

◆ SCT_FwdHybrid()

SCT_FwdHybrid::SCT_FwdHybrid ( const std::string &  name,
int  ringType,
InDetDD::SCT_DetectorManager detectorManager,
SCT_GeometryManager geometryManager,
SCT_MaterialManager materials 
)

Definition at line 38 of file SCT_FwdHybrid.cxx.

42  : SCT_SharedComponentFactory(name, detectorManager, geometryManager, materials),
43  m_ringType(ringType)
44 {
45  getParameters();
47 }

Member Function Documentation

◆ build()

GeoVPhysVol * SCT_FwdHybrid::build ( )
virtual

Implements SCT_SharedComponentFactory.

Definition at line 84 of file SCT_FwdHybrid.cxx.

85 {
86 
88 
89  // Make a hybrid. This is a TRD + BOX
90  const GeoTrd * hybridShape1 = new GeoTrd(0.5 * m_thickness, 0.5 * m_thickness,
91  0.5 * m_innerWidth, 0.5 * m_outerWidth,
92  0.5 * m_length1);
93 
94  const GeoBox * hybridShape2 = new GeoBox(0.5 * m_thickness2, 0.5 * m_width2, 0.5 * m_length2);
95 
96  double position = parameters->fwdModuleMountPoint(m_ringType) - (m_mountPointToInnerEdge)
97  + 0.5*(m_length2);
98  // double position = zsmi[m_ringType].mountd - zhyb->hybysh + (zhyb->hyby - zhyb->hybycor) / 2.;
99  if (m_ringType == 0) { position = -1 * position; }; // outer module, hybrid in inner side
100 
101  const GeoShape & hybridPos1 = (*hybridShape2 << GeoTrf::TranslateZ3D(position));
102 
103  position = parameters->fwdModuleMountPoint(m_ringType) - (m_mountPointToInnerEdge)
104  + m_length - 0.5 * parameters->fwdHybridLengthToCorner();
105  // position = zsmi[m_ringType].mountd - zhyb->hybysh + zhyb->hyby - zhyb->hybycor / 2.;
106  if (m_ringType == 0) { // outer module, hybrid in inner side
107  position = -1 * position; };
108 
109  double rotation = 0.;
110  if (m_ringType == 0) rotation = 180. * Gaudi::Units::deg;
111 
112  const GeoShape & hybridPos2 = (*hybridShape1 << GeoTrf::RotateX3D(rotation)
113  << GeoTrf::TranslateZ3D(position) );
114 
115  const GeoShapeUnion & hybridShape = hybridPos1.add(hybridPos2);
116  // error getting volume directly.
117  m_material = m_materials->getMaterialForVolume(m_materialName, hybridShape1->volume()+hybridShape2->volume());
118  const GeoLogVol * hybridLog = new GeoLogVol(getName(), &hybridShape, m_material);
119  GeoPhysVol * hybrid = new GeoPhysVol(hybridLog);
120 
121  return hybrid;
122 
123 }

◆ 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_FwdHybrid::getParameters ( )
private

Definition at line 52 of file SCT_FwdHybrid.cxx.

53 {
54 
56 
57  m_materialName = parameters->fwdHybridMaterial();
58 
59  //double Gaudi::Units::radlength;
60  //Gaudi::Units::radlength = 18.8 * Gaudi::Units::cm;
61  // [Gaudi::Units::cm] for carbon (Partickle Physics Booklet)
62 
63  m_thickness = parameters->fwdHybridThickness();
65 
66  m_length = parameters->fwdHybridLength();
67 
68  // TRD part
69  m_innerWidth = parameters->fwdHybridInnerWidth();
70  m_outerWidth = parameters->fwdHybridOuterWidth(); // Width at outer edge
71  m_length1 = parameters->fwdHybridLengthToCorner();
72 
73  // rectangular part.
74  m_length2 = m_length - parameters->fwdHybridLengthToCorner();
76 
78 
79  m_mountPointToInnerEdge = parameters->fwdHybridMountPointToInnerEdge();
81 
82 }

◆ getVolume()

GeoVPhysVol* SCT_SharedComponentFactory::getVolume ( )
inlineinherited

Definition at line 67 of file SCT_ComponentFactory.h.

67 {return m_physVolume;}

◆ innerWidth()

double SCT_FwdHybrid::innerWidth ( ) const
inline

Definition at line 29 of file SCT_FwdHybrid.h.

29 { return m_innerWidth; }

◆ 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_FwdHybrid::length ( ) const
inline

Definition at line 30 of file SCT_FwdHybrid.h.

30 { return m_length; }

◆ material()

const GeoMaterial* SCT_FwdHybrid::material ( ) const
inline

Definition at line 27 of file SCT_FwdHybrid.h.

27 {return m_material;}

◆ mountPointToInnerEdge()

double SCT_FwdHybrid::mountPointToInnerEdge ( ) const
inline

Definition at line 34 of file SCT_FwdHybrid.h.

34 { return m_mountPointToInnerEdge; }

◆ mountPointToOuterEdge()

double SCT_FwdHybrid::mountPointToOuterEdge ( ) const
inline

Definition at line 33 of file SCT_FwdHybrid.h.

33 { return m_mountPointToOuterEdge; }

◆ outerWidth()

double SCT_FwdHybrid::outerWidth ( ) const
inline

Definition at line 28 of file SCT_FwdHybrid.h.

28 { return m_outerWidth; }

◆ thickness()

double SCT_FwdHybrid::thickness ( ) const
inline

Definition at line 31 of file SCT_FwdHybrid.h.

31 { return m_thickness; }

Member Data Documentation

◆ m_detectorManager

InDetDD::SCT_DetectorManager* SCT_ComponentFactory::m_detectorManager
protectedinherited

Definition at line 41 of file SCT_ComponentFactory.h.

◆ m_geometryManager

SCT_GeometryManager* SCT_ComponentFactory::m_geometryManager
protectedinherited

Definition at line 42 of file SCT_ComponentFactory.h.

◆ m_innerWidth

double SCT_FwdHybrid::m_innerWidth = 0.0
private

Definition at line 45 of file SCT_FwdHybrid.h.

◆ m_length

double SCT_FwdHybrid::m_length = 0.0
private

Definition at line 48 of file SCT_FwdHybrid.h.

◆ m_length1

double SCT_FwdHybrid::m_length1 = 0.0
private

Definition at line 46 of file SCT_FwdHybrid.h.

◆ m_length2

double SCT_FwdHybrid::m_length2 = 0.0
private

Definition at line 52 of file SCT_FwdHybrid.h.

◆ m_material

const GeoMaterial* SCT_FwdHybrid::m_material = nullptr
private

Definition at line 58 of file SCT_FwdHybrid.h.

◆ m_materialName

std::string SCT_FwdHybrid::m_materialName
private

Definition at line 59 of file SCT_FwdHybrid.h.

◆ m_materials

SCT_MaterialManager* SCT_ComponentFactory::m_materials
protectedinherited

Definition at line 43 of file SCT_ComponentFactory.h.

◆ m_mountPointToInnerEdge

double SCT_FwdHybrid::m_mountPointToInnerEdge = 0.0
private

Definition at line 55 of file SCT_FwdHybrid.h.

◆ m_mountPointToOuterEdge

double SCT_FwdHybrid::m_mountPointToOuterEdge = 0.0
private

Definition at line 56 of file SCT_FwdHybrid.h.

◆ m_name

std::string SCT_ComponentFactory::m_name
privateinherited

Definition at line 49 of file SCT_ComponentFactory.h.

◆ m_outerWidth

double SCT_FwdHybrid::m_outerWidth = 0.0
private

Definition at line 43 of file SCT_FwdHybrid.h.

◆ m_physVolume

GeoVPhysVol* SCT_SharedComponentFactory::m_physVolume
protectedinherited

Definition at line 70 of file SCT_ComponentFactory.h.

◆ m_ringType

int SCT_FwdHybrid::m_ringType
private

Definition at line 41 of file SCT_FwdHybrid.h.

◆ m_thickness

double SCT_FwdHybrid::m_thickness = 0.0
private

Definition at line 49 of file SCT_FwdHybrid.h.

◆ m_thickness2

double SCT_FwdHybrid::m_thickness2 = 0.0
private

Definition at line 53 of file SCT_FwdHybrid.h.

◆ m_width2

double SCT_FwdHybrid::m_width2 = 0.0
private

Definition at line 51 of file SCT_FwdHybrid.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_FwdHybrid::m_ringType
int m_ringType
Definition: SCT_FwdHybrid.h:41
SCT_GeometryManager::forwardModuleParameters
const SCT_ForwardModuleParameters * forwardModuleParameters() const
Definition: SCT_GeometryManager.cxx:91
SCT_ComponentFactory::m_name
std::string m_name
Definition: SCT_ComponentFactory.h:49
SCT_FwdHybrid::m_material
const GeoMaterial * m_material
Definition: SCT_FwdHybrid.h:58
SCT_FwdHybrid::m_mountPointToOuterEdge
double m_mountPointToOuterEdge
Definition: SCT_FwdHybrid.h:56
deg
#define deg
Definition: SbPolyhedron.cxx:17
SCT_FwdHybrid::m_innerWidth
double m_innerWidth
Definition: SCT_FwdHybrid.h:45
SCT_FwdHybrid::m_length
double m_length
Definition: SCT_FwdHybrid.h:48
SCT_ForwardModuleParameters
Definition: SCT_ForwardModuleParameters.h:12
SCT_FwdHybrid::m_thickness
double m_thickness
Definition: SCT_FwdHybrid.h:49
lumiFormat.i
int i
Definition: lumiFormat.py:85
xAOD::rotation
rotation
Definition: TrackSurface_v1.cxx:15
SCT_FwdHybrid::getParameters
void getParameters()
Definition: SCT_FwdHybrid.cxx:52
SCT_FwdHybrid::m_mountPointToInnerEdge
double m_mountPointToInnerEdge
Definition: SCT_FwdHybrid.h:55
SCT_ComponentFactory::s_epsilon
static const double s_epsilon
Definition: SCT_ComponentFactory.h:50
SCT_MaterialManager::getMaterialForVolume
const GeoMaterial * getMaterialForVolume(const std::string &materialName, double volume)
Definition: SCT_MaterialManager.cxx:61
SCT_ComponentFactory::m_materials
SCT_MaterialManager * m_materials
Definition: SCT_ComponentFactory.h:43
SCT_FwdHybrid::m_length1
double m_length1
Definition: SCT_FwdHybrid.h:46
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCT_SharedComponentFactory::m_physVolume
GeoVPhysVol * m_physVolume
Definition: SCT_ComponentFactory.h:70
SCT_SharedComponentFactory::SCT_SharedComponentFactory
SCT_SharedComponentFactory(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials=nullptr)
Definition: SCT_ComponentFactory.h:59
SCT_FwdHybrid::m_materialName
std::string m_materialName
Definition: SCT_FwdHybrid.h:59
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
SCT_FwdHybrid::m_width2
double m_width2
Definition: SCT_FwdHybrid.h:51
SCT_FwdHybrid::m_outerWidth
double m_outerWidth
Definition: SCT_FwdHybrid.h:43
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
str
Definition: BTagTrackIpAccessor.cxx:11
SCT_ComponentFactory::getName
const std::string & getName() const
Definition: SCT_ComponentFactory.h:35
SCT_FwdHybrid::m_length2
double m_length2
Definition: SCT_FwdHybrid.h:52
SCT_FwdHybrid::m_thickness2
double m_thickness2
Definition: SCT_FwdHybrid.h:53
SCT_FwdHybrid::build
virtual GeoVPhysVol * build()
Definition: SCT_FwdHybrid.cxx:84