ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonDetDescr
MuonAGDDBase
src
mm_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/mm_TechHandler.h
"
6
#include "
AGDDModel/AGDDParameterStore.h
"
7
#include "
AGDDControl/AGDDController.h
"
8
#include "
MuonAGDDDescription/MM_Technology.h
"
9
#include <iostream>
10
11
12
13
mm_TechHandler::mm_TechHandler
(
const
std::string& s,
14
AGDDController
& c)
15
:
XMLHandler
(s, c)
16
{
17
}
18
19
void
mm_TechHandler::ElementHandle
(
AGDDController
& c,
20
xercesc::DOMNode *t)
21
{
22
23
// std::cout<<" this is mm_TechHandler::Handle"<<std::endl;
24
25
bool
ret=
true
;
26
std::string name=
getAttributeAsString
(c, t,
"type"
,ret);
27
28
MuonGM::MM_Technology
*tech=
new
MuonGM::MM_Technology
(name, c.GetDetectorStore());
29
30
tech->
nlayers
=
getAttributeAsInt
(c, t,
"nLayers"
,ret);
31
tech->
thickness
=
getAttributeAsDouble
(c, t,
"Tck"
,ret);
32
tech->
gasThickness
=
getAttributeAsDouble
(c, t,
"gasTck"
,ret);
33
tech->
pcbThickness
=
getAttributeAsDouble
(c, t,
"driftPcbTck"
,ret);
34
tech->
roThickness
=
getAttributeAsDouble
(c, t,
"ROPcbTck"
,ret);
35
36
tech->
f1Thickness
=
getAttributeAsDouble
(c, t,
"f1"
,ret);
37
tech->
f2Thickness
=
getAttributeAsDouble
(c, t,
"f2"
,ret);
38
tech->
f3Thickness
=
getAttributeAsDouble
(c, t,
"f3"
,ret);
39
40
41
42
tech->
geoLevel
=
getAttributeAsInt
(c, t,
"geometryLevel"
,ret);
43
44
AGDDParameterStore
& prs = c.GetParameterStore();
45
if
(prs.
Exist
(name)) {
46
std::cout <<
" parameters for technology "
<< name <<
" already registered"
<< std::endl;
47
}
48
else
{
49
AGDDParameterBagMMTech
* paraBag =
new
AGDDParameterBagMMTech
();
50
paraBag->
thickness
= tech->
gasThickness
=
getAttributeAsDouble
(c, t,
"gasTck"
,ret);
51
paraBag->
pitchSS
= 0.425;
//small sector
52
paraBag->
pitchLS
= 0.445;
//large sector
53
prs.
RegisterParameterBag
(name, paraBag);
54
}
55
}
AGDDController.h
AGDDParameterStore.h
MM_Technology.h
AGDDController
Definition
AGDDController.h:30
AGDDParameterBagMMTech
Definition
AGDDParameterBag.h:14
AGDDParameterBagMMTech::thickness
double thickness
Definition
AGDDParameterBag.h:16
AGDDParameterBagMMTech::pitchLS
double pitchLS
Definition
AGDDParameterBag.h:18
AGDDParameterBagMMTech::pitchSS
double pitchSS
Definition
AGDDParameterBag.h:17
AGDDParameterStore
Definition
AGDDParameterStore.h:14
AGDDParameterStore::Exist
bool Exist(const std::string &volName) const
Definition
AGDDParameterStore.h:33
AGDDParameterStore::RegisterParameterBag
void RegisterParameterBag(const std::string &volName, AGDDParameterBag *paraBag)
Definition
AGDDParameterStore.h:20
MuonGM::MM_Technology
Definition
MuonAGDDDescription/MuonAGDDDescription/MM_Technology.h:16
MuonGM::MM_Technology::pcbThickness
double pcbThickness
Definition
MuonAGDDDescription/MuonAGDDDescription/MM_Technology.h:21
MuonGM::MM_Technology::roThickness
double roThickness
Definition
MuonAGDDDescription/MuonAGDDDescription/MM_Technology.h:22
MuonGM::MM_Technology::thickness
double thickness
Definition
MuonAGDDDescription/MuonAGDDDescription/MM_Technology.h:18
MuonGM::MM_Technology::nlayers
int nlayers
Definition
MuonAGDDDescription/MuonAGDDDescription/MM_Technology.h:19
MuonGM::MM_Technology::f3Thickness
double f3Thickness
Definition
MuonAGDDDescription/MuonAGDDDescription/MM_Technology.h:25
MuonGM::MM_Technology::f1Thickness
double f1Thickness
Definition
MuonAGDDDescription/MuonAGDDDescription/MM_Technology.h:23
MuonGM::MM_Technology::gasThickness
double gasThickness
Definition
MuonAGDDDescription/MuonAGDDDescription/MM_Technology.h:20
MuonGM::MM_Technology::geoLevel
int geoLevel
Definition
MuonAGDDDescription/MuonAGDDDescription/MM_Technology.h:27
MuonGM::MM_Technology::f2Thickness
double f2Thickness
Definition
MuonAGDDDescription/MuonAGDDDescription/MM_Technology.h:24
XMLHandler::getAttributeAsInt
int getAttributeAsInt(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:89
XMLHandler::getAttributeAsDouble
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:78
XMLHandler::XMLHandler
XMLHandler(const std::string &n, AGDDController &c)
Definition
XMLHandler.cxx:15
XMLHandler::getAttributeAsString
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:69
mm_TechHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
mm_TechHandler.cxx:19
mm_TechHandler::mm_TechHandler
mm_TechHandler(const std::string &, AGDDController &c)
Definition
mm_TechHandler.cxx:13
mm_TechHandler.h
Generated on
for ATLAS Offline Software by
1.17.0