ATLAS Offline Software
SCT_ComponentFactory.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "GaudiKernel/SystemOfUnits.h"
7 #include "GeoModelRead/ReadGeoModel.h"
8 #include <sstream>
9 #include <string>
10 #include <utility>
11 
13 
15 
17  InDetDD::SCT_DetectorManager* detectorManager,
18  SCT_GeometryManager* geometryManager,
19  SCT_MaterialManager* materials)
20  : m_detectorManager(detectorManager),
21  m_geometryManager(geometryManager),
22  m_materials(materials),
23  m_name(name)
24 {}
25 
27 {}
28 
29 std::string
31 {
32  std::ostringstream str;
33  str << i;
34  return str.str();
35 }
36 
37 double
39 {
40  return s_epsilon;
41 }
42 
43 
45  InDetDD::SCT_DetectorManager* detectorManager,
46  SCT_GeometryManager* geometryManager,
47  SCT_MaterialManager* materials,
48  GeoModelIO::ReadGeoModel* sqliteReader,
49  std::shared_ptr<std::map<std::string, GeoFullPhysVol*>> mapFPV,
50  std::shared_ptr<std::map<std::string, GeoAlignableTransform*>> mapAX) :
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_MaterialManager
Definition: SCT_MaterialManager.h:21
InDetDD::SCT_DetectorManager
Definition: SCT_DetectorManager.h:49
SCT_ComponentFactory
Definition: SCT_ComponentFactory.h:27
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: SCT_ComponentFactory.cxx:44
SCT_ComponentFactory::epsilon
double epsilon() const
Definition: SCT_ComponentFactory.cxx:38
SCT_ComponentFactory.h
SCT_ComponentFactory::~SCT_ComponentFactory
virtual ~SCT_ComponentFactory()
Definition: SCT_ComponentFactory.cxx:26
lumiFormat.i
int i
Definition: lumiFormat.py:85
SCT_ComponentFactory::intToString
std::string intToString(int i) const
Definition: SCT_ComponentFactory.cxx:30
SCT_ComponentFactory::s_epsilon
static const double s_epsilon
Definition: SCT_ComponentFactory.h:50
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
SCT_ComponentFactory::SCT_ComponentFactory
SCT_ComponentFactory(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
Definition: SCT_ComponentFactory.cxx:16
str
Definition: BTagTrackIpAccessor.cxx:11
SCT_GeometryManager
Definition: SCT_GeometryManager.h:25