Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondCore
EcalPlugins
plugins
EcalTPGLutIdMapPyWrapper.cc
Go to the documentation of this file.
1
#include "
CondFormats/EcalObjects/interface/EcalTPGLutIdMap.h
"
2
//#include "CondTools/Ecal/interface/EcalTPGFineGrainEBMapXMLTranslator.h"
3
#include "
CondTools/Ecal/interface/EcalCondHeader.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"
10
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
11
#include "
DataFormats/EcalDetId/interface/EEDetId.h
"
12
13
#include "
CondCore/Utilities/interface/PayLoadInspector.h
"
14
#include "
CondCore/Utilities/interface/InspectorPythonWrapper.h
"
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
<>
30
std::string
PayLoadInspector<EcalTPGLutIdMap>::summary
()
const
{
31
std::stringstream
ss
;
32
EcalTPGLutIdMap::EcalTPGLutMapItr
it;
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
}
45
PYTHON_WRAPPER
(
EcalTPGLutIdMap
,
EcalTPGLutIdMap
);
i
int i
Definition:
DBlmapReader.cc:9
PYTHON_WRAPPER
#define PYTHON_WRAPPER(_class, _name)
Definition:
InspectorPythonWrapper.h:48
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
cond::PayLoadInspector::summary
std::string summary() const
Definition:
PayLoadInspector.h:103
python.multivaluedict.map
def map
Definition:
multivaluedict.py:125
InspectorPythonWrapper.h
EcalTPGLutIdMap
Definition:
EcalTPGLutIdMap.h:10
lumiPlot.lut
tuple lut
Definition:
lumiPlot.py:244
EcalTPGLutIdMap.h
dbtoconf.object
list object
Definition:
dbtoconf.py:77
EcalTPGLutIdMap::EcalTPGLutMap
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
Definition:
EcalTPGLutIdMap.h:13
contentValuesCheck.ss
list ss
Definition:
contentValuesCheck.py:32
EBDetId.h
EEDetId.h
EcalCondHeader.h
EcalTPGLutIdMap::EcalTPGLutMapItr
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr
Definition:
EcalTPGLutIdMap.h:14
PayLoadInspector.h
Generated for CMSSW Reference Manual by
1.8.5