ATLAS Offline Software
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
}
AGDDController.h
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
AGDDController
Definition:
AGDDController.h:30
consHandler.h
AGDDCons
Definition:
AGDDCons.h:13
XMLHandler::getAttributeAsVector
std::vector< double > getAttributeAsVector(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition:
XMLHandler.cxx:100
res
std::pair< std::vector< unsigned int >, bool > res
Definition:
JetGroupProductTest.cxx:14
AGDDCons.h
XMLHandler::getAttributeAsString
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition:
XMLHandler.cxx:69
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
consHandler::consHandler
consHandler(const std::string &, AGDDController &c)
Definition:
consHandler.cxx:11
XMLHandler
Definition:
XMLHandler.h:15
query_example.col
col
Definition:
query_example.py:7
consHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition:
consHandler.cxx:17
python.compressB64.c
def c
Definition:
compressB64.py:93
Generated on Tue Dec 24 2024 21:08:34 for ATLAS Offline Software by
1.8.18