Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
OnlineDB
CSCCondDB
src
CSCAFEBAnalyzer.cc
Go to the documentation of this file.
1
#include <iostream>
2
#include <vector>
3
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
DataFormats/Common/interface/Handle.h
"
6
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
#include "
FWCore/Framework/interface/EventSetup.h
"
8
#include "
FWCore/Framework/interface/ESHandle.h
"
9
10
#include "
OnlineDB/CSCCondDB/interface/CSCAFEBAnalyzer.h
"
11
12
CSCAFEBAnalyzer::CSCAFEBAnalyzer
(
edm::ParameterSet
const
& conf) {
16
17
testname
= conf.
getParameter
<
std::string
>(
"TestName"
);
18
19
if
(
testname
==
"AFEBThresholdScan"
)
20
analysisthr_
.
setup
(conf.
getParameter
<
std::string
>(
"HistogramFile"
));
21
if
(
testname
==
"AFEBConnectivity"
)
22
analysiscnt_
.
setup
(conf.
getParameter
<
std::string
>(
"HistogramFile"
));
23
25
26
CSCSrc_
= conf.
getParameter
<
edm::InputTag
>(
"CSCSrc"
);
27
}
28
29
void
CSCAFEBAnalyzer::analyze
(
edm::Event
const
&
e
,
edm::EventSetup
const
& iSetup) {
30
edm::Handle<CSCWireDigiCollection>
wire_digis;
31
33
34
// const char* modtag="cscunpacker";
35
// e.getByLabel(modtag,"MuonCSCWireDigi",wire_digis);
36
e
.getByLabel(
CSCSrc_
, wire_digis);
37
38
if
(
testname
==
"AFEBThresholdScan"
)
39
analysisthr_
.
analyze
(*wire_digis);
40
if
(
testname
==
"AFEBConnectivity"
)
41
analysiscnt_
.
analyze
(*wire_digis);
42
}
43
44
void
CSCAFEBAnalyzer::endJob
() {
45
if
(
testname
==
"AFEBThresholdScan"
)
46
analysisthr_
.
done
();
47
if
(
testname
==
"AFEBConnectivity"
)
48
analysiscnt_
.
done
();
49
}
CSCAFEBAnalyzer::testname
std::string testname
variables persistent across events should be declared here.
Definition:
CSCAFEBAnalyzer.h:21
CSCAFEBAnalyzer::endJob
void endJob() override
Definition:
CSCAFEBAnalyzer.cc:44
Handle.h
ESHandle.h
EDAnalyzer.h
CSCAFEBThrAnalysis::analyze
void analyze(const CSCWireDigiCollection &wirecltn)
Definition:
CSCAFEBThrAnalysis.cc:127
edm::Handle< CSCWireDigiCollection >
CSCAFEBConnectAnalysis::analyze
void analyze(const CSCWireDigiCollection &wirecltn)
Definition:
CSCAFEBConnectAnalysis.cc:129
CSCAFEBAnalyzer::CSCSrc_
edm::InputTag CSCSrc_
Definition:
CSCAFEBAnalyzer.h:25
CSCAFEBConnectAnalysis::setup
void setup(const std::string &histoFileName)
Definition:
CSCAFEBConnectAnalysis.cc:31
CSCAFEBAnalyzer::analyze
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
Definition:
CSCAFEBAnalyzer.cc:29
CSCAFEBThrAnalysis::done
void done()
Definition:
CSCAFEBThrAnalysis.cc:222
CSCAFEBAnalyzer::analysiscnt_
CSCAFEBConnectAnalysis analysiscnt_
Definition:
CSCAFEBAnalyzer.h:23
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CSCAFEBConnectAnalysis::done
void done()
Definition:
CSCAFEBConnectAnalysis.cc:223
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
CSCAFEBAnalyzer::analysisthr_
CSCAFEBThrAnalysis analysisthr_
Definition:
CSCAFEBAnalyzer.h:22
edm::EventSetup
Definition:
EventSetup.h:58
CSCAFEBAnalyzer::CSCAFEBAnalyzer
CSCAFEBAnalyzer(edm::ParameterSet const &conf)
Definition:
CSCAFEBAnalyzer.cc:12
CSCAFEBAnalyzer.h
CSCAFEBThrAnalysis::setup
void setup(const std::string &histoFileName)
Definition:
CSCAFEBThrAnalysis.cc:32
EventSetup.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
ParameterSet.h
edm::Event
Definition:
Event.h:73
edm::InputTag
Definition:
InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16