ATLAS Offline Software
DetectorDescription
AGDD
AGDDHandlers
src
fractionmassHandler.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/fractionmassHandler.h
"
6
#include <iostream>
7
8
fractionmassHandler::fractionmassHandler
(
const
std::string&
s
,
9
AGDDController
&
c
)
10
:
XMLHandler
(
s
,
c
)
11
{
12
}
13
14
void
fractionmassHandler::ElementHandle
(
AGDDController
&
c
,
15
xercesc::DOMNode *
t
)
16
{
17
double
fractionmass=
getAttributeAsDouble
(
c
,
t
,
"fraction"
);
18
m_fractions
.push_back (fractionmass);
19
}
20
21
22
std::vector<double>
fractionmassHandler::GetFractions
()
23
{
24
std::vector<double>
v
;
25
v
.swap (
m_fractions
);
26
return
v
;
27
}
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
fractionmassHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition:
fractionmassHandler.cxx:14
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
fractionmassHandler::fractionmassHandler
fractionmassHandler(const std::string &, AGDDController &c)
Definition:
fractionmassHandler.cxx:8
XMLHandler
Definition:
XMLHandler.h:15
python.PyAthena.v
v
Definition:
PyAthena.py:154
fractionmassHandler::m_fractions
std::vector< double > m_fractions
Definition:
fractionmassHandler.h:19
fractionmassHandler::GetFractions
std::vector< double > GetFractions()
Definition:
fractionmassHandler.cxx:22
fractionmassHandler.h
python.compressB64.c
def c
Definition:
compressB64.py:93
Generated on Thu Nov 7 2024 21:15:30 for ATLAS Offline Software by
1.8.18