ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_UniqueComponentFactory Class Referenceabstract

#include <SCT_ComponentFactory.h>

Inherits SCT_ComponentFactory.

Inherited by SCT_Barrel, SCT_Forward, SCT_FwdModule, SCT_FwdRing, SCT_FwdSensor, SCT_FwdWheel, SCT_InnerSide, SCT_Layer, SCT_Module, SCT_OuterSide, SCT_Sensor, and SCT_Ski.

Collaboration diagram for SCT_UniqueComponentFactory:

Public Member Functions

 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)
virtual GeoVPhysVol * build (SCT_Identifier id)=0
const std::string & getName () const
std::string intToString (int i) const

Protected Member Functions

virtual const GeoLogVol * preBuild ()=0
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 Attributes

std::string m_name

Static Private Attributes

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

Detailed Description

Definition at line 75 of file SCT_ComponentFactory.h.

Constructor & Destructor Documentation

◆ 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 at line 44 of file SCT_ComponentFactory.cxx.

50 :
51 SCT_ComponentFactory(name, detectorManager, geometryManager, materials),
52 m_logVolume(nullptr),
53 m_sqliteReader(sqliteReader),
54 m_mapFPV(std::move(mapFPV)),
55 m_mapAX(std::move(mapAX))
56{};
SCT_ComponentFactory(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
std::shared_ptr< std::map< std::string, GeoFullPhysVol * > > m_mapFPV
std::shared_ptr< std::map< std::string, GeoAlignableTransform * > > m_mapAX
GeoModelIO::ReadGeoModel * m_sqliteReader

Member Function Documentation

◆ build()

virtual GeoVPhysVol * SCT_UniqueComponentFactory::build ( SCT_Identifier id)
pure virtual

◆ epsilon()

double SCT_ComponentFactory::epsilon ( ) const
protectedinherited

Definition at line 38 of file SCT_ComponentFactory.cxx.

39{
40 return s_epsilon;
41}
static const double s_epsilon

◆ getName()

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

Definition at line 35 of file SCT_ComponentFactory.h.

35{return m_name;}

◆ 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}

◆ preBuild()

virtual const GeoLogVol * SCT_UniqueComponentFactory::preBuild ( )
protectedpure virtual

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_logVolume

const GeoLogVol* SCT_UniqueComponentFactory::m_logVolume
protected

Definition at line 90 of file SCT_ComponentFactory.h.

◆ m_mapAX

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

Definition at line 96 of file SCT_ComponentFactory.h.

◆ m_mapFPV

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

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_sqliteReader

GeoModelIO::ReadGeoModel* SCT_UniqueComponentFactory::m_sqliteReader
protected

Definition at line 91 of file SCT_ComponentFactory.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: