test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalFunParamsPyWrapper.cc
Go to the documentation of this file.
7 #include "TROOT.h"
8 #include "TH2F.h"
9 #include "TCanvas.h"
10 #include "TStyle.h"
11 #include "TColor.h"
12 #include "TLine.h"
13 
16 
17 #include <string>
18 #include <sstream>
19 #include <algorithm>
20 #include <numeric>
21 #include <iterator>
22 #include <boost/ref.hpp>
23 #include <boost/bind.hpp>
24 #include <boost/function.hpp>
25 #include <boost/iterator/transform_iterator.hpp>
26 
27 #include <fstream>
28 
29 namespace cond {
30  template<>
32  std::cout << "EcalFunParamsPyWrapper dump " << std::endl;
33  // std::cout << " token " << object().token() << "\n";
34  // PayLoadInspector::dump();
35  std::cout << " Collection size " << object().params().size() << "\n";
36  // for ( EcalFunctionParameters::const_iterator it = object().params().begin(); it != object().params().end(); ++it ) {
37  // std::cout << " " << *it;
38  // }
39  // std::cout << "\n";
40  std::stringstream ss;
41  EcalCondHeader header;
42  if(object().params().size() == 56)
44  else if(object().params().size() == 20)
45  ss << EcalClusterCrackCorrXMLTranslator::dumpXML(header,object());
46  else if(object().params().size() == 11 || object().params().size() == 24)
48  else if(object().params().size() == 208)
50  else
51  ss << " EcalFunParamsPyWrapper dump : unknown tag. Please send a mail to jean.fay@cern.ch";
52  return ss.str();
53  }
54 
55  template<>
57  std::cout << "EcalFunParamsPyWrapper summary " << std::endl;
58  std::stringstream ss;
59  ss << "EcalFunParamsPyWrapper nb of parameters : " << object().params().size();
60 
61  return ss.str();
62  }
63 
64  template<>
66  std::string const &,
67  std::vector<int> const&,
68  std::vector<float> const& ) const {
69  std::cout << "EcalFunParamsPyWrapper plot " << std::endl;
70  return filename;
71  } // plot
72 }
std::string plot(std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &) const
static std::string dumpXML(const EcalCondHeader &header, const EcalFunParams &record)
#define PYTHON_WRAPPER(_class, _name)
std::string summary() const
static std::string dumpXML(const EcalCondHeader &header, const EcalFunParams &record)
static std::string dumpXML(const EcalCondHeader &header, const EcalFunParams &record)
list object
Definition: dbtoconf.py:77
tuple filename
Definition: lut2db_cfg.py:20
tuple cout
Definition: gather_cfg.py:121
std::string dump() const
static std::string dumpXML(const EcalCondHeader &header, const EcalFunParams &record)
tuple size
Write out results.