CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CondCore/SiStripPlugins/plugins/SiStripBaseDelayPyWrapper.cc

Go to the documentation of this file.
00001 #include "CondFormats/SiStripObjects/interface/SiStripBaseDelay.h"
00002 
00003 #include "CondCore/Utilities/interface/PayLoadInspector.h"
00004 #include "CondCore/Utilities/interface/InspectorPythonWrapper.h"
00005 
00006 #include <string>
00007 #include <fstream>
00008 
00009 namespace cond {
00010 
00011   template<>
00012   class ValueExtractor<SiStripBaseDelay>: public  BaseValueExtractor<SiStripBaseDelay> {
00013   public:
00014 
00015     typedef SiStripBaseDelay Class;
00016     typedef ExtractWhat<Class> What;
00017     static What what() { return What();}
00018 
00019     ValueExtractor(){}
00020     ValueExtractor(What const & what)
00021     {
00022       // here one can make stuff really complicated...
00023     }
00024     void compute(Class const & it){
00025     }
00026   private:
00027   
00028   };
00029 
00030 
00031   template<>
00032   std::string
00033   PayLoadInspector<SiStripBaseDelay>::dump() const {
00034     std::stringstream ss;
00035     return ss.str();
00036     
00037   }
00038   
00039   template<>
00040   std::string PayLoadInspector<SiStripBaseDelay>::summary() const {
00041     std::stringstream ss;
00042     object().printSummary(ss);
00043     return ss.str();
00044   }
00045   
00046 
00047   template<>
00048   std::string PayLoadInspector<SiStripBaseDelay>::plot(std::string const & filename,
00049                                                    std::string const &, 
00050                                                    std::vector<int> const&, 
00051                                                    std::vector<float> const& ) const {
00052     std::string fname = filename + ".png";
00053     std::ofstream f(fname.c_str());
00054     return fname;
00055   }
00056 
00057 
00058 }
00059 
00060 PYTHON_WRAPPER(SiStripBaseDelay,SiStripBaseDelay);