ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDHandlers
src
IbeamHandler.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 "
AGDDHandlers/IbeamHandler.h
"
6
#include "
AGDDModel/AGDDIbeam.h
"
7
#include "
AGDDControl/AGDDController.h
"
8
#include <iostream>
9
10
IbeamHandler::IbeamHandler
(
const
std::string& s,
11
AGDDController
& c)
12
:
XMLHandler
(s, c)
13
{
14
}
15
16
void
IbeamHandler::ElementHandle
(
AGDDController
& c,
17
xercesc::DOMNode *t)
18
{
19
bool
res
;
20
std::string name=
getAttributeAsString
(c, t,
"name"
,
res
);
21
std::string material=
getAttributeAsString
(c, t,
"material"
,
res
);
22
23
double
l=
getAttributeAsDouble
(c, t,
"length"
,
res
);
24
double
w=
getAttributeAsDouble
(c, t,
"width"
,
res
);
25
double
sw=
getAttributeAsDouble
(c, t,
"small_width"
,
res
);
26
double
h
=
getAttributeAsDouble
(c, t,
"heigth"
,
res
);
27
double
sh
=
getAttributeAsDouble
(c, t,
"small_heigth"
,
res
);
28
29
AGDDIbeam
*b=
new
AGDDIbeam
(name, c.GetVolumeStore(), c.GetSectionStore());
30
b->SetMaterial(material);
31
b->SetLength(l);
32
b->SetWidth(w);
33
b->SetSmallWidth(sw);
34
b->SetHeigth(
h
);
35
b->SetSmallHeigth(
sh
);
36
37
std::string col=
getAttributeAsString
(c, t,
"color"
,
res
);
38
if
(!col.empty())
39
b->SetColor(col);
40
}
AGDDController.h
AGDDIbeam.h
IbeamHandler.h
res
std::pair< std::vector< unsigned int >, bool > res
Definition
JetGroupProductTest.cxx:11
AGDDController
Definition
AGDDController.h:30
AGDDIbeam
Definition
AGDDIbeam.h:13
h
Header file for AthHistogramAlgorithm.
IbeamHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
IbeamHandler.cxx:16
IbeamHandler::IbeamHandler
IbeamHandler(const std::string &, AGDDController &c)
Definition
IbeamHandler.cxx:10
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
RCU::Shell
Definition
ShellExec.cxx:26
Generated on
for ATLAS Offline Software by
1.17.0