Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondCore
SiStripPlugins
plugins
SiStripBadStripPyWrapper.cc
Go to the documentation of this file.
1
2
#include "
CondFormats/SiStripObjects/interface/SiStripBadStrip.h
"
3
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
<
SiStripBadStrip
>:
public
BaseValueExtractor
<SiStripBadStrip> {
14
public
:
15
16
typedef
SiStripBadStrip
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<SiStripBadStrip>::dump
()
const
{
35
std::stringstream
ss
;
36
object
().printDebug(ss);
37
return
ss.str();
38
}
39
40
template
<>
41
std::string
PayLoadInspector<SiStripBadStrip>::summary
()
const
{
42
std::stringstream
ss
;
43
object
().printSummary(ss);
44
return
ss.str();
45
}
46
47
48
template
<>
49
std::string
PayLoadInspector<SiStripBadStrip>::plot
(
std::string
const
&
filename
,
50
std::string
const
&,
51
std::vector<int>
const
&,
52
std::vector<float>
const
& )
const
{
53
std::string
fname
= filename +
".png"
;
54
std::ofstream
f
(fname.c_str());
55
return
fname
;
56
}
57
58
59
}
60
61
PYTHON_WRAPPER
(
SiStripBadStrip
,
SiStripBadStrip
);
cond::ValueExtractor< SiStripBadStrip >::ValueExtractor
ValueExtractor()
Definition:
SiStripBadStripPyWrapper.cc:20
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
SiStripBadStrip
Definition:
SiStripBadStrip.h:29
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
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
InspectorPythonWrapper.h
cond::ExtractWhat< Class >
cond::ValueExtractor
Definition:
PayLoadInspector.h:53
cond::ValueExtractor< SiStripBadStrip >::What
ExtractWhat< Class > What
Definition:
SiStripBadStripPyWrapper.cc:17
SiStripBadStrip.h
cond::BaseValueExtractor
Definition:
PayLoadInspector.h:19
dbtoconf.object
list object
Definition:
dbtoconf.py:77
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:957
contentValuesCheck.ss
list ss
Definition:
contentValuesCheck.py:32
lut2db_cfg.filename
tuple filename
Definition:
lut2db_cfg.py:20
cond::ValueExtractor< SiStripBadStrip >::Class
SiStripBadStrip Class
Definition:
SiStripBadStripPyWrapper.cc:16
cond::ValueExtractor< SiStripBadStrip >::compute
void compute(Class const &it) override
Definition:
SiStripBadStripPyWrapper.cc:25
cond::ValueExtractor< SiStripBadStrip >::ValueExtractor
ValueExtractor(What const &what)
Definition:
SiStripBadStripPyWrapper.cc:21
cond::PayLoadInspector::dump
std::string dump() const
Definition:
PayLoadInspector.h:93
PayLoadInspector.h
cond::ValueExtractor< SiStripBadStrip >::what
static What what()
Definition:
SiStripBadStripPyWrapper.cc:18
Generated for CMSSW Reference Manual by
1.8.5