CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTPGLutIdMapPyWrapper.cc
Go to the documentation of this file.
2 //#include "CondTools/Ecal/interface/EcalTPGFineGrainEBMapXMLTranslator.h"
4 //#include "TROOT.h"
5 //#include "TH2F.h"
6 //#include "TCanvas.h"
7 //#include "TStyle.h"
8 //#include "TColor.h"
9 //#include "TLine.h"
12 
15 
16 #include <string>
17 #include <sstream>
18 //#include <algorithm>
19 //#include <numeric>
20 //#include <iterator>
21 //#include <boost/ref.hpp>
22 //#include <boost/bind.hpp>
23 //#include <boost/function.hpp>
24 //#include <boost/iterator/transform_iterator.hpp>
25 //
26 //#include <fstream>
27 
28 namespace cond {
29  template<>
31  std::stringstream ss;
33  const EcalTPGLutIdMap::EcalTPGLutMap map=object().getMap();
34 
35  ss<<std::endl;
36  for (it=map.begin();it!=map.end();++it) {
37  ss <<"LUT "<<(*it).first<<std::endl;
38  const unsigned int * lut=(*it).second.getLut();
39  for (unsigned int i=0;i<1024;++i) ss <<std::hex<<"0x"<<*lut++<<std::endl;
40  }
41 
42  return ss.str();
43  }
44 }
int i
Definition: DBlmapReader.cc:9
#define PYTHON_WRAPPER(_class, _name)
std::string summary() const
tuple lut
Definition: lumiPlot.py:244
list object
Definition: dbtoconf.py:77
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr