Go to the documentation of this file.00001 #include "CondFormats/EcalObjects/interface/EcalTPGWeightIdMap.h"
00002
00003 #include "CondTools/Ecal/interface/EcalCondHeader.h"
00004
00005
00006
00007
00008
00009
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
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 namespace cond {
00029 template<>
00030 std::string PayLoadInspector<EcalTPGWeightIdMap>::summary() const {
00031 std::stringstream ss;
00032
00033 ss<<std::endl;
00034 EcalTPGWeightIdMap::EcalTPGWeightMapItr it;
00035 uint32_t w0,w1,w2,w3,w4;
00036 const EcalTPGWeightIdMap::EcalTPGWeightMap map= object().getMap();
00037 for (it=map.begin();it!=map.end();++it) {
00038 ss <<"WEIGHT "<<(*it).first<<std::endl;
00039 (*it).second.getValues(w0,w1,w2,w3,w4);
00040 ss <<std::hex<<"0x"<<w0<<" 0x"<<w1<<" 0x"<<w2<<" 0x"<<w3<<" 0x"<<w4<<" "<<std::endl;
00041 }
00042 return ss.str();
00043 }
00044 }
00045
00046 PYTHON_WRAPPER(EcalTPGWeightIdMap,EcalTPGWeightIdMap);