ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
}
AGDDController
Definition
AGDDController.h:30
XMLHandler::getAttributeAsDouble
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:78
XMLHandler::XMLHandler
XMLHandler(const std::string &n, AGDDController &c)
Definition
XMLHandler.cxx:15
fractionmassHandler::m_fractions
std::vector< double > m_fractions
Definition
fractionmassHandler.h:19
fractionmassHandler::fractionmassHandler
fractionmassHandler(const std::string &, AGDDController &c)
Definition
fractionmassHandler.cxx:8
fractionmassHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
fractionmassHandler.cxx:14
fractionmassHandler::GetFractions
std::vector< double > GetFractions()
Definition
fractionmassHandler.cxx:22
fractionmassHandler.h
Generated on
for ATLAS Offline Software by
1.17.0