CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalLaserAPDPNRatiosPyWrapper.cc
Go to the documentation of this file.
1 
3 
8 
9 #include <string>
10 #include <fstream>
11 
12 namespace cond {
13 
14  template<>
15  class ValueExtractor<EcalLaserAPDPNRatios>: public BaseValueExtractor<EcalLaserAPDPNRatios> {
16  public:
17 
20  static What what() { return What();}
21 
24  {
25  // here one can make stuff really complicated...
26  }
27  void compute(Class const & it){
28  }
29  private:
30 
31  };
32 
33 
34  template<>
35  std::string
37 
38  std::stringstream ss;
39  EcalCondHeader header;
40  ss<<EcalLaserAPDPNRatiosXMLTranslator::dumpXML(header,object());
41  return ss.str();
42 
43  }
44 
45  template<>
47  std::stringstream ss;
48  return ss.str();
49  }
50 
51 
52  template<>
53  std::string PayLoadInspector<EcalLaserAPDPNRatios>::plot(std::string const & filename,
54  std::string const &,
55  std::vector<int> const&,
56  std::vector<float> const& ) const {
57  std::string fname = filename + ".png";
58  std::ofstream f(fname.c_str());
59  return fname;
60  }
61 
62 
63 }
64 
std::string plot(std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &) const
ExtractWhat< Class > What
static std::string dumpXML(const EcalCondHeader &header, const EcalLaserAPDPNRatios &record)
#define PYTHON_WRAPPER(_class, _name)
std::string summary() const
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
std::string dump() const