|
ATLAS Offline Software
|
Go to the documentation of this file.
18 if (
m_svc.retrieve().isFailure()) {
24 for (
const auto& vl_iter: vl)
41 for (
unsigned int i=0;
i<ps.size();
i++)
46 if (
dp->ID.detectorType !=
"sTGC")
continue;
47 std::string_view dad=
dp->ID.detectorAddress;
51 if (
dtype==
'3') dctype=
'S';
52 if (dctype!=
type)
continue;
53 int deta=
myatoi(dad.substr(5,1));
54 if (deta!=ieta)
continue;
55 int dphi=
myatoi(dad.substr(12,1));
56 if (dphi!=iphi)
continue;
57 int dlayer=
myatoi(dad.substr(7,1));
58 if (dlayer!=
layer)
continue;
60 if (dside!=
side)
continue;
66 if (!tgc) std::cout<<
" could not find a positioned sTGC!!!! "<<std::endl;
77 for (
unsigned int i=0;
i<ps.size();
i++)
82 if (
dp->ID.detectorType !=
"sTGC")
continue;
83 std::string_view dad=
dp->ID.detectorAddress;
87 if (
dtype==
'3') dctype=
'S';
88 if (dctype!=
type)
continue;
89 int deta=
myatoi(dad.substr(5,1));
90 if (deta!=ieta)
continue;
91 int dphi=
myatoi(dad.substr(12,1));
92 if (dphi!=iphi)
continue;
93 int dlayer=
myatoi(dad.substr(7,1));
94 if (dlayer!=
layer)
continue;
96 if (dside!=
side)
continue;
102 if (!tgc) std::cout<<
" could not find a positioned sTGC!!!! "<<std::endl;
122 if(pair.first ==
type)
return pair.second;
130 if(pair.first ==
type)
return pair.second;
137 return m_svc->getController();
AGDDPositionedDetector Get_sTGCPositionedDetector(char type, int ieta, int iphi, int layer=1, char side='A')
A pointer together with a movable lock.
sTGCMapSubType m_sTGCListSubType
IAGDDtoGeoSvc::LockedController Get_Controller()
sTGCDetectorDescription * Get_sTGCDetectorSubType(const std::string &type)
std::map< std::string, AGDDDetector * > detectorList
ServiceHandle< IAGDDtoGeoSvc > m_svc
sTGCDetectorDescription * Get_sTGCDetectorType(const std::string &type)
int myatoi(std::string_view str)
sTGCDetectorDescription * Get_sTGCDetector(char type, int ieta, int iphi, int layer=1, char side='A')
std::pair< MMDetectorDescription *, AGDDDetectorPositioner * > AGDDPositionedDetector