test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTPGPhysicsConstPyWrapper.cc
Go to the documentation of this file.
2 //#include "CondTools/Ecal/interface/EcalTPGPhysicsConstXMLTranslator.h"
4 #include "TROOT.h"
5 #include "TH2F.h"
6 #include "TCanvas.h"
7 #include "TStyle.h"
8 #include "TColor.h"
9 #include "TLine.h"
12 
15 
16 #include <string>
17 #include <sstream>
18 #include <algorithm>
19 #include <numeric>
20 #include <iterator>
21 #include <boost/ref.hpp>
22 #include <boost/bind.hpp>
23 #include <boost/function.hpp>
24 #include <boost/iterator/transform_iterator.hpp>
25 
26 #include <fstream>
27 
29 
30 namespace cond {
31 
32  template<>
34  std::stringstream ss;
35  EcalTPGPhysicsConstMap valuesMap = object().getMap();
36 
37  EcalTPGPhysicsConstMapIterator iValue = valuesMap.begin();
38  ss << "---Barrels: " << std::endl;
39  ss << "EtSat: " << (*iValue).second.EtSat << std::endl;
40  ss << "ttf_threshold_Low: " << (*iValue).second.ttf_threshold_Low << std::endl;
41  ss << "ttf_threshold_High: " << (*iValue).second.ttf_threshold_High << std::endl;
42  ss << "FG_lowThreshold: " << (*iValue).second.FG_lowThreshold << std::endl;
43  ss << "FG_highThreshold: " << (*iValue).second.FG_highThreshold << std::endl;
44  ss << "FG_lowRatio: " << (*iValue).second.FG_lowRatio << std::endl;
45  ss << "FG_highRatio: " << (*iValue).second.FG_highRatio << std::endl;
46 
47  ++iValue;
48  ss << "---Endcaps: " << std::endl;
49  ss << "EtSat: " << (*iValue).second.EtSat << std::endl;
50  ss << "ttf_threshold_Low: " << (*iValue).second.ttf_threshold_Low << std::endl;
51  ss << "ttf_threshold_High: " << (*iValue).second.ttf_threshold_High << std::endl;
52  ss << "FG_lowThreshold: " << (*iValue).second.FG_lowThreshold << std::endl;
53  ss << "FG_highThreshold: " << (*iValue).second.FG_highThreshold << std::endl;
54  ss << "FG_lowRatio: " << (*iValue).second.FG_lowRatio << std::endl;
55  ss << "FG_highRatio: " << (*iValue).second.FG_highRatio << std::endl;
56  return ss.str();
57  }
58 }
#define PYTHON_WRAPPER(_class, _name)
std::string summary() const
list object
Definition: dbtoconf.py:77
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
std::map< uint32_t, EcalTPGPhysicsConst::Item >::const_iterator EcalTPGPhysicsConstMapIterator