ATLAS Offline Software
DetectorDescription
AGDD
AGDDHandlers
src
varHandler.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/varHandler.h
"
6
#include "
AGDDControl/AGDDController.h
"
7
#include "
AGDDControl/XMLHandler.h
"
8
#include <iostream>
9
10
11
varHandler::varHandler
(
const
std::string&
s
,
12
AGDDController
&
c
)
13
:
XMLHandler
(
s
,
c
)
14
{
15
}
16
17
void
varHandler::ElementHandle
(
AGDDController
&
c
,
18
xercesc::DOMNode *
t
)
19
{
20
bool
bres;
21
std::string
name
=
getAttributeAsString
(
c
,
t
,
"name"
,bres);
22
double
res
=
getAttributeAsDouble
(
c
,
t
,
"value"
,bres);
23
c
.Evaluator().RegisterConstant(
name
,
res
);
24
}
AGDDController.h
varHandler.h
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
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
XMLHandler.h
AGDDController
Definition:
AGDDController.h:30
res
std::pair< std::vector< unsigned int >, bool > res
Definition:
JetGroupProductTest.cxx:14
varHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition:
varHandler.cxx:17
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
XMLHandler
Definition:
XMLHandler.h:15
python.compressB64.c
def c
Definition:
compressB64.py:93
varHandler::varHandler
varHandler(const std::string &, AGDDController &c)
Definition:
varHandler.cxx:11
Generated on Tue Dec 24 2024 21:22:29 for ATLAS Offline Software by
1.8.18