ATLAS Offline Software
MuonDetectorFactory001.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MuonDetectorFactory001_H
6 #define MuonDetectorFactory001_H
7 
10 #include "GeoModelKernel/GeoVDetectorFactory.h"
11 #include <string>
12 
13 class GeoPhysVol;
14 class StoreGateSvc;
15 class IRDBAccessSvc;
16 
17 namespace MuonGM {
18 
19  class MuonSystemDescription;
20 
21  class MuonDetectorFactory001 : public GeoVDetectorFactory {
22 
23  typedef std::map<std::string, std::string> AltAsciiDBMap;
24 
25  public:
26  // Constructor:
28 
29  // Destructor:
31 
32  // Creates the raw geometry tree: required,
33  virtual void create(GeoPhysVol *world) override;
34 
35  virtual const MuonDetectorManager *getDetectorManager() const override;
37 
38 
39 
40  inline void setDBAtlasVersion(const std::string&v);
41  inline void setDBMuonVersion(const std::string&v);
42  inline void setDBkey(const std::string&v);
43  inline void setDBnode(const std::string&v);
44 
45  inline void setLayout(const std::string& str);
46  inline void setCutoutsFlag(int);
47  inline void setCutoutsBogFlag(int);
48  inline void setCtbBisFlag(int);
49  inline void setRDBAccess(IRDBAccessSvc *access);
50  inline void setAltAsciiDBMap(const AltAsciiDBMap& asciidbmap);
51  inline void setUseRDB(int rdb);
52 
53  inline void setMinimalGeoFlag(int minimalGeo);
54 
55  inline void setSelection(const std::vector<std::string>&,
56  const std::vector<int>&,
57  const std::vector<int>&);
58  inline void setDumpMemoryBreakDown(bool value);
59  inline void setCacheFillingFlag(int value);
60  inline void setMdtDeformationFlag(int mdtDeformationFlag);
61  inline void setNswAsBuiltParaFlag(int nswAsBuiltParaFlag);
62  inline void setFineClashFixingFlag(int value);
63  inline void hasCSC(bool value);
64  inline void hasSTgc(bool value);
65  inline void hasMM(bool value);
66  inline void setNSWAsBuiltAsciiPath(const std::string &, const std::string &);
67 
68  inline void disableBEEShift(bool flag);
69  inline bool BEEShiftDisabled() const;
70 
71 
72  private:
73 
74 
75  std::string m_DBAtlasVersion{};
76  std::string m_DBMuonVersion{};
77  std::string m_DBkey{};
78  std::string m_DBnode{};
79 
80  std::string m_layout{};
84  int m_rdb{1};
86 
87  bool m_dumpMemoryBreakDown{false};
89  bool m_hasCSC{true};
90  bool m_hasSTgc{true};
91  bool m_hasMM{true};
92 
93  bool m_disableBEEShift{false};
94 
95  std::vector<std::string> m_selectedStations;
96  std::vector<int> m_selectedStEta;
97  std::vector<int> m_selectedStPhi;
98 
99  std::unique_ptr<MuonSystemDescription> m_muon;
104  };
105 
108  void MuonDetectorFactory001::setDBkey(const std::string&v) { m_DBkey = v; }
109  void MuonDetectorFactory001::setDBnode(const std::string&v) { m_DBnode = v; }
110  void MuonDetectorFactory001::setLayout(const std::string&str) { m_layout = str; }
114  void MuonDetectorFactory001::setUseRDB(int rdb) { m_rdb = rdb; }
117  void MuonDetectorFactory001::setMinimalGeoFlag(int minimalGeo) { m_minimalGeoFlag = minimalGeo; }
118 
119  void MuonDetectorFactory001::setSelection(const std::vector<std::string>& vst,
120  const std::vector<int>& veta,
121  const std::vector<int>& vphi) {
122  m_selectedStations = vst;
123  m_selectedStEta = veta;
124  m_selectedStPhi = vphi;
125  }
126 
134 
135 
136 
137 } // namespace MuonGM
138 
139 #endif
MuonGM::MuonDetectorFactory001::getDetectorManager
virtual const MuonDetectorManager * getDetectorManager() const override
Definition: MuonDetectorFactory001.cxx:91
MuonGM::MuonDetectorFactory001::m_hasSTgc
bool m_hasSTgc
Definition: MuonDetectorFactory001.h:90
MuonGM::MuonDetectorFactory001::m_DBMuonVersion
std::string m_DBMuonVersion
Definition: MuonDetectorFactory001.h:76
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
MuonGM::MuonDetectorFactory001::setCutoutsFlag
void setCutoutsFlag(int)
Definition: MuonDetectorFactory001.h:111
MuonGM::MuonDetectorFactory001::setDBnode
void setDBnode(const std::string &v)
Definition: MuonDetectorFactory001.h:109
MuonGM::MuonDetectorFactory001::setNswAsBuiltParaFlag
void setNswAsBuiltParaFlag(int nswAsBuiltParaFlag)
MuonGM::MuonDetectorFactory001::m_includeCtbBis
int m_includeCtbBis
Definition: MuonDetectorFactory001.h:83
MuonGM::MuonDetectorFactory001::m_DBAtlasVersion
std::string m_DBAtlasVersion
Definition: MuonDetectorFactory001.h:75
MuonGM::MuonDetectorFactory001::setAltAsciiDBMap
void setAltAsciiDBMap(const AltAsciiDBMap &asciidbmap)
Definition: MuonDetectorFactory001.h:116
MuonGM::MuonDetectorFactory001::m_minimalGeoFlag
int m_minimalGeoFlag
Definition: MuonDetectorFactory001.h:85
MuonGM::MuonDetectorFactory001::setLayout
void setLayout(const std::string &str)
Definition: MuonDetectorFactory001.h:110
MuonGM::MuonDetectorFactory001::m_enableFineClashFixing
int m_enableFineClashFixing
Definition: MuonDetectorFactory001.h:88
MuonGM::MuonDetectorFactory001::hasSTgc
void hasSTgc(bool value)
Definition: MuonDetectorFactory001.h:130
athena.value
value
Definition: athena.py:124
MuonGM::MuonDetectorFactory001::m_hasMM
bool m_hasMM
Definition: MuonDetectorFactory001.h:91
MuonGM::MuonDetectorFactory001::BEEShiftDisabled
bool BEEShiftDisabled() const
Definition: MuonDetectorFactory001.h:133
MuonGM::MuonDetectorFactory001::m_pRDBAccess
IRDBAccessSvc * m_pRDBAccess
Definition: MuonDetectorFactory001.h:102
MuonGM::MuonDetectorFactory001::m_rdb
int m_rdb
Definition: MuonDetectorFactory001.h:84
MuonGM::MuonDetectorFactory001::setNSWAsBuiltAsciiPath
void setNSWAsBuiltAsciiPath(const std::string &, const std::string &)
MuonGM::MuonDetectorFactory001::setMdtDeformationFlag
void setMdtDeformationFlag(int mdtDeformationFlag)
MuonGM::MuonDetectorFactory001::setDBMuonVersion
void setDBMuonVersion(const std::string &v)
Definition: MuonDetectorFactory001.h:107
MuonGM::MuonDetectorFactory001::m_DBnode
std::string m_DBnode
Definition: MuonDetectorFactory001.h:78
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
MuonGM::MuonDetectorFactory001::disableBEEShift
void disableBEEShift(bool flag)
Definition: MuonDetectorFactory001.h:132
MuonGM::MuonDetectorFactory001::m_altAsciiDBMap
AltAsciiDBMap m_altAsciiDBMap
Definition: MuonDetectorFactory001.h:103
IRDBAccessSvc
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
Definition: IRDBAccessSvc.h:42
master.flag
bool flag
Definition: master.py:29
MuonGM::MuonDetectorFactory001::setSelection
void setSelection(const std::vector< std::string > &, const std::vector< int > &, const std::vector< int > &)
Definition: MuonDetectorFactory001.h:119
MuonGM::MuonDetectorFactory001::setCutoutsBogFlag
void setCutoutsBogFlag(int)
Definition: MuonDetectorFactory001.h:112
MuonGM::MuonDetectorFactory001::MuonDetectorFactory001
MuonDetectorFactory001(StoreGateSvc *pDetStore)
Definition: MuonDetectorFactory001.cxx:71
MuonGM::MuonDetectorFactory001::setFineClashFixingFlag
void setFineClashFixingFlag(int value)
Definition: MuonDetectorFactory001.h:128
MuonGM::MuonDetectorFactory001::setRDBAccess
void setRDBAccess(IRDBAccessSvc *access)
Definition: MuonDetectorFactory001.h:115
MuonGM::MuonDetectorFactory001::setCtbBisFlag
void setCtbBisFlag(int)
Definition: MuonDetectorFactory001.h:113
MuonGM::MuonDetectorFactory001::m_manager
MuonDetectorManager * m_manager
Definition: MuonDetectorFactory001.h:100
python.dummyaccess.access
def access(filename, mode)
Definition: dummyaccess.py:18
MuonGM::MuonDetectorFactory001::setMinimalGeoFlag
void setMinimalGeoFlag(int minimalGeo)
Definition: MuonDetectorFactory001.h:117
MuonGM::MuonDetectorFactory001::setDumpMemoryBreakDown
void setDumpMemoryBreakDown(bool value)
Definition: MuonDetectorFactory001.h:127
MuonGM::MuonDetectorFactory001::m_selectedStPhi
std::vector< int > m_selectedStPhi
Definition: MuonDetectorFactory001.h:97
MuonGM::MuonDetectorFactory001::setDBAtlasVersion
void setDBAtlasVersion(const std::string &v)
Definition: MuonDetectorFactory001.h:106
MuonGM::MuonDetectorFactory001::m_selectedStEta
std::vector< int > m_selectedStEta
Definition: MuonDetectorFactory001.h:96
MuonGM::MuonDetectorFactory001::m_disableBEEShift
bool m_disableBEEShift
Definition: MuonDetectorFactory001.h:93
MuonGM::MuonDetectorFactory001::create
virtual void create(GeoPhysVol *world) override
Definition: MuonDetectorFactory001.cxx:94
MuonGM::MuonDetectorFactory001::~MuonDetectorFactory001
~MuonDetectorFactory001()
MuonGM::MuonDetectorFactory001::setCacheFillingFlag
void setCacheFillingFlag(int value)
MuonDetectorManager.h
MuonGM::MuonDetectorFactory001::m_includeCutoutsBog
int m_includeCutoutsBog
Definition: MuonDetectorFactory001.h:82
MuonGM::MuonDetectorFactory001
Definition: MuonDetectorFactory001.h:21
MuonGM::MuonDetectorFactory001::hasCSC
void hasCSC(bool value)
Definition: MuonDetectorFactory001.h:129
python.PyAthena.v
v
Definition: PyAthena.py:154
MuonGM::MuonDetectorFactory001::AltAsciiDBMap
std::map< std::string, std::string > AltAsciiDBMap
Definition: MuonDetectorFactory001.h:23
MuonGM::MuonDetectorFactory001::m_includeCutouts
int m_includeCutouts
Definition: MuonDetectorFactory001.h:81
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:50
MuonGM::MuonDetectorFactory001::m_dumpMemoryBreakDown
bool m_dumpMemoryBreakDown
Definition: MuonDetectorFactory001.h:87
MuonGM::MuonDetectorFactory001::setUseRDB
void setUseRDB(int rdb)
Definition: MuonDetectorFactory001.h:114
MuonGM::MuonDetectorFactory001::m_muon
std::unique_ptr< MuonSystemDescription > m_muon
Definition: MuonDetectorFactory001.h:99
MuonGM::MuonDetectorFactory001::hasMM
void hasMM(bool value)
Definition: MuonDetectorFactory001.h:131
MuonGM::MuonDetectorFactory001::setDBkey
void setDBkey(const std::string &v)
Definition: MuonDetectorFactory001.h:108
MuonGM::MuonDetectorFactory001::m_selectedStations
std::vector< std::string > m_selectedStations
Definition: MuonDetectorFactory001.h:95
str
Definition: BTagTrackIpAccessor.cxx:11
MuonGM::MuonDetectorFactory001::m_DBkey
std::string m_DBkey
Definition: MuonDetectorFactory001.h:77
MuonGM::MuonDetectorFactory001::m_pDetStore
StoreGateSvc * m_pDetStore
Definition: MuonDetectorFactory001.h:101
MuonGM::MuonDetectorFactory001::m_layout
std::string m_layout
Definition: MuonDetectorFactory001.h:80
MuonGM::MuonDetectorFactory001::m_hasCSC
bool m_hasCSC
Definition: MuonDetectorFactory001.h:89