Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondCore
EcalPlugins
plugins
EcalWeightXtalGroupsPyWrapper.cc
Go to the documentation of this file.
1
2
#include "
CondFormats/EcalObjects/interface/EcalWeightXtalGroups.h
"
3
#include "
CondTools/Ecal/interface/EcalWeightGroupXMLTranslator.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
<
EcalWeightXtalGroups
>:
public
BaseValueExtractor
<EcalWeightXtalGroups> {
14
public
:
15
16
typedef
EcalWeightXtalGroups
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)
override
{
26
}
27
private
:
28
29
};
30
31
32
template
<>
33
std::string
34
PayLoadInspector<EcalWeightXtalGroups>::dump
()
const
{
35
std::stringstream
ss
;
36
EcalCondHeader
h
;
37
ss<<
EcalWeightGroupXMLTranslator::dumpXML
(h,
object
());
38
return
ss.str();
39
40
}
41
42
template
<>
43
std::string
PayLoadInspector<EcalWeightXtalGroups>::summary
()
const
{
44
std::stringstream
ss
;
45
return
ss.str();
46
}
47
48
49
template
<>
50
std::string
PayLoadInspector<EcalWeightXtalGroups>::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
(
EcalWeightXtalGroups
,
EcalWeightXtalGroups
);
cond::ValueExtractor< EcalWeightXtalGroups >::compute
void compute(Class const &it) override
Definition:
EcalWeightXtalGroupsPyWrapper.cc:25
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::What
ExtractWhat< Class > What
Definition:
PayLoadInspector.h:56
cond::ValueExtractor< EcalWeightXtalGroups >::ValueExtractor
ValueExtractor(What const &what)
Definition:
EcalWeightXtalGroupsPyWrapper.cc:21
cond::ValueExtractor< EcalWeightXtalGroups >::ValueExtractor
ValueExtractor()
Definition:
EcalWeightXtalGroupsPyWrapper.cc:20
EcalWeightGroupXMLTranslator.h
PYTHON_WRAPPER
#define PYTHON_WRAPPER(_class, _name)
Definition:
InspectorPythonWrapper.h:48
cond::ValueExtractor< EcalWeightXtalGroups >::Class
EcalWeightXtalGroups Class
Definition:
EcalWeightXtalGroupsPyWrapper.cc:16
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
cond::ValueExtractor< EcalWeightXtalGroups >::what
static What what()
Definition:
EcalWeightXtalGroupsPyWrapper.cc:18
EcalCondHeader
Definition:
EcalCondHeader.h:17
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
InspectorPythonWrapper.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::ExtractWhat< Class >
cond::ValueExtractor
Definition:
PayLoadInspector.h:53
EcalWeightGroupXMLTranslator::dumpXML
static std::string dumpXML(const EcalCondHeader &header, const EcalWeightXtalGroups &record)
Definition:
EcalWeightGroupXMLTranslator.cc:98
cond::BaseValueExtractor
Definition:
PayLoadInspector.h:19
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:957
EcalWeightXtalGroups.h
contentValuesCheck.ss
list ss
Definition:
contentValuesCheck.py:32
lut2db_cfg.filename
tuple filename
Definition:
lut2db_cfg.py:20
cond::ValueExtractor< EcalWeightXtalGroups >::What
ExtractWhat< Class > What
Definition:
EcalWeightXtalGroupsPyWrapper.cc:17
cond::PayLoadInspector::dump
std::string dump() const
Definition:
PayLoadInspector.h:93
PayLoadInspector.h
EcalCondObjectContainer< EcalXtalGroupId >
Generated for CMSSW Reference Manual by
1.8.5