ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_ComponentFactory.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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
14const double SCT_ComponentFactory::s_epsilon = 1.0e-6 * Gaudi::Units::mm;
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
28
29std::string
31{
32 std::ostringstream str;
33 str << i;
34 return str.str();
35}
36
37double
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{};
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated SCT in...
SCT_ComponentFactory(const std::string &name, InDetDD::SCT_DetectorManager *detectorManager, SCT_GeometryManager *geometryManager, SCT_MaterialManager *materials)
static const double s_epsilon
std::string intToString(int i) const
InDetDD::SCT_DetectorManager * m_detectorManager
SCT_GeometryManager * m_geometryManager
SCT_MaterialManager * m_materials
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)
std::shared_ptr< std::map< std::string, GeoFullPhysVol * > > m_mapFPV
std::shared_ptr< std::map< std::string, GeoAlignableTransform * > > m_mapAX
GeoModelIO::ReadGeoModel * m_sqliteReader
STL namespace.