ATLAS Offline Software
Loading...
Searching...
No Matches
GeoPixelChip Class Reference

#include <GeoPixelChip.h>

Inheritance diagram for GeoPixelChip:
Collaboration diagram for GeoPixelChip:

Public Member Functions

 GeoPixelChip (InDetDD::PixelDetectorManager *ddmgr, PixelGeometryManager *mgr, GeoModelIO::ReadGeoModel *sqliteReader, std::shared_ptr< std::map< std::string, GeoFullPhysVol * > > mapFPV, std::shared_ptr< std::map< std::string, GeoAlignableTransform * > > mapAX, bool isModule3D)
virtual GeoVPhysVol * Build () override

Protected Attributes

PixelGeometryManagerm_gmt_mgr
InDetMaterialManagerm_mat_mgr
InDetDD::PixelDetectorManagerm_DDmgr
GeoModelIO::ReadGeoModel * m_sqliteReader
std::shared_ptr< std::map< std::string, GeoFullPhysVol * > > m_mapFPV
std::shared_ptr< std::map< std::string, GeoAlignableTransform * > > m_mapAX
const double m_epsilon

Private Attributes

bool m_isModule3D

Detailed Description

Definition at line 11 of file GeoPixelChip.h.

Constructor & Destructor Documentation

◆ GeoPixelChip()

GeoPixelChip::GeoPixelChip ( InDetDD::PixelDetectorManager * ddmgr,
PixelGeometryManager * mgr,
GeoModelIO::ReadGeoModel * sqliteReader,
std::shared_ptr< std::map< std::string, GeoFullPhysVol * > > mapFPV,
std::shared_ptr< std::map< std::string, GeoAlignableTransform * > > mapAX,
bool isModule3D )
inline

Definition at line 13 of file GeoPixelChip.h.

19 : GeoVPixelFactory (ddmgr, mgr, sqliteReader, std::move(mapFPV), std::move(mapAX)),
20 m_isModule3D(isModule3D)
21 {};
GeoVPixelFactory(InDetDD::PixelDetectorManager *ddmgr, PixelGeometryManager *mgr, GeoModelIO::ReadGeoModel *sqliteReader, std::shared_ptr< std::map< std::string, GeoFullPhysVol * > > mapFPV, std::shared_ptr< std::map< std::string, GeoAlignableTransform * > > mapAX)

Member Function Documentation

◆ Build()

GeoVPhysVol * GeoPixelChip::Build ( )
overridevirtual

Implements GeoVPixelFactory.

Definition at line 20 of file GeoPixelChip.cxx.

20 {
21 //
22 // Dimensions
23 //
24 double length = m_gmt_mgr->PixelChipLength(m_isModule3D);
25 double thickness = m_gmt_mgr->PixelChipThickness(m_isModule3D);
26 double width = m_gmt_mgr->PixelChipWidth(m_isModule3D);
27 std::string LogName = "ChipBrl";
28 if(m_gmt_mgr->isEndcap() ) LogName = "ChipEC";
29 //std::cout << "Chip Thick = " << thickness << std::endl;
30 const GeoBox* chipBox = new GeoBox(thickness/2.,width/2.,length/2.);
31
32 std::string matName = m_gmt_mgr->getMaterialName("Chip",0,m_gmt_mgr->moduleType());
33 if(m_isModule3D)matName = m_gmt_mgr->getMaterialName("Chip3D",0,m_gmt_mgr->moduleType());
34
35 const GeoMaterial* chipMat = m_mat_mgr->getMaterialForVolume(matName,chipBox->volume());
36
37 GeoLogVol* theChip = new GeoLogVol(LogName,chipBox,chipMat);
38 GeoPhysVol* chipPhys = new GeoPhysVol(theChip);
39
40 return chipPhys;
41}
double length(const pvec &v)
const double width
PixelGeometryManager * m_gmt_mgr
InDetMaterialManager * m_mat_mgr

Member Data Documentation

◆ m_DDmgr

InDetDD::PixelDetectorManager* GeoVPixelFactory::m_DDmgr
protectedinherited

Definition at line 45 of file GeoVPixelFactory.h.

◆ m_epsilon

const double GeoVPixelFactory::m_epsilon
protectedinherited

Definition at line 49 of file GeoVPixelFactory.h.

◆ m_gmt_mgr

PixelGeometryManager* GeoVPixelFactory::m_gmt_mgr
protectedinherited

Definition at line 43 of file GeoVPixelFactory.h.

◆ m_isModule3D

bool GeoPixelChip::m_isModule3D
private

Definition at line 25 of file GeoPixelChip.h.

◆ m_mapAX

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

Definition at line 48 of file GeoVPixelFactory.h.

◆ m_mapFPV

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

Definition at line 47 of file GeoVPixelFactory.h.

◆ m_mat_mgr

InDetMaterialManager* GeoVPixelFactory::m_mat_mgr
protectedinherited

Definition at line 44 of file GeoVPixelFactory.h.

◆ m_sqliteReader

GeoModelIO::ReadGeoModel* GeoVPixelFactory::m_sqliteReader
protectedinherited

Definition at line 46 of file GeoVPixelFactory.h.


The documentation for this class was generated from the following files: