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

#include <PixelDetectorDC1DC2.h>

Inheritance diagram for PixelGeoDC2::GeoPixelDiskSupports:
Collaboration diagram for PixelGeoDC2::GeoPixelDiskSupports:

Public Member Functions

 GeoPixelDiskSupports (InDetDD::PixelDetectorManager *ddmgr, PixelGeometryManager *mgr)
 
virtual GeoVPhysVol * Build () override
 
int NCylinders ()
 
void SetCylinder (int n)
 
double ZPos ()
 

Protected Attributes

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

Private Attributes

std::vector< double > m_rmin
 
std::vector< double > m_rmax
 
std::vector< double > m_halflength
 
std::vector< double > m_zpos
 
std::vector< std::string > m_material
 
int m_nframe {0}
 

Detailed Description

Definition at line 137 of file PixelDetectorDC1DC2.h.

Constructor & Destructor Documentation

◆ GeoPixelDiskSupports()

GeoPixelDiskSupports::GeoPixelDiskSupports ( InDetDD::PixelDetectorManager ddmgr,
PixelGeometryManager mgr 
)

Definition at line 368 of file PixelDetectorDC1DC2.cxx.

370  : GeoVPixelFactory (ddmgr, mgr)
371 {
372  //
373  // Initialize the vectors
374  //
375  //
376  // zpos is not needed, but it's here just in case...
377  //
378  std::string ele[3] = {"Inner", "Central", "Outer"};
379  for (int ii =0; ii<3; ii++) {
380  double rmin = m_gmt_mgr->PixelECCarbonRMin(ele[ii]);
381  double rmax = m_gmt_mgr->PixelECCarbonRMax(ele[ii]);
382  double halflength = m_gmt_mgr->PixelECCarbonThickness(ele[ii])/2.;
383  double zpos = 0.;
384  std::string mat = m_gmt_mgr->PixelECCarbonMaterial(ele[ii]);
385  m_rmin.push_back(rmin);
386  m_rmax.push_back(rmax);
387  m_zpos.push_back(zpos);
388  m_halflength.push_back(halflength);
389  m_material.push_back(mat);
390  }
391 }

Member Function Documentation

◆ Build()

GeoVPhysVol * GeoPixelDiskSupports::Build ( )
overridevirtual

Implements PixelGeoDC2::GeoVPixelFactory.

Definition at line 395 of file PixelDetectorDC1DC2.cxx.

395  {
396  const GeoMaterial* supportMat = m_mat_mgr->getMaterial(m_material[m_nframe]);
397  //
398  // Dimensions: (m_nframe set with teh SetCylinder method)
399  //
400  double rmin = m_rmin[m_nframe];
401  double rmax = m_rmax[m_nframe];
402  double halflength = m_halflength[m_nframe];
403  const GeoTube* supportTube = new GeoTube(rmin,rmax,halflength);
404  std::string logName = std::string("diskSupLog")+std::to_string(m_nframe);
405  GeoLogVol* theSupport = new GeoLogVol(logName,supportTube,supportMat);
406  GeoPhysVol* supportPhys = new GeoPhysVol(theSupport);
407  return supportPhys;
408 }

◆ NCylinders()

int PixelGeoDC2::GeoPixelDiskSupports::NCylinders ( )
inline

Definition at line 142 of file PixelDetectorDC1DC2.h.

142 {return m_rmin.size();}

◆ SetCylinder()

void PixelGeoDC2::GeoPixelDiskSupports::SetCylinder ( int  n)
inline

Definition at line 143 of file PixelDetectorDC1DC2.h.

143 {m_nframe = n;}

◆ ZPos()

double PixelGeoDC2::GeoPixelDiskSupports::ZPos ( )
inline

Definition at line 144 of file PixelDetectorDC1DC2.h.

144 {return m_zpos[m_nframe];}

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_halflength

std::vector<double> PixelGeoDC2::GeoPixelDiskSupports::m_halflength
private

Definition at line 146 of file PixelDetectorDC1DC2.h.

◆ m_mat_mgr

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

Definition at line 52 of file PixelDetectorDC1DC2.h.

◆ m_material

std::vector<std::string> PixelGeoDC2::GeoPixelDiskSupports::m_material
private

Definition at line 147 of file PixelDetectorDC1DC2.h.

◆ m_nframe

int PixelGeoDC2::GeoPixelDiskSupports::m_nframe {0}
private

Definition at line 148 of file PixelDetectorDC1DC2.h.

◆ m_rmax

std::vector<double> PixelGeoDC2::GeoPixelDiskSupports::m_rmax
private

Definition at line 146 of file PixelDetectorDC1DC2.h.

◆ m_rmin

std::vector<double> PixelGeoDC2::GeoPixelDiskSupports::m_rmin
private

Definition at line 146 of file PixelDetectorDC1DC2.h.

◆ m_zpos

std::vector<double> PixelGeoDC2::GeoPixelDiskSupports::m_zpos
private

Definition at line 146 of file PixelDetectorDC1DC2.h.


The documentation for this class was generated from the following files:
PixelGeoDC2::GeoVPixelFactory::m_gmt_mgr
PixelGeometryManager * m_gmt_mgr
Definition: PixelDetectorDC1DC2.h:51
PixelGeoDC2::PixelGeometryManager::PixelECCarbonMaterial
virtual std::string PixelECCarbonMaterial(std::string)=0
PixelGeoDC2::GeoVPixelFactory::GeoVPixelFactory
GeoVPixelFactory(InDetDD::PixelDetectorManager *ddmgr, PixelGeometryManager *mgr)
Definition: PixelDetectorDC1DC2.cxx:1536
PixelGeoDC2::GeoPixelDiskSupports::m_zpos
std::vector< double > m_zpos
Definition: PixelDetectorDC1DC2.h:146
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:53
PixelGeoDC2::GeoVPixelFactory::m_mat_mgr
StoredMaterialManager * m_mat_mgr
Definition: PixelDetectorDC1DC2.h:52
PixelGeoDC2::GeoPixelDiskSupports::m_nframe
int m_nframe
Definition: PixelDetectorDC1DC2.h:148
PixelGeoDC2::GeoPixelDiskSupports::m_rmax
std::vector< double > m_rmax
Definition: PixelDetectorDC1DC2.h:146
BchCleanup.mgr
mgr
Definition: BchCleanup.py:294
PixelGeoDC2::GeoPixelDiskSupports::m_material
std::vector< std::string > m_material
Definition: PixelDetectorDC1DC2.h:147
beamspotman.n
n
Definition: beamspotman.py:731
PixelGeoDC2::GeoPixelDiskSupports::m_halflength
std::vector< double > m_halflength
Definition: PixelDetectorDC1DC2.h:146
PixelGeoDC2::PixelGeometryManager::PixelECCarbonRMin
virtual double PixelECCarbonRMin(std::string)=0
PixelGeoDC2::PixelGeometryManager::PixelECCarbonRMax
virtual double PixelECCarbonRMax(std::string)=0
PixelGeoDC2::PixelGeometryManager::PixelECCarbonThickness
virtual double PixelECCarbonThickness(std::string)=0
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
StoredMaterialManager::getMaterial
virtual const GeoMaterial * getMaterial(const std::string &name)=0
PixelGeoDC2::GeoPixelDiskSupports::m_rmin
std::vector< double > m_rmin
Definition: PixelDetectorDC1DC2.h:146