ATLAS Offline Software
materialHandler.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 #include <iostream>
9 
10 
13  : XMLHandler(s, c)
14 {
15 }
16 
18  xercesc::DOMNode *t)
19 {
20  std::string name=getAttributeAsString(c, t, "name");
21  double a=getAttributeAsDouble(c, t, "a");
22  int z=getAttributeAsInt(c, t, "z");
23  double density=getAttributeAsDouble(c, t, "density");
24  new AGDDMaterial(c.GetMaterialStore(),name,z,a,density);
25 }
AGDDController.h
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
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
materialHandler.h
AGDDController
Definition: AGDDController.h:30
z
#define z
AGDDMaterial
Definition: AGDDMaterial.h:15
materialHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition: materialHandler.cxx:17
XMLHandler::getAttributeAsString
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition: XMLHandler.cxx:69
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AGDDMaterial.h
XMLHandler
Definition: XMLHandler.h:15
a
TList * a
Definition: liststreamerinfos.cxx:10
XMLHandler::getAttributeAsInt
int getAttributeAsInt(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition: XMLHandler.cxx:89
materialHandler::materialHandler
materialHandler(const std::string &, AGDDController &c)
Definition: materialHandler.cxx:11
python.compressB64.c
def c
Definition: compressB64.py:93