test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondCore
RPCPlugins
plugins
RPCObPVSSmapPyWrapper.cc
Go to the documentation of this file.
1
#include "
CondFormats/RPCObjects/interface/RPCObPVSSmap.h
"
2
#include "
CondCore/Utilities/interface/PayLoadInspector.h
"
3
#include "
CondCore/Utilities/interface/InspectorPythonWrapper.h
"
4
5
#include <string>
6
#include <fstream>
7
#include <sstream>
8
#include <iostream>
9
10
namespace
cond {
11
12
template
<>
13
class
ValueExtractor
<
RPCObPVSSmap
>:
public
BaseValueExtractor
<RPCObPVSSmap> {
14
public
:
15
16
typedef
RPCObPVSSmap
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
template
<>
32
std::string
PayLoadInspector<RPCObPVSSmap>::summary
()
const
{
33
std::stringstream
ss
;
34
35
std::vector<RPCObPVSSmap::Item>
const
& vdetid =
object
().ObIDMap_rpc;
36
37
38
for
(
unsigned
int
i
= 0;
i
< vdetid.size(); ++
i
){
39
ss <<vdetid[
i
].dpid <<
" "
<<vdetid[
i
].region<<
" "
<<vdetid[
i
].ring<<
" "
<<vdetid[
i
].sector<<
" "
<<vdetid[
i
].station<<
" "
<<vdetid[
i
].layer<<
" "
<<vdetid[
i
].subsector<<
" "
<<vdetid[
i
].suptype<<
" "
;
40
}
41
42
return
ss.str();
43
}
44
45
46
template
<>
47
std::string
PayLoadInspector<RPCObPVSSmap>::plot
(
std::string
const
&
filename
,
48
std::string
const
&,
49
std::vector<int>
const
&,
50
std::vector<float>
const
& )
const
{
51
std::string
fname
= filename +
".png"
;
52
std::ofstream
f
(fname.c_str());
53
return
fname
;
54
}
55
56
57
}
58
59
60
PYTHON_WRAPPER
(
RPCObPVSSmap
,
RPCObPVSSmap
);
61
i
int i
Definition:
DBlmapReader.cc:9
cond::PayLoadInspector::plot
std::string plot(std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &) const
Definition:
PayLoadInspector.h:108
cond::ValueExtractor::What
ExtractWhat< Class > What
Definition:
PayLoadInspector.h:55
PYTHON_WRAPPER
#define PYTHON_WRAPPER(_class, _name)
Definition:
InspectorPythonWrapper.h:48
cond::ValueExtractor< RPCObPVSSmap >::ValueExtractor
ValueExtractor()
Definition:
RPCObPVSSmapPyWrapper.cc:20
cond::ValueExtractor< RPCObPVSSmap >::what
static What what()
Definition:
RPCObPVSSmapPyWrapper.cc:18
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
cond::PayLoadInspector::summary
std::string summary() const
Definition:
PayLoadInspector.h:101
cond::ValueExtractor::what
static What what()
Definition:
PayLoadInspector.h:58
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
InspectorPythonWrapper.h
cond::ExtractWhat< Class >
cond::ValueExtractor
Definition:
PayLoadInspector.h:52
RPCObPVSSmap
Definition:
RPCObPVSSmap.h:17
RPCObPVSSmap.h
cond::ValueExtractor< RPCObPVSSmap >::ValueExtractor
ValueExtractor(What const &what)
Definition:
RPCObPVSSmapPyWrapper.cc:21
cond::ValueExtractor< RPCObPVSSmap >::What
ExtractWhat< Class > What
Definition:
RPCObPVSSmapPyWrapper.cc:17
cond::BaseValueExtractor
Definition:
PayLoadInspector.h:18
cond::ValueExtractor< RPCObPVSSmap >::compute
void compute(Class const &it) override
Definition:
RPCObPVSSmapPyWrapper.cc:25
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
PayLoadInspector.h
cond::ValueExtractor< RPCObPVSSmap >::Class
RPCObPVSSmap Class
Definition:
RPCObPVSSmapPyWrapper.cc:16
Generated for CMSSW Reference Manual by
1.8.5