ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDHandlers
src
consHandler.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/consHandler.h
"
6
#include "
AGDDModel/AGDDCons.h
"
7
#include "
AGDDControl/AGDDController.h
"
8
#include <iostream>
9
10
11
consHandler::consHandler
(
const
std::string& s,
12
AGDDController
& c)
13
:
XMLHandler
(s, c)
14
{
15
}
16
17
void
consHandler::ElementHandle
(
AGDDController
& c,
18
xercesc::DOMNode *t)
19
{
20
bool
res
;
21
std::string name=
getAttributeAsString
(c, t,
"name"
);
22
std::string material=
getAttributeAsString
(c, t,
"material"
);
23
std::vector<double> vvv=
getAttributeAsVector
(c, t,
"Rio1_Rio2_Z"
);
24
25
AGDDCons
*b=
new
AGDDCons
(name, c.GetVolumeStore(), c.GetSectionStore());
26
b->SetMaterial(material);
27
b->SetRio_Z(vvv);
28
29
vvv.clear();
30
vvv=
getAttributeAsVector
(c, t,
"profile"
,
res
);
31
if
(
res
)
32
{
33
b->SetProfile(vvv[0],vvv[1]);
34
}
35
else
36
b->SetProfile(0.,360.);
37
38
std::string col=
getAttributeAsString
(c, t,
"color"
,
res
);
39
if
(
res
)
40
b->SetColor(col);
41
}
AGDDCons.h
AGDDController.h
res
std::pair< std::vector< unsigned int >, bool > res
Definition
JetGroupProductTest.cxx:11
AGDDCons
Definition
AGDDCons.h:13
AGDDController
Definition
AGDDController.h:30
XMLHandler::getAttributeAsVector
std::vector< double > getAttributeAsVector(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:100
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
consHandler::consHandler
consHandler(const std::string &, AGDDController &c)
Definition
consHandler.cxx:11
consHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
consHandler.cxx:17
consHandler.h
Generated on
for ATLAS Offline Software by
1.17.0