ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | List of all members
PixelGeoDC2::GeoPixelCable Class Reference

#include <PixelDetectorDC1DC2.h>

Inheritance diagram for PixelGeoDC2::GeoPixelCable:
Collaboration diagram for PixelGeoDC2::GeoPixelCable:

Public Member Functions

 GeoPixelCable (InDetDD::PixelDetectorManager *ddmgr, PixelGeometryManager *mgr)
 
virtual GeoVPhysVol * Build () override
 
double Thickness () const
 
double Length ()
 
void SetModuleNumber (int moduleNumber)
 
int GetModuleNumber ()
 

Protected Attributes

PixelGeometryManagerm_gmt_mgr {}
 
StoredMaterialManagerm_mat_mgr {}
 
InDetDD::PixelDetectorManagerm_DDmgr {}
 
const double m_epsilon {}
 

Private Attributes

int m_moduleNumber
 

Detailed Description

Definition at line 79 of file PixelDetectorDC1DC2.h.

Constructor & Destructor Documentation

◆ GeoPixelCable()

PixelGeoDC2::GeoPixelCable::GeoPixelCable ( InDetDD::PixelDetectorManager ddmgr,
PixelGeometryManager mgr 
)
inline

Definition at line 81 of file PixelDetectorDC1DC2.h.

83  : GeoVPixelFactory (ddmgr, mgr),
84  m_moduleNumber(0) {}

Member Function Documentation

◆ Build()

GeoVPhysVol * GeoPixelCable::Build ( )
overridevirtual

Implements PixelGeoDC2::GeoVPixelFactory.

Definition at line 123 of file PixelDetectorDC1DC2.cxx.

123  {
124  //
125  // Dimensions
126  //
127  double length = this->Length();
128  double thickness = this->Thickness();
129  double width = m_gmt_mgr->PixelCableWidth();
130  const GeoMaterial* cable = m_mat_mgr->getMaterial("pix::Cable");
131  const GeoBox* cableBox = new GeoBox(thickness/2.,width/2.,length/2.);
132  std::string logName = std::string("cableLog")+std::to_string(m_moduleNumber);;
133  GeoLogVol* theCable = new GeoLogVol(logName,cableBox,cable);
134  GeoPhysVol* cablePhys = new GeoPhysVol(theCable);
135  return cablePhys;
136 }

◆ GetModuleNumber()

int PixelGeoDC2::GeoPixelCable::GetModuleNumber ( )
inline

Definition at line 89 of file PixelDetectorDC1DC2.h.

89 {return m_moduleNumber;}

◆ Length()

double GeoPixelCable::Length ( )

Definition at line 139 of file PixelDetectorDC1DC2.cxx.

139  {
140  //
141  // The cable is running from the beginning of the module to which
142  // it is attached to the end of the ladder,
143  // zmax gives the end of the ladder and zmin is the begining of the module
144  // in absolute value, so the cable lenght is the difference b/w the two
145  // the TubeCables factory will have to position this cable in the correct
146  // side.
147  //
148  double zmax = m_gmt_mgr->PixelCableZMax();
150  return zmax-zmin-m_epsilon;
151 }

◆ SetModuleNumber()

void PixelGeoDC2::GeoPixelCable::SetModuleNumber ( int  moduleNumber)
inline

Definition at line 88 of file PixelDetectorDC1DC2.h.

88 {m_moduleNumber = moduleNumber;}

◆ Thickness()

double GeoPixelCable::Thickness ( ) const

Definition at line 153 of file PixelDetectorDC1DC2.cxx.

153  {
154  //
155  // This is calculated from the Gaudi::Units::rad length of the cables and their mass
156  // I have to go back on this later when I'll have defined a material
157  // manager, for the time being I get the thickness by atlsim, using dtree
158  // anf hardwire the numbers in the code...
159  // I have to come back on the thickness using the cables recipes
160  //
161  if(m_moduleNumber == 0) return 2.*0.0028412*Gaudi::Units::cm;
162  if(m_moduleNumber == 1) return 2.*0.0056795*Gaudi::Units::cm;
163  if(m_moduleNumber == 2) return 2.*0.0056830*Gaudi::Units::cm;
164  if(m_moduleNumber == 3) return 2.*0.0056763*Gaudi::Units::cm;
165  if(m_moduleNumber == 4) return 2.*0.0056752*Gaudi::Units::cm;
166  if(m_moduleNumber == 5) return 2.*0.0057058*Gaudi::Units::cm;
167  if(m_moduleNumber == 6) return 2.*0.0056818*Gaudi::Units::cm;
168 
169  return 0.;
170 
171 }

Member Data Documentation

◆ m_DDmgr

InDetDD::PixelDetectorManager* PixelGeoDC2::GeoVPixelFactory::m_DDmgr {}
protectedinherited

Definition at line 53 of file PixelDetectorDC1DC2.h.

◆ m_epsilon

const double PixelGeoDC2::GeoVPixelFactory::m_epsilon {}
protectedinherited

Definition at line 54 of file PixelDetectorDC1DC2.h.

◆ m_gmt_mgr

PixelGeometryManager* PixelGeoDC2::GeoVPixelFactory::m_gmt_mgr {}
protectedinherited

Definition at line 51 of file PixelDetectorDC1DC2.h.

◆ m_mat_mgr

StoredMaterialManager* PixelGeoDC2::GeoVPixelFactory::m_mat_mgr {}
protectedinherited

Definition at line 52 of file PixelDetectorDC1DC2.h.

◆ m_moduleNumber

int PixelGeoDC2::GeoPixelCable::m_moduleNumber
private

Definition at line 94 of file PixelDetectorDC1DC2.h.


The documentation for this class was generated from the following files:
PixelGeoDC2::GeoPixelCable::m_moduleNumber
int m_moduleNumber
Definition: PixelDetectorDC1DC2.h:94
PixelGeoDC2::GeoVPixelFactory::m_gmt_mgr
PixelGeometryManager * m_gmt_mgr
Definition: PixelDetectorDC1DC2.h:51
PixelGeoDC2::GeoPixelCable::Length
double Length()
Definition: PixelDetectorDC1DC2.cxx:139
PixelGeoDC2::GeoVPixelFactory::m_epsilon
const double m_epsilon
Definition: PixelDetectorDC1DC2.h:54
PixelGeoDC2::GeoVPixelFactory::GeoVPixelFactory
GeoVPixelFactory(InDetDD::PixelDetectorManager *ddmgr, PixelGeometryManager *mgr)
Definition: PixelDetectorDC1DC2.cxx:1536
PixelAthClusterMonAlgCfg.zmin
zmin
Definition: PixelAthClusterMonAlgCfg.py:169
PixelGeoDC2::GeoVPixelFactory::m_mat_mgr
StoredMaterialManager * m_mat_mgr
Definition: PixelDetectorDC1DC2.h:52
BchCleanup.mgr
mgr
Definition: BchCleanup.py:294
cm
const double cm
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/FCAL_ChannelMap.cxx:25
PixelGeoDC2::PixelGeometryManager::PixelCableWidth
virtual double PixelCableWidth()=0
PixelAthClusterMonAlgCfg.zmax
zmax
Definition: PixelAthClusterMonAlgCfg.py:169
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
PixelGeoDC2::PixelGeometryManager::PixelCableZMin
virtual double PixelCableZMin()=0
PixelGeoDC2::GeoPixelCable::Thickness
double Thickness() const
Definition: PixelDetectorDC1DC2.cxx:153
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
PixelGeoDC2::PixelGeometryManager::PixelCableDeltaZ
virtual double PixelCableDeltaZ()=0
StoredMaterialManager::getMaterial
virtual const GeoMaterial * getMaterial(const std::string &name)=0
PixelGeoDC2::PixelGeometryManager::PixelCableZMax
virtual double PixelCableZMax()=0
length
double length(const pvec &v)
Definition: FPGATrackSimLLPDoubletHoughTransformTool.cxx:26