ATLAS Offline Software
PixelDetectorFactoryLite.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PIXELGEOMODEL_PIXELDETECTORFACTORYLITE_H
6 #define PIXELGEOMODEL_PIXELDETECTORFACTORYLITE_H
7 
8 #include <map>
9 #include <string>
10 
12 
16 
17 class GeoFullPhysVol;
18 class GeoAlignableTransform;
19 
20 class PixelSwitches;
23 
24 namespace GeoModelIO {
25  class ReadGeoModel;
26 }
27 
29 
30  public:
31 
32  PixelDetectorFactoryLite(GeoModelIO::ReadGeoModel* sqliteReader
33  , PixelGeoModelAthenaComps* athenaComps
34  , const PixelSwitches& switches);
38 
39  // Creation of geometry:
40  virtual void create(GeoPhysVol *world) override;
41 
42  // Access to the results:
43  virtual const InDetDD::PixelDetectorManager* getDetectorManager() const override{ return m_detectorManager; }
44 
45  private:
46  GeoModelIO::ReadGeoModel* m_sqliteReader{nullptr};
47  InDetDD::PixelDetectorManager* m_detectorManager{nullptr}; //ownership handed to caller
48  std::unique_ptr<PixelGeometryManager> m_geometryManager;
49 
51  std::shared_ptr<std::map<std::string, GeoFullPhysVol*>> m_mapFPV;
52  std::shared_ptr<std::map<std::string, GeoAlignableTransform*>> m_mapAX;
53 
54  void doChecks();
55 };
56 
57 #endif
PixelDetectorFactoryLite::create
virtual void create(GeoPhysVol *world) override
Definition: PixelDetectorFactoryLite.cxx:111
PixelDetectorFactoryLite::m_geometryManager
std::unique_ptr< PixelGeometryManager > m_geometryManager
Definition: PixelDetectorFactoryLite.h:48
InDetDD::DetectorFactoryBase
Definition: InDetDetectorFactoryBase.h:20
PixelGeometryManager
Definition: PixelGeometryManager.h:28
PixelSwitches
Definition: PixelSwitches.h:13
PixelDetectorFactoryLite::PixelDetectorFactoryLite
PixelDetectorFactoryLite()=delete
PixelDetectorFactoryLite::m_useDynamicAlignFolders
bool m_useDynamicAlignFolders
Definition: PixelDetectorFactoryLite.h:50
PixelDetectorFactoryLite::m_mapFPV
std::shared_ptr< std::map< std::string, GeoFullPhysVol * > > m_mapFPV
Definition: PixelDetectorFactoryLite.h:51
PixelDetectorFactoryLite::PixelDetectorFactoryLite
PixelDetectorFactoryLite(const PixelDetectorFactoryLite &right)=delete
InDetDD_Defs.h
PixelDetectorManager.h
PixelDetectorFactoryLite::operator=
const PixelDetectorFactoryLite & operator=(const PixelDetectorFactoryLite &right)=delete
PixelDetectorFactoryLite::doChecks
void doChecks()
Definition: PixelDetectorFactoryLite.cxx:200
InDetDD::PixelDetectorManager
Definition: PixelDetectorManager.h:47
GeoModelIO
Definition: IGeoDbTagSvc.h:12
PixelGeoModelAthenaComps
Class to hold various Athena components.
Definition: PixelGeoModelAthenaComps.h:16
PixelDetectorFactoryLite::m_mapAX
std::shared_ptr< std::map< std::string, GeoAlignableTransform * > > m_mapAX
Definition: PixelDetectorFactoryLite.h:52
InDetDetectorFactoryBase.h
PixelDetectorFactoryLite
Definition: PixelDetectorFactoryLite.h:28
PixelDetectorFactoryLite::m_sqliteReader
GeoModelIO::ReadGeoModel * m_sqliteReader
Definition: PixelDetectorFactoryLite.h:46
PixelDetectorFactoryLite::getDetectorManager
virtual const InDetDD::PixelDetectorManager * getDetectorManager() const override
Definition: PixelDetectorFactoryLite.h:43
checker_macros.h
Define macros for attributes used to control the static checker.
PixelDetectorFactoryLite::m_detectorManager
InDetDD::PixelDetectorManager * m_detectorManager
Definition: PixelDetectorFactoryLite.h:47