CMS 3D CMS Logo

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