ATLAS Offline Software
natomsHandler.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 
8 natomsHandler::natomsHandler(const std::string& s,
10  : XMLHandler(s, c)
11 {
12 }
13 
15  xercesc::DOMNode *t)
16 {
17  bool res;
18  int natoms=getAttributeAsInt(c, t, "n",res);
19  m_natoms.push_back (natoms);
20 }
21 
22 
23 std::vector<int> natomsHandler::GetNatoms()
24 {
25  std::vector<int> v;
26  v.swap (m_natoms);
27  return v;
28 }
natomsHandler::m_natoms
std::vector< int > m_natoms
Definition: natomsHandler.h:19
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
natomsHandler.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
AGDDController
Definition: AGDDController.h:30
natomsHandler::natomsHandler
natomsHandler(const std::string &, AGDDController &c)
Definition: natomsHandler.cxx:8
res
std::pair< std::vector< unsigned int >, bool > res
Definition: JetGroupProductTest.cxx:14
natomsHandler::GetNatoms
std::vector< int > GetNatoms()
Definition: natomsHandler.cxx:23
XMLHandler
Definition: XMLHandler.h:15
python.PyAthena.v
v
Definition: PyAthena.py:154
XMLHandler::getAttributeAsInt
int getAttributeAsInt(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition: XMLHandler.cxx:89
python.compressB64.c
def c
Definition: compressB64.py:93
natomsHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition: natomsHandler.cxx:14