ATLAS Offline Software
mmSpacerHandler.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 
21 // std::cout<<" this is mmSpacerHandler::Handle"<<std::endl;
22 
23  bool ret=true;
24  std::string name=getAttributeAsString(c, t, "type",ret);
25  std::vector<double> vvv;
26  vvv.push_back(getAttributeAsDouble(c, t, "sWidth",ret));
27  vvv.push_back(getAttributeAsDouble(c, t, "lWidth",ret));
28  vvv.push_back(getAttributeAsDouble(c, t, "Length",ret));
29  vvv.push_back(getAttributeAsDouble(c, t, "Tck",ret));
30 
31  std::string technology=getAttributeAsString(c, t, "tech",ret);
32 
33  AGDDMMSpacer *b=new AGDDMMSpacer(name, c.GetVolumeStore(), c.GetSectionStore());
34  b->SetXYZ(vvv);
35  b->tech=technology;
36 
37 }
AGDDController.h
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
mmSpacerHandler.h
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
AGDDController
Definition: AGDDController.h:30
AGDDMMSpacer
Definition: AGDDMMSpacer.h:19
AGDDMMSpacer.h
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:221
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
XMLHandler
Definition: XMLHandler.h:15
mmSpacerHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition: mmSpacerHandler.cxx:17
mmSpacerHandler::mmSpacerHandler
mmSpacerHandler(const std::string &, AGDDController &c)
Definition: mmSpacerHandler.cxx:11
python.compressB64.c
def c
Definition: compressB64.py:93