ATLAS Offline Software
MuonSpectrometer
MuonDetDescr
MuonAGDDBase
src
sTGC_TechHandler.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
#include "
MuonAGDDBase/sTGC_TechHandler.h
"
6
#include "
AGDDModel/AGDDParameterStore.h
"
7
#include "
AGDDControl/AGDDController.h
"
8
#include "
MuonAGDDDescription/sTGC_Technology.h
"
9
#include <iostream>
10
11
12
sTGC_TechHandler::sTGC_TechHandler
(
const
std::string&
s
,
13
AGDDController
&
c
)
14
:
XMLHandler
(
s
,
c
)
15
{
16
}
17
18
void
sTGC_TechHandler::ElementHandle
(
AGDDController
&
c
,
19
xercesc::DOMNode *
t
)
20
{
21
22
// std::cout<<" this is sTGC_TechHandler::Handle"<<std::endl;
23
24
bool
ret=
true
;
25
std::string
name
=
getAttributeAsString
(
c
,
t
,
"type"
,ret);
26
27
MuonGM::sTGC_Technology
*tech=
new
MuonGM::sTGC_Technology
(
name
,
c
.GetDetectorStore());
28
29
tech->
nlayers
=
getAttributeAsInt
(
c
,
t
,
"nLayers"
,ret);
30
tech->
thickness
=
getAttributeAsDouble
(
c
,
t
,
"Tck"
,ret);
31
tech->
gasThickness
=
getAttributeAsDouble
(
c
,
t
,
"gasTck"
,ret);
32
tech->
pcbThickness
=
getAttributeAsDouble
(
c
,
t
,
"pcbTck"
,ret);
33
tech->
pcbThickness150
=
getAttributeAsDouble
(
c
,
t
,
"pcbTck150"
,ret);
34
tech->
pcbThickness200
=
getAttributeAsDouble
(
c
,
t
,
"pcbTck200"
,ret);
35
tech->
coverThickness
=
getAttributeAsDouble
(
c
,
t
,
"coverTck"
,ret);
36
37
tech->
f4Thickness
=
getAttributeAsDouble
(
c
,
t
,
"f4"
,ret);
38
tech->
f5Thickness
=
getAttributeAsDouble
(
c
,
t
,
"f5"
,ret);
39
tech->
f6Thickness
=
getAttributeAsDouble
(
c
,
t
,
"f6"
,ret);
40
41
// std::cout<<" sTGC_Tech "<<name<<tech->nlayers<<" "<<tech->thickness<<" "<<tech->gasThickness<<" "<<tech->pcbThickness<<std::endl;
42
43
44
tech->
geoLevel
=
getAttributeAsInt
(
c
,
t
,
"geometryLevel"
,ret);
45
46
AGDDParameterStore
& prs =
c
.GetParameterStore();
47
if
(prs.
Exist
(
name
)) {
48
std::cout <<
" parameters for technology "
<<
name
<<
" already registered"
<< std::endl;
49
}
50
else
{
51
AGDDParameterBagsTGCTech
* paraBag =
new
AGDDParameterBagsTGCTech
();
52
paraBag->
thickness
= tech->
gasThickness
=
getAttributeAsDouble
(
c
,
t
,
"gasTck"
,ret);
53
paraBag->
stripPitch
= 3.2;
//eta
54
paraBag->
wirePitch
= 1.8;
//phi
55
paraBag->
stripWidth
= 2.7;
//eta
56
paraBag->
wireWidth
= 0.015;
//phi
57
prs.
RegisterParameterBag
(
name
, paraBag);
58
}
59
}
AGDDController.h
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
MuonGM::sTGC_Technology::pcbThickness200
double pcbThickness200
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:23
sTGC_TechHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition:
sTGC_TechHandler.cxx:18
sTGC_Technology.h
MuonGM::sTGC_Technology::geoLevel
int geoLevel
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:31
AGDDParameterStore::RegisterParameterBag
void RegisterParameterBag(const std::string &volName, AGDDParameterBag *paraBag)
Definition:
AGDDParameterStore.h:20
AGDDParameterBagsTGCTech::stripPitch
double stripPitch
Definition:
AGDDParameterBag.h:32
MuonGM::sTGC_Technology::f5Thickness
double f5Thickness
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:26
MuonGM::sTGC_Technology::thickness
double thickness
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:18
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
XMLHandler::getAttributeAsDouble
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition:
XMLHandler.cxx:78
AGDDParameterStore.h
AGDDController
Definition:
AGDDController.h:30
MuonGM::sTGC_Technology
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:16
AGDDParameterBagsTGCTech
Definition:
AGDDParameterBag.h:29
sTGC_TechHandler::sTGC_TechHandler
sTGC_TechHandler(const std::string &, AGDDController &c)
Definition:
sTGC_TechHandler.cxx:12
AGDDParameterBagsTGCTech::wirePitch
double wirePitch
Definition:
AGDDParameterBag.h:33
AGDDParameterBagsTGCTech::wireWidth
double wireWidth
Definition:
AGDDParameterBag.h:35
MuonGM::sTGC_Technology::nlayers
int nlayers
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:19
MuonGM::sTGC_Technology::f6Thickness
double f6Thickness
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:27
AGDDParameterBagsTGCTech::thickness
double thickness
Definition:
AGDDParameterBag.h:31
XMLHandler::getAttributeAsString
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition:
XMLHandler.cxx:69
MuonGM::sTGC_Technology::f4Thickness
double f4Thickness
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:25
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
XMLHandler
Definition:
XMLHandler.h:15
MuonGM::sTGC_Technology::coverThickness
double coverThickness
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:24
MuonGM::sTGC_Technology::gasThickness
double gasThickness
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:20
MuonGM::sTGC_Technology::pcbThickness150
double pcbThickness150
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:22
XMLHandler::getAttributeAsInt
int getAttributeAsInt(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition:
XMLHandler.cxx:89
MuonGM::sTGC_Technology::pcbThickness
double pcbThickness
Definition:
MuonAGDDDescription/MuonAGDDDescription/sTGC_Technology.h:21
AGDDParameterStore
Definition:
AGDDParameterStore.h:14
AGDDParameterBagsTGCTech::stripWidth
double stripWidth
Definition:
AGDDParameterBag.h:34
sTGC_TechHandler.h
python.compressB64.c
def c
Definition:
compressB64.py:93
AGDDParameterStore::Exist
bool Exist(const std::string &volName) const
Definition:
AGDDParameterStore.h:33
Generated on Thu Nov 7 2024 21:26:31 for ATLAS Offline Software by
1.8.18