ATLAS Offline Software
MuonSpectrometer
MuonDetDescr
MuonAGDDDescription
src
sTGCDetectorDescription.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "
MuonAGDDDescription/sTGCDetectorDescription.h
"
7
#include "
MuonAGDDDescription/sTGC_Technology.h
"
8
#include "
AGDDModel/AGDDParameterStore.h
"
9
#include "
AGDDKernel/AGDDDetectorStore.h
"
10
11
#include <sstream>
12
13
14
sTGCDetectorDescription::sTGCDetectorDescription
(
const
std::string&
s
,
15
AGDDDetectorStore
&
ds
):
16
AGDDDetector
(
s
,
"sTGC"
),
17
m_yCutout(0),
18
m_ds (
ds
)
19
{
20
}
21
22
void
sTGCDetectorDescription::Register
()
23
{
24
m_ds
.
RegisterDetector
(
this
);
25
}
26
27
28
void
sTGCDetectorDescription::SetDetectorAddress
(
AGDDDetectorPositioner
*
p
)
29
{
30
//std::cout<<"This is AGDDsTGC::SetDetectorAddress "<<GetName()<<" "<<
31
// m_sType;
32
p
->ID.detectorType=
"sTGC"
;
33
p
->theDetector=
this
;
34
std::stringstream stringone;
35
char
side
=
'A'
;
36
if
(
p
->ID.sideIndex<0)
side
=
'C'
;
37
int
ctype=0;
38
int
ml=1;
39
std::string_view subt =
subType
();
40
if
(subt[1]==
'S'
&& subt[3]==
'P'
) ml=2;
41
else
if
(subt[1]==
'L'
&& subt[3]==
'C'
) ml=2;
42
if
(subt[1]==
'S'
) ctype=3;
43
else
if
(subt[1]==
'L'
) ctype=1;
44
stringone<<
"sTG"
<<ctype<<
'-'
<<subt.substr(2,1)<<
'-'
<<ml<<
"-phi"
<<
p
->ID.phiIndex+1<<
side
<<std::endl;
45
//std::cout<<" stringone "<<stringone.str()<<std::endl;
46
p
->ID.detectorAddress=stringone.str();
47
}
48
49
MuonGM::sTGC_Technology
*
sTGCDetectorDescription::GetTechnology
()
50
{
51
MuonGM::sTGC_Technology
*
t
=
52
dynamic_cast<
MuonGM::sTGC_Technology
*
>
(
m_ds
.
GetTechnology
(
"sTGC_1"
));
//This needs to be the tech name not the chamber name
53
54
return
t
;
55
}
AGDDDetectorStore.h
checkxAOD.ds
ds
Definition:
Tools/PyUtils/bin/checkxAOD.py:260
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
sTGC_Technology.h
sTGCDetectorDescription::SetDetectorAddress
virtual void SetDetectorAddress(AGDDDetectorPositioner *) override
Definition:
sTGCDetectorDescription.cxx:28
AGDDDetectorPositioner
Definition:
AGDDDetectorPositioner.h:39
AGDDDetectorStore::RegisterDetector
void RegisterDetector(AGDDDetector *)
Definition:
AGDDDetectorStore.cxx:17
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
AGDDParameterStore.h
sTGCDetectorDescription::sTGCDetectorDescription
sTGCDetectorDescription(const std::string &s, AGDDDetectorStore &ds)
Definition:
sTGCDetectorDescription.cxx:14
sTGCDetectorDescription::m_ds
AGDDDetectorStore & m_ds
Definition:
sTGCDetectorDescription.h:117
TRT::Hit::side
@ side
Definition:
HitInfo.h:83
sTGCDetectorDescription.h
MuonGM::sTGC_Technology
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:16
AGDDDetector
Definition:
AGDDDetector.h:15
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
sTGCDetectorDescription::Register
void Register()
Definition:
sTGCDetectorDescription.cxx:22
AGDDDetector::subType
const std::string & subType() const
Definition:
AGDDDetector.h:37
sTGCDetectorDescription::GetTechnology
MuonGM::sTGC_Technology * GetTechnology()
Definition:
sTGCDetectorDescription.cxx:49
AGDDDetectorStore
Definition:
AGDDDetectorStore.h:18
AGDDDetectorStore::GetTechnology
AGDDTechnology * GetTechnology(const std::string &s)
Definition:
AGDDDetectorStore.h:22
Generated on Sun Dec 22 2024 21:18:31 for ATLAS Offline Software by
1.8.18