#include <MMDetectorHelper.h>
Definition at line 24 of file MMDetectorHelper.h.
◆ MMDetectorHelper()
MMDetectorHelper::MMDetectorHelper |
( |
| ) |
|
◆ Get_Controller()
◆ Get_MMDetector()
MMDetectorDescription * MMDetectorHelper::Get_MMDetector |
( |
char |
type, |
|
|
int |
ieta, |
|
|
int |
iphi, |
|
|
int |
layer = 1 , |
|
|
char |
side = 'A' |
|
) |
| |
Definition at line 41 of file MMDetectorHelper.cxx.
47 for (
unsigned int i=0;
i<ps.size();
i++)
52 if (
dp->ID.detectorType !=
"Micromegas")
continue;
53 std::string_view dad=
dp->ID.detectorAddress;
57 if (
dtype==
'3') dctype=
'S';
58 if (dctype!=
type)
continue;
59 int deta=
myatoi(dad.substr(5,1));
60 if (deta!=ieta)
continue;
61 int dphi=
myatoi(dad.substr(12,1));
62 if (dphi!=iphi)
continue;
63 int dlayer=
myatoi(dad.substr(7,1));
64 if (dlayer!=
layer)
continue;
66 if (dside!=
side)
continue;
72 if (!
mm) std::cout<<
" could not find a positioned Micromegas!!!! "<<std::endl;
◆ Get_MMDetectorSubType()
◆ Get_MMDetectorType()
◆ Get_MMPositionedDetector()
AGDDPositionedDetector MMDetectorHelper::Get_MMPositionedDetector |
( |
char |
type, |
|
|
int |
ieta, |
|
|
int |
iphi, |
|
|
int |
layer = 1 , |
|
|
char |
side = 'A' |
|
) |
| |
Definition at line 76 of file MMDetectorHelper.cxx.
83 for (
unsigned int i=0;
i<ps.size();
i++)
88 if (
dp->ID.detectorType !=
"Micromegas")
continue;
89 std::string_view dad=
dp->ID.detectorAddress;
93 if (
dtype==
'3') dctype=
'S';
94 if (dctype!=
type)
continue;
95 int deta=
myatoi(dad.substr(5,1));
96 if (deta!=ieta)
continue;
97 int dphi=
myatoi(dad.substr(12,1));
98 if (dphi!=iphi)
continue;
99 int dlayer=
myatoi(dad.substr(7,1));
100 if (dlayer!=
layer)
continue;
102 if (dside!=
side)
continue;
108 if (!
mm) std::cout<<
" could not find a positioned Micromegas!!!! "<<std::endl;
◆ MM_begin()
◆ MM_end()
◆ m_MicromegasList
◆ m_MicromegasListSubType
◆ m_svc
The documentation for this class was generated from the following files: