ATLAS Offline Software
msgHandler.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 
8 #include <iostream>
9 
10 msgHandler::msgHandler(const std::string& s,
12  : XMLHandler(s, c)
13 {
14 // std::cout<<"Creating handler for msg"<<std::endl;
15 }
16 
18  xercesc::DOMNode *t)
19 {
20 // std::cout<<"handling for msg";
21  bool bres;
22  std::string text=getAttributeAsString(c, t, "text",bres);
23  std::string expression=getAttributeAsString(c, t, "expression",bres);
24  std::cout<<" msg: "<<text<<" expression="<<expression;
25  double res=getAttributeAsDouble(c, t, "expression",bres);
26  std::cout<<" evaluates to "<<res<<std::endl;
27 }
AGDDController.h
msgHandler::msgHandler
msgHandler(const std::string &, AGDDController &c)
Definition: msgHandler.cxx:10
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
msgHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition: msgHandler.cxx:17
python.HION12.expression
string expression
Definition: HION12.py:55
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
msgHandler.h
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
XMLHandler
Definition: XMLHandler.h:15
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
python.compressB64.c
def c
Definition: compressB64.py:93