CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ESGainPyWrapper.cc
Go to the documentation of this file.
5 
6 #include <string>
7 #include <fstream>
8 
9 namespace cond {
10 
11  template<>
12  class ValueExtractor<ESGain>: public BaseValueExtractor<ESGain> {
13  public:
14 
15  typedef ESGain Class;
17  static What what() { return What();}
18 
21  {
22  // here one can make stuff really complicated...
23  }
24  void compute(Class const & it) override{
25  }
26  private:
27 
28  };
29 
30 
31  template<>
34  std::stringstream ss;
36  ss<<ESGainXMLTranslator::dumpXML(h,object());
37  return ss.str();
38 
39  }
40 
41  template<>
43  std::stringstream ss;
44  object().print(ss);
45  return ss.str();
46  }
47 
48 
49  template<>
51  std::string const &,
52  std::vector<int> const&,
53  std::vector<float> const& ) const {
54  std::string fname = filename + ".png";
55  std::ofstream f(fname.c_str());
56  return fname;
57  }
58 
59 
60 }
61 
static std::string dumpXML(const EcalCondHeader &header, const ESGain &record)
std::string plot(std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &) const
ExtractWhat< Class > What
Definition: ESGain.h:5
#define PYTHON_WRAPPER(_class, _name)
std::string summary() const
double f[11][100]
void compute(Class const &it) override
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
list object
Definition: dbtoconf.py:77
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
std::string dump() const