ATLAS Offline Software
trdHandler.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 #include "AGDDModel/AGDDTrd.h"
8 #include <iostream>
9 
10 
11 trdHandler::trdHandler(const std::string& s,
13  : XMLHandler(s, c)
14 {
15 // std::cout<<"Creating handler for trd"<<std::endl;
16 }
17 
19  xercesc::DOMNode *t)
20 {
21  bool res;
22  std::string name=getAttributeAsString(c, t, "name",res);
23  std::string material=getAttributeAsString(c, t, "material",res);
24  std::vector<double> vvv=getAttributeAsVector(c, t, "Xmp_Ymp_Z",res);
25  AGDDTrd *b=new AGDDTrd(name, c.GetVolumeStore(), c.GetSectionStore());
26  b->SetMaterial(material);
27  b->SetXYZ(vvv);
28 
29  std::string col=getAttributeAsString(c, t, "color",res);
30  if (res)
31  b->SetColor(col);
32 }
AGDDController.h
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
trdHandler::trdHandler
trdHandler(const std::string &, AGDDController &c)
Definition: trdHandler.cxx:11
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
AGDDController
Definition: AGDDController.h:30
trdHandler.h
trdHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition: trdHandler.cxx:18
XMLHandler::getAttributeAsVector
std::vector< double > getAttributeAsVector(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition: XMLHandler.cxx:100
res
std::pair< std::vector< unsigned int >, bool > res
Definition: JetGroupProductTest.cxx:14
XMLHandler::getAttributeAsString
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition: XMLHandler.cxx:69
AGDDTrd.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
XMLHandler
Definition: XMLHandler.h:15
query_example.col
col
Definition: query_example.py:7
AGDDTrd
Definition: AGDDTrd.h:13
python.compressB64.c
def c
Definition: compressB64.py:93