CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CondCore/EcalPlugins/plugins/EcalTPGPhysicsConstPyWrapper.cc

Go to the documentation of this file.
00001 #include "CondFormats/EcalObjects/interface/EcalTPGPhysicsConst.h"
00002 //#include "CondTools/Ecal/interface/EcalTPGPhysicsConstXMLTranslator.h"
00003 #include "CondTools/Ecal/interface/EcalCondHeader.h"
00004 #include "TROOT.h"
00005 #include "TH2F.h"
00006 #include "TCanvas.h"
00007 #include "TStyle.h"
00008 #include "TColor.h"
00009 #include "TLine.h"
00010 #include "DataFormats/EcalDetId/interface/EBDetId.h"
00011 #include "DataFormats/EcalDetId/interface/EEDetId.h"
00012 
00013 #include "CondCore/Utilities/interface/PayLoadInspector.h"
00014 #include "CondCore/Utilities/interface/InspectorPythonWrapper.h"
00015 
00016 #include <string>
00017 #include <sstream>
00018 #include <algorithm>
00019 #include <numeric>
00020 #include <iterator>
00021 #include <boost/ref.hpp>
00022 #include <boost/bind.hpp>
00023 #include <boost/function.hpp>
00024 #include <boost/iterator/transform_iterator.hpp>
00025 
00026 #include <fstream>
00027 
00028 #include "CondCore/EcalPlugins/plugins/EcalPyWrapperFunctions.h"
00029 
00030 namespace cond {
00031 
00032    template<>
00033    std::string PayLoadInspector<EcalTPGPhysicsConst>::summary() const {
00034         std::stringstream ss;
00035         EcalTPGPhysicsConstMap valuesMap = object().getMap();
00036 
00037         EcalTPGPhysicsConstMapIterator iValue = valuesMap.begin();
00038         ss << "---Barrels: " << std::endl; 
00039                 ss << "EtSat: " << (*iValue).second.EtSat << std::endl;
00040                 ss << "ttf_threshold_Low: " << (*iValue).second.ttf_threshold_Low << std::endl;
00041                 ss << "ttf_threshold_High: " << (*iValue).second.ttf_threshold_High << std::endl;
00042                 ss << "FG_lowThreshold: " << (*iValue).second.FG_lowThreshold << std::endl;
00043                 ss << "FG_highThreshold: " << (*iValue).second.FG_highThreshold << std::endl;
00044                 ss << "FG_lowRatio: " << (*iValue).second.FG_lowRatio << std::endl;
00045                 ss << "FG_highRatio: " << (*iValue).second.FG_highRatio << std::endl;
00046         
00047         ++iValue;
00048         ss << "---Endcaps: " << std::endl; 
00049             ss << "EtSat: " << (*iValue).second.EtSat << std::endl;
00050                 ss << "ttf_threshold_Low: " << (*iValue).second.ttf_threshold_Low << std::endl;
00051                 ss << "ttf_threshold_High: " << (*iValue).second.ttf_threshold_High << std::endl;
00052                 ss << "FG_lowThreshold: " << (*iValue).second.FG_lowThreshold << std::endl;
00053                 ss << "FG_highThreshold: " << (*iValue).second.FG_highThreshold << std::endl;
00054                 ss << "FG_lowRatio: " << (*iValue).second.FG_lowRatio << std::endl;
00055                 ss << "FG_highRatio: " << (*iValue).second.FG_highRatio << std::endl;
00056         return ss.str();
00057    }
00058 }
00059 PYTHON_WRAPPER(EcalTPGPhysicsConst,EcalTPGPhysicsConst);