ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonDetDescr
MuonAGDDBase
src
mmSpacer_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/mmSpacer_TechHandler.h
"
6
#include "
MuonGeoModel/MMSpacer_Technology.h
"
7
#include "
MuonGeoModel/MYSQL.h
"
8
#include <iostream>
9
10
11
mmSpacer_TechHandler::mmSpacer_TechHandler
(
const
std::string& s,
12
AGDDController
& c)
13
:
XMLHandler
(s, c)
14
{
15
}
16
17
void
mmSpacer_TechHandler::ElementHandle
(
AGDDController
& c,
18
xercesc::DOMNode *t)
19
{
20
21
// std::cout<<" this is mmSpacer_TechHandler::Handle"<<std::endl;
22
23
bool
ret=
true
;
24
std::string name=
getAttributeAsString
(c, t,
"type"
,ret);
25
26
MuonGM::MMSpacer_Technology
*tech=
new
MuonGM::MMSpacer_Technology
(*
MuonGM::MYSQL::GetPointer
(), name);
27
28
tech->
thickness
=
getAttributeAsDouble
(c, t,
"Tck"
,ret);
29
30
tech->
lowZCutOuts
=
getAttributeAsInt
(c, t,
"lowZCutOuts"
,ret);
31
if
(ret)
32
{
33
tech->
lowZCutOutWidth
=
getAttributeAsDouble
(c, t,
"lowZCutOutWidth"
,ret);
34
tech->
lowZCutOutDZ
=
getAttributeAsDouble
(c, t,
"lowZCutOutDZ"
,ret);
35
}
36
tech->
highZCutOuts
=
getAttributeAsInt
(c, t,
"highZCutOuts"
,ret);
37
if
(ret)
38
{
39
tech->
highZCutOutWidth
=
getAttributeAsDouble
(c, t,
"highZCutOutWidth"
,ret);
40
tech->
highZCutOutDZ
=
getAttributeAsDouble
(c, t,
"highZCutOutDZ"
,ret);
41
}
42
43
}
MMSpacer_Technology.h
MYSQL.h
AGDDController
Definition
AGDDController.h:30
MuonGM::MMSpacer_Technology
Definition
MMSpacer_Technology.h:15
MuonGM::MMSpacer_Technology::lowZCutOutDZ
double lowZCutOutDZ
Definition
MMSpacer_Technology.h:23
MuonGM::MMSpacer_Technology::lowZCutOuts
int lowZCutOuts
Definition
MMSpacer_Technology.h:21
MuonGM::MMSpacer_Technology::highZCutOutDZ
double highZCutOutDZ
Definition
MMSpacer_Technology.h:27
MuonGM::MMSpacer_Technology::lowZCutOutWidth
double lowZCutOutWidth
Definition
MMSpacer_Technology.h:22
MuonGM::MMSpacer_Technology::highZCutOutWidth
double highZCutOutWidth
Definition
MMSpacer_Technology.h:26
MuonGM::MMSpacer_Technology::highZCutOuts
int highZCutOuts
Definition
MMSpacer_Technology.h:25
MuonGM::MYSQL::GetPointer
static LockedMYSQL GetPointer()
Definition
MYSQL.cxx:42
MuonGM::Technology::thickness
double thickness
Definition
Technology.h:20
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
mmSpacer_TechHandler::mmSpacer_TechHandler
mmSpacer_TechHandler(const std::string &, AGDDController &c)
Definition
mmSpacer_TechHandler.cxx:11
mmSpacer_TechHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
mmSpacer_TechHandler.cxx:17
mmSpacer_TechHandler.h
Generated on
for ATLAS Offline Software by
1.17.0