ATLAS Offline Software
Loading...
Searching...
No Matches
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}
static Double_t a
#define z
int getAttributeAsInt(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
XMLHandler(const std::string &n, AGDDController &c)
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
materialHandler(const std::string &, AGDDController &c)