Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondCore
EcalPlugins
plugins
EcalTBWeightsPyWrapper.cc
Go to the documentation of this file.
1
2
#include "
CondFormats/EcalObjects/interface/EcalTBWeights.h
"
3
#include "
CondTools/Ecal/interface/EcalTBWeightsXMLTranslator.h
"
4
#include "
CondCore/Utilities/interface/PayLoadInspector.h
"
5
#include "
CondCore/Utilities/interface/InspectorPythonWrapper.h
"
6
7
#include <string>
8
#include <fstream>
9
10
namespace
cond {
11
12
template
<>
13
class
ValueExtractor
<
EcalTBWeights
>:
public
BaseValueExtractor
<EcalTBWeights> {
14
public
:
15
16
typedef
EcalTBWeights
Class
;
17
typedef
ExtractWhat<Class>
What
;
18
static
What
what
() {
return
What
();}
19
20
ValueExtractor
(){}
21
ValueExtractor
(
What
const
&
what
)
22
{
23
// here one can make stuff really complicated...
24
}
25
void
compute
(
Class
const
& it){
26
}
27
private
:
28
29
};
30
31
32
template
<>
33
std::string
34
PayLoadInspector<EcalTBWeights>::dump
()
const
{
35
36
std::stringstream ss;
37
EcalCondHeader
h
;
38
ss<<
EcalTBWeightsXMLTranslator::dumpXML
(h,
object
());
39
return
ss.str();
40
41
42
}
43
44
template
<>
45
std::string
PayLoadInspector<EcalTBWeights>::summary
()
const
{
46
std::stringstream ss;
47
EcalCondHeader
h
;
48
ss<<
EcalTBWeightsXMLTranslator::dumpXML
(h,
object
());
49
return
ss.str();
50
}
51
52
53
template
<>
54
std::string
PayLoadInspector<EcalTBWeights>::plot
(std::string
const
&
filename
,
55
std::string
const
&,
56
std::vector<int>
const
&,
57
std::vector<float>
const
& )
const
{
58
std::string
fname
= filename +
".png"
;
59
std::ofstream
f
(fname.c_str());
60
return
fname
;
61
}
62
63
64
}
65
66
PYTHON_WRAPPER
(
EcalTBWeights
,
EcalTBWeights
);
EcalTBWeightsXMLTranslator::dumpXML
static std::string dumpXML(const EcalCondHeader &header, const EcalTBWeights &record)
Definition:
EcalTBWeightsXMLTranslator.cc:353
EcalTBWeights
Definition:
EcalTBWeights.h:16
cond::PayLoadInspector::plot
std::string plot(std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &) const
Definition:
PayLoadInspector.h:110
cond::ValueExtractor< EcalTBWeights >::ValueExtractor
ValueExtractor(What const &what)
Definition:
EcalTBWeightsPyWrapper.cc:21
cond::ValueExtractor::What
ExtractWhat< Class > What
Definition:
PayLoadInspector.h:56
PYTHON_WRAPPER
#define PYTHON_WRAPPER(_class, _name)
Definition:
InspectorPythonWrapper.h:48
cond::ValueExtractor< EcalTBWeights >::Class
EcalTBWeights Class
Definition:
EcalTBWeightsPyWrapper.cc:16
cond::PayLoadInspector::summary
std::string summary() const
Definition:
PayLoadInspector.h:103
cond::ValueExtractor::what
static What what()
Definition:
PayLoadInspector.h:59
EcalTBWeightsXMLTranslator.h
cond::ValueExtractor< EcalTBWeights >::What
ExtractWhat< Class > What
Definition:
EcalTBWeightsPyWrapper.cc:17
cond::ValueExtractor< EcalTBWeights >::ValueExtractor
ValueExtractor()
Definition:
EcalTBWeightsPyWrapper.cc:20
EcalCondHeader
Definition:
EcalCondHeader.h:17
f
double f[11][100]
Definition:
MuScleFitUtils.cc:80
InspectorPythonWrapper.h
cond::ExtractWhat< Class >
cond::ValueExtractor
Definition:
PayLoadInspector.h:53
EcalTBWeights.h
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
cond::ValueExtractor< EcalTBWeights >::what
static What what()
Definition:
EcalTBWeightsPyWrapper.cc:18
cond::ValueExtractor< EcalTBWeights >::compute
void compute(Class const &it)
Definition:
EcalTBWeightsPyWrapper.cc:25
cond::BaseValueExtractor
Definition:
PayLoadInspector.h:19
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:957
lut2db_cfg.filename
tuple filename
Definition:
lut2db_cfg.py:20
cond::PayLoadInspector::dump
std::string dump() const
Definition:
PayLoadInspector.h:93
PayLoadInspector.h
Generated for CMSSW Reference Manual by
1.8.5