ATLAS Offline Software
DetectorDescription
AGDD
AGDDHandlers
src
addmaterialHandler.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/addmaterialHandler.h
"
6
#include <iostream>
7
8
addmaterialHandler::addmaterialHandler
(
const
std::string&
s
,
9
AGDDController
&
c
)
10
:
XMLHandler
(
s
,
c
)
11
{
12
// std::cout<<"Creating handler for addmaterial"<<std::endl;
13
}
14
15
void
addmaterialHandler::ElementHandle
(
AGDDController
&
c
,
16
xercesc::DOMNode *
t
)
17
{
18
// std::cout<<"handling for addmaterial";
19
20
std::string material=
getAttributeAsString
(
c
,
t
,
"material"
);
21
// std::cout<<" material= "<<material<<std::endl;
22
23
m_names
.push_back (material);
24
}
25
26
27
std::vector<std::string>
addmaterialHandler::GetNames
()
28
{
29
std::vector<std::string>
v
;
30
v
.swap (
m_names
);
31
return
v
;
32
}
addmaterialHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition:
addmaterialHandler.cxx:15
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
AGDDController
Definition:
AGDDController.h:30
addmaterialHandler::m_names
std::vector< std::string > m_names
Definition:
addmaterialHandler.h:19
addmaterialHandler.h
addmaterialHandler::GetNames
std::vector< std::string > GetNames()
Definition:
addmaterialHandler.cxx:27
XMLHandler::getAttributeAsString
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition:
XMLHandler.cxx:69
XMLHandler
Definition:
XMLHandler.h:15
python.PyAthena.v
v
Definition:
PyAthena.py:154
addmaterialHandler::addmaterialHandler
addmaterialHandler(const std::string &, AGDDController &c)
Definition:
addmaterialHandler.cxx:8
python.compressB64.c
def c
Definition:
compressB64.py:93
Generated on Mon Dec 23 2024 21:06:40 for ATLAS Offline Software by
1.8.18