ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDHandlers
src
elcylHandler.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/elcylHandler.h
"
6
#include "
AGDDModel/AGDDElcyl.h
"
7
#include "
AGDDControl/AGDDController.h
"
8
#include <iostream>
9
10
11
12
elcylHandler::elcylHandler
(
const
std::string& s,
13
AGDDController
& c)
14
:
XMLHandler
(s, c)
15
{
16
// std::cout<<"Creating handler for tubs"<<std::endl;
17
}
18
19
void
elcylHandler::ElementHandle
(
AGDDController
& c,
20
xercesc::DOMNode *t)
21
{
22
bool
res
;
23
std::string name=
getAttributeAsString
(c, t,
"name"
);
24
std::string material=
getAttributeAsString
(c, t,
"material"
);
25
std::vector<double> vvv=
getAttributeAsVector
(c, t,
"RXio_RYio_Z"
);
26
27
AGDDElcyl
*v=
new
AGDDElcyl
(name, c.GetVolumeStore(), c.GetSectionStore());
28
v->SetMaterial(material);
29
v->SetRXio_RYio_Z(vvv);
30
31
std::string col=
getAttributeAsString
(c, t,
"color"
,
res
);
32
if
(
res
)
33
v->SetColor(col);
34
}
AGDDController.h
AGDDElcyl.h
res
std::pair< std::vector< unsigned int >, bool > res
Definition
JetGroupProductTest.cxx:11
AGDDController
Definition
AGDDController.h:30
AGDDElcyl
Definition
AGDDElcyl.h:13
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
elcylHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
elcylHandler.cxx:19
elcylHandler::elcylHandler
elcylHandler(const std::string &, AGDDController &c)
Definition
elcylHandler.cxx:12
elcylHandler.h
Generated on
for ATLAS Offline Software by
1.17.0