Go to the documentation of this file.00001 #include "CondFormats/EcalObjects/interface/EcalTimeOffsetConstant.h"
00002 #include "CondTools/Ecal/interface/EcalTimeOffsetXMLTranslator.h"
00003 #include "CondTools/Ecal/interface/EcalCondHeader.h"
00004 #include "TH2F.h"
00005 #include "TCanvas.h"
00006 #include "TLine.h"
00007 #include "TStyle.h"
00008 #include "TPave.h"
00009 #include "TPaveStats.h"
00010
00011 #include "CondCore/Utilities/interface/PayLoadInspector.h"
00012 #include "CondCore/Utilities/interface/InspectorPythonWrapper.h"
00013
00014 #include <string>
00015 #include <fstream>
00016
00017 namespace cond {
00018 template<>
00019 std::string PayLoadInspector<EcalTimeOffsetConstant>::dump() const {
00020 std::stringstream ss;
00021 EcalCondHeader header;
00022 ss << EcalTimeOffsetXMLTranslator::dumpXML(header,object());
00023 return ss.str();
00024 }
00025
00026 template<>
00027 std::string PayLoadInspector<EcalTimeOffsetConstant>::summary() const {
00028 std::stringstream ss;
00029 ss <<" Barrel and endcap Time Offset" << std::endl;
00030 ss << " EB " << object().getEBValue()
00031 << " EE " << object().getEEValue() << std::endl;
00032 return ss.str();
00033 }
00034
00035
00036 template<>
00037 std::string PayLoadInspector<EcalTimeOffsetConstant>::plot(std::string const & filename,
00038 std::string const &,
00039 std::vector<int> const&,
00040 std::vector<float> const& ) const {
00041 return filename;
00042 }
00043 }
00044
00045 PYTHON_WRAPPER(EcalTimeOffsetConstant,EcalTimeOffsetConstant);