ATLAS Offline Software
MMDetectorHelper.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 MMDetectorHelper_H
6 #define MMDetectorHelper_H
7 
11 #include "GaudiKernel/ServiceHandle.h"
12 #include <map>
13 #include <string>
14 
17 
18 typedef std::map<std::string,MMDetectorDescription*> MicromegasMap;
19 typedef std::map<std::string,MMDetectorDescription*> MicromegasMapSubType;
20 typedef std::map<std::string,MMDetectorDescription*>::const_iterator MicromegasIterator;
21 
22 typedef std::pair<MMDetectorDescription*,AGDDDetectorPositioner*> AGDDPositionedDetector;
23 
25 public:
29 
30  MMDetectorDescription* Get_MMDetectorType(const std::string& type);
32  MMDetectorDescription* Get_MMDetector(char type,int ieta,int iphi,int layer=1,char side='A');
33  AGDDPositionedDetector Get_MMPositionedDetector(char type,int ieta,int iphi,int layer=1,char side='A');
34 
36 
37 private:
40  ServiceHandle<IAGDDtoGeoSvc> m_svc {"AGDDtoGeoSvc", "MMDetectorHelper"};
41 };
42 
43 #endif
MMDetectorHelper::MM_begin
MicromegasIterator MM_begin()
Definition: MMDetectorHelper.h:27
MicromegasMap
std::map< std::string, MMDetectorDescription * > MicromegasMap
Definition: MMDetectorHelper.h:16
MicromegasMapSubType
std::map< std::string, MMDetectorDescription * > MicromegasMapSubType
Definition: MMDetectorHelper.h:19
CxxUtils::LockedPointer
A pointer together with a movable lock.
Definition: LockedPointer.h:35
MMDetectorHelper::Get_MMDetectorType
MMDetectorDescription * Get_MMDetectorType(const std::string &type)
Definition: MMDetectorHelper.cxx:113
MMDetectorHelper::m_svc
ServiceHandle< IAGDDtoGeoSvc > m_svc
Definition: MMDetectorHelper.h:40
AGDDDetectorPositioner
Definition: AGDDDetectorPositioner.h:39
TRT::Hit::side
@ side
Definition: HitInfo.h:83
GeoPrimitives.h
MMDetectorHelper::Get_Controller
IAGDDtoGeoSvc::LockedController Get_Controller()
Definition: MMDetectorHelper.cxx:126
MMDetectorDescription
Definition: MMDetectorDescription.h:45
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
MMDetectorHelper::m_MicromegasList
MicromegasMap m_MicromegasList
Definition: MMDetectorHelper.h:38
MMDetectorHelper::Get_MMDetector
MMDetectorDescription * Get_MMDetector(char type, int ieta, int iphi, int layer=1, char side='A')
Definition: MMDetectorHelper.cxx:41
MMDetectorHelper::MMDetectorHelper
MMDetectorHelper()
Definition: MMDetectorHelper.cxx:15
MMDetectorHelper::Get_MMPositionedDetector
AGDDPositionedDetector Get_MMPositionedDetector(char type, int ieta, int iphi, int layer=1, char side='A')
Definition: MMDetectorHelper.cxx:76
IAGDD2GeoSvc.h
MMDetectorHelper::MM_end
MicromegasIterator MM_end()
Definition: MMDetectorHelper.h:28
MicromegasIterator
std::map< std::string, MMDetectorDescription * >::const_iterator MicromegasIterator
Definition: MMDetectorHelper.h:20
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MMDetectorHelper::Get_MMDetectorSubType
MMDetectorDescription * Get_MMDetectorSubType(const std::string &type)
Definition: MMDetectorHelper.cxx:119
MMDetectorHelper
Definition: MMDetectorHelper.h:24
MMDetectorHelper::m_MicromegasListSubType
MicromegasMapSubType m_MicromegasListSubType
Definition: MMDetectorHelper.h:39
AGDDPositionedDetector
std::pair< MMDetectorDescription *, AGDDDetectorPositioner * > AGDDPositionedDetector
Definition: MMDetectorHelper.h:22
ServiceHandle< IAGDDtoGeoSvc >