CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/CondCore/EcalPlugins/plugins/EcalTPGFineGrainEBIdMapPyWrapper.cc

Go to the documentation of this file.
00001 #include "CondFormats/EcalObjects/interface/EcalTPGFineGrainEBIdMap.h"
00002 //#include "CondTools/Ecal/interface/EcalTPGFineGrainEBMapXMLTranslator.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 namespace cond {
00029         template<>
00030         std::string PayLoadInspector<EcalTPGFineGrainEBIdMap>::summary() const {
00031                 std::stringstream ss;
00032 
00033                 EcalTPGFineGrainEBIdMap::EcalTPGFineGrainEBMapItr it;
00034                 const EcalTPGFineGrainEBIdMap::EcalTPGFineGrainEBMap map= object().getMap();
00035                 uint32_t ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT;
00036                 ss<<std::endl;
00037                 for (it=map.begin();it!=map.end();++it) {
00038                         ss <<"FG "<<(*it).first<<std::endl;
00039                         (*it).second.getValues(ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT);
00040                         ss <<std::hex<<"0x"<<ThresholdETLow<<" 0x"<<ThresholdETHigh<<" 0x"<<RatioLow<<" 0x"<<RatioHigh<<" 0x"<<LUT<<std::endl;
00041                 }
00042                 return ss.str();
00043         }
00044 }
00045 PYTHON_WRAPPER(EcalTPGFineGrainEBIdMap,EcalTPGFineGrainEBIdMap);