Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondCore
EcalPlugins
plugins
ESGainPyWrapper.cc
Go to the documentation of this file.
1
#include "
CondFormats/ESObjects/interface/ESGain.h
"
2
#include "
CondTools/Ecal/interface/ESGainXMLTranslator.h
"
3
#include "
CondCore/Utilities/interface/PayLoadInspector.h
"
4
#include "
CondCore/Utilities/interface/InspectorPythonWrapper.h
"
5
6
#include <string>
7
#include <fstream>
8
9
namespace
cond {
10
11
template
<>
12
class
ValueExtractor
<
ESGain
>:
public
BaseValueExtractor
<ESGain> {
13
public
:
14
15
typedef
ESGain
Class
;
16
typedef
ExtractWhat<Class>
What
;
17
static
What
what
() {
return
What
();}
18
19
ValueExtractor
(){}
20
ValueExtractor
(
What
const
&
what
)
21
{
22
// here one can make stuff really complicated...
23
}
24
void
compute
(
Class
const
& it)
override
{
25
}
26
private
:
27
28
};
29
30
31
template
<>
32
std::string
33
PayLoadInspector<ESGain>::dump
()
const
{
34
std::stringstream ss;
35
EcalCondHeader
h
;
36
ss<<
ESGainXMLTranslator::dumpXML
(h,
object
());
37
return
ss.str();
38
39
}
40
41
template
<>
42
std::string
PayLoadInspector<ESGain>::summary
()
const
{
43
std::stringstream ss;
44
object
().print(ss);
45
return
ss.str();
46
}
47
48
49
template
<>
50
std::string
PayLoadInspector<ESGain>::plot
(
std::string
const
&
filename
,
51
std::string
const
&,
52
std::vector<int>
const
&,
53
std::vector<float>
const
& )
const
{
54
std::string
fname
= filename +
".png"
;
55
std::ofstream
f
(fname.c_str());
56
return
fname
;
57
}
58
59
60
}
61
62
PYTHON_WRAPPER
(
ESGain
,
ESGain
);
ESGainXMLTranslator::dumpXML
static std::string dumpXML(const EcalCondHeader &header, const ESGain &record)
Definition:
ESGainXMLTranslator.cc:30
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
ESGain.h
cond::ValueExtractor< ESGain >::What
ExtractWhat< Class > What
Definition:
ESGainPyWrapper.cc:16
cond::ValueExtractor< ESGain >::Class
ESGain Class
Definition:
ESGainPyWrapper.cc:15
cond::ValueExtractor< ESGain >::ValueExtractor
ValueExtractor()
Definition:
ESGainPyWrapper.cc:19
cond::ValueExtractor::What
ExtractWhat< Class > What
Definition:
PayLoadInspector.h:56
ESGain
Definition:
ESGain.h:5
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
cond::ValueExtractor::what
static What what()
Definition:
PayLoadInspector.h:59
ESGainXMLTranslator.h
EcalCondHeader
Definition:
EcalCondHeader.h:17
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
InspectorPythonWrapper.h
cond::ValueExtractor< ESGain >::compute
void compute(Class const &it) override
Definition:
ESGainPyWrapper.cc:24
cond::ExtractWhat< Class >
cond::ValueExtractor
Definition:
PayLoadInspector.h:53
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::BaseValueExtractor
Definition:
PayLoadInspector.h:19
dbtoconf.object
list object
Definition:
dbtoconf.py:77
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:957
cond::ValueExtractor< ESGain >::ValueExtractor
ValueExtractor(What const &what)
Definition:
ESGainPyWrapper.cc:20
cond::ValueExtractor< ESGain >::what
static What what()
Definition:
ESGainPyWrapper.cc:17
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