ATLAS Offline Software
DetectorDescription
AGDD
AGDDHandlers
src
BoltHandler.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/BoltHandler.h
"
6
#include "
AGDDModel/AGDDBolt.h
"
7
#include "
AGDDControl/AGDDController.h
"
8
#include <iostream>
9
10
BoltHandler::BoltHandler
(
const
std::string&
s
,
11
AGDDController
&
c
)
12
:
XMLHandler
(
s
,
c
)
13
{
14
}
15
16
void
BoltHandler::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
double
l
=
getAttributeAsDouble
(
c
,
t
,
"length"
,
res
);
23
double
d
=
getAttributeAsDouble
(
c
,
t
,
"diameter"
,
res
);
24
double
hd=
getAttributeAsDouble
(
c
,
t
,
"head_diameter"
,
res
);
25
double
hl=
getAttributeAsDouble
(
c
,
t
,
"head_length"
,
res
);
26
27
AGDDBolt
*
b
=
new
AGDDBolt
(
name
,
c
.GetVolumeStore(),
c
.GetSectionStore());
28
b
->SetMaterial(material);
29
b
->SetLength(
l
);
30
b
->SetHeadLength(hl);
31
b
->SetDiameter(
d
);
32
b
->SetHeadDiameter(hd);
33
34
std::string
col
=
getAttributeAsString
(
c
,
t
,
"color"
,
res
);
35
if
(
res
)
36
b
->SetColor(
col
);
37
}
BoltHandler.h
AGDDController.h
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
hist_file_dump.d
d
Definition:
hist_file_dump.py:137
UploadAMITag.l
list l
Definition:
UploadAMITag.larcaf.py:158
AGDDBolt
Definition:
AGDDBolt.h:13
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
XMLHandler::getAttributeAsDouble
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition:
XMLHandler.cxx:78
AGDDController
Definition:
AGDDController.h:30
BoltHandler::BoltHandler
BoltHandler(const std::string &, AGDDController &c)
Definition:
BoltHandler.cxx:10
res
std::pair< std::vector< unsigned int >, bool > res
Definition:
JetGroupProductTest.cxx:14
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:221
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
XMLHandler
Definition:
XMLHandler.h:15
query_example.col
col
Definition:
query_example.py:7
BoltHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition:
BoltHandler.cxx:16
AGDDBolt.h
python.compressB64.c
def c
Definition:
compressB64.py:93
Generated on Thu Nov 7 2024 21:10:50 for ATLAS Offline Software by
1.8.18