Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondCore
EcalPlugins
plugins
EcalTPGWeightIdMapPyWrapper.cc
Go to the documentation of this file.
1
#include "
CondFormats/EcalObjects/interface/EcalTPGWeightIdMap.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<EcalTPGWeightIdMap>::summary
()
const
{
31
std::stringstream ss;
32
33
ss<<std::endl;
34
EcalTPGWeightIdMap::EcalTPGWeightMapItr
it;
35
uint32_t w0,w1,
w2
,
w3
,
w4
;
36
const
EcalTPGWeightIdMap::EcalTPGWeightMap
map
=
object
().getMap();
37
for
(it=map.begin();it!=map.end();++it) {
38
ss <<
"WEIGHT "
<<(*it).first<<std::endl;
39
(*it).second.getValues(w0,w1,w2,w3,w4);
40
ss <<std::hex<<
"0x"
<<w0<<
" 0x"
<<w1<<
" 0x"
<<w2<<
" 0x"
<<w3<<
" 0x"
<<w4<<
" "
<<std::endl;
41
}
42
return
ss.str();
43
}
44
}
45
46
PYTHON_WRAPPER
(
EcalTPGWeightIdMap
,
EcalTPGWeightIdMap
);
EcalTPGWeightIdMap.h
EcalTPGWeightIdMap::EcalTPGWeightMapItr
std::map< uint32_t, EcalTPGWeights >::const_iterator EcalTPGWeightMapItr
Definition:
EcalTPGWeightIdMap.h:12
w2
common ppss p3p6s2 common epss epspn46 common const1 w2
Definition:
inclppp.h:1
PYTHON_WRAPPER
#define PYTHON_WRAPPER(_class, _name)
Definition:
InspectorPythonWrapper.h:48
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
Association.map
dictionary map
Definition:
Association.py:205
cond::PayLoadInspector::summary
std::string summary() const
Definition:
PayLoadInspector.h:103
w4
common ppss p3p6s2 common epss epspn46 common const1 w4
Definition:
inclppp.h:1
InspectorPythonWrapper.h
EcalTPGWeightIdMap::EcalTPGWeightMap
std::map< uint32_t, EcalTPGWeights > EcalTPGWeightMap
Definition:
EcalTPGWeightIdMap.h:11
dbtoconf.object
list object
Definition:
dbtoconf.py:77
w3
common ppss p3p6s2 common epss epspn46 common const1 w3
Definition:
inclppp.h:1
EcalTPGWeightIdMap
Definition:
EcalTPGWeightIdMap.h:8
EBDetId.h
EEDetId.h
EcalCondHeader.h
PayLoadInspector.h
Generated for CMSSW Reference Manual by
1.8.5