ATLAS Offline Software
Loading...
Searching...
No Matches
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
6#include <iostream>
7
10 : XMLHandler(s, c)
11{
12}
13
15 xercesc::DOMNode *t)
16{
17 double fractionmass=getAttributeAsDouble(c, t, "fraction");
18 m_fractions.push_back (fractionmass);
19}
20
21
23{
24 std::vector<double> v;
25 v.swap (m_fractions);
26 return v;
27}
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
XMLHandler(const std::string &n, AGDDController &c)
std::vector< double > m_fractions
fractionmassHandler(const std::string &, AGDDController &c)
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
std::vector< double > GetFractions()