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
Validation
MuonCSCDigis
src
CSCCLCTDigiValidation.cc
Go to the documentation of this file.
1
#include "
DataFormats/Common/interface/Handle.h
"
2
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
3
#include "
Validation/MuonCSCDigis/interface/CSCCLCTDigiValidation.h
"
4
5
#include "
DQMServices/Core/interface/DQMStore.h
"
6
#include "
Geometry/CSCGeometry/interface/CSCGeometry.h
"
7
#include "
Geometry/CSCGeometry/interface/CSCLayerGeometry.h
"
8
9
CSCCLCTDigiValidation::CSCCLCTDigiValidation
(
const
edm::ParameterSet
&ps,
edm::ConsumesCollector
&&iC)
10
:
CSCBaseValidation
(ps), theTimeBinPlots(), theNDigisPerChamberPlots() {
11
const
auto
&
pset
= ps.
getParameterSet
(
"cscCLCT"
);
12
inputTag_
=
pset
.getParameter<
edm::InputTag
>(
"inputTag"
);
13
clcts_Token_
= iC.consumes<
CSCCLCTDigiCollection
>(
inputTag_
);
14
}
15
16
CSCCLCTDigiValidation::~CSCCLCTDigiValidation
() {}
17
18
void
CSCCLCTDigiValidation::bookHistograms
(
DQMStore::IBooker
&iBooker) {
19
theNDigisPerEventPlot
= iBooker.
book1D
(
20
"CSCCLCTDigisPerEvent"
,
"CLCT trigger primitives per event; Number of CLCTs; Entries"
, 100, 0, 100);
21
for
(
int
i
= 1;
i
<= 10; ++
i
) {
22
const
std::string
t1
(
"CSCCLCTDigiTime_"
+
CSCDetId::chamberName
(
i
));
23
const
std::string
t2
(
"CSCCLCTDigisPerChamber_"
+
CSCDetId::chamberName
(
i
));
24
theTimeBinPlots
[
i
- 1] = iBooker.
book1D
(
t1
,
"CLCT BX "
+
CSCDetId::chamberName
(
i
) +
";CLCT BX; Entries"
, 16, 0, 16);
25
theNDigisPerChamberPlots
[
i
- 1] = iBooker.
book1D
(
26
t2
,
"Number of CLCTs per chamber "
+
CSCDetId::chamberName
(
i
) +
";Number of CLCTs per chamber;Entries"
, 4, 0, 4);
27
}
28
}
29
30
void
CSCCLCTDigiValidation::analyze
(
const
edm::Event
&
e
,
const
edm::EventSetup
&) {
31
edm::Handle<CSCCLCTDigiCollection>
clcts;
32
e
.getByToken(
clcts_Token_
, clcts);
33
if
(!clcts.
isValid
()) {
34
edm::LogError
(
"CSCDigiDump"
) <<
"Cannot get CLCTs by label "
<<
inputTag_
.
encode
();
35
}
36
37
unsigned
nDigisPerEvent = 0;
38
39
for
(
auto
j
= clcts->begin();
j
!= clcts->end();
j
++) {
40
auto
beginDigi = (*j).second.first;
41
auto
endDigi = (*j).second.second;
42
CSCDetId
detId((*j).first.rawId());
43
int
chamberType = detId.
iChamberType
();
44
45
int
nDigis = endDigi - beginDigi;
46
nDigisPerEvent += nDigis;
47
theNDigisPerChamberPlots
[chamberType - 1]->
Fill
(nDigis);
48
49
for
(
auto
digiItr = beginDigi; digiItr != endDigi; ++digiItr) {
50
theTimeBinPlots
[chamberType - 1]->
Fill
(digiItr->getBX());
51
}
52
}
53
theNDigisPerEventPlot
->
Fill
(nDigisPerEvent);
54
}
RandomServiceHelper.t2
t2
Definition:
RandomServiceHelper.py:257
Handle.h
mps_fire.i
i
Definition:
mps_fire.py:428
MessageLogger.h
CSCCLCTDigiValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &)
Definition:
CSCCLCTDigiValidation.cc:18
CSCCLCTDigiValidation::~CSCCLCTDigiValidation
~CSCCLCTDigiValidation() override
Definition:
CSCCLCTDigiValidation.cc:16
DQMStore.h
CSCCLCTDigiValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
CSCCLCTDigiValidation.cc:30
edm::Handle< CSCCLCTDigiCollection >
CSCDetId::iChamberType
unsigned short iChamberType() const
Definition:
CSCDetId.h:96
RandomServiceHelper.t1
t1
Definition:
RandomServiceHelper.py:256
CSCCLCTDigiValidation.h
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition:
MonitorElement.h:290
CSCLayerGeometry.h
CSCCLCTDigiValidation::theNDigisPerEventPlot
MonitorElement * theNDigisPerEventPlot
Definition:
CSCCLCTDigiValidation.h:23
CSCCLCTDigiValidation::CSCCLCTDigiValidation
CSCCLCTDigiValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
Definition:
CSCCLCTDigiValidation.cc:9
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CSCCLCTDigiValidation::inputTag_
edm::InputTag inputTag_
Definition:
CSCCLCTDigiValidation.h:20
edm::ParameterSet
Definition:
ParameterSet.h:47
CSCDetId
Definition:
CSCDetId.h:26
CSCCLCTDigiValidation::theTimeBinPlots
MonitorElement * theTimeBinPlots[10]
Definition:
CSCCLCTDigiValidation.h:21
edm::InputTag::encode
std::string encode() const
Definition:
InputTag.cc:159
edm::EventSetup
Definition:
EventSetup.h:58
edm::LogError
Log< level::Error, false > LogError
Definition:
MessageLogger.h:123
CSCCLCTDigiValidation::theNDigisPerChamberPlots
MonitorElement * theNDigisPerChamberPlots[10]
Definition:
CSCCLCTDigiValidation.h:22
CSCCLCTDigiCollection
CSCDetId::chamberName
std::string chamberName() const
Definition:
CSCDetId.cc:74
dqm::implementation::IBooker
Definition:
DQMStore.h:43
CSCCLCTDigiValidation::clcts_Token_
edm::EDGetTokenT< CSCCLCTDigiCollection > clcts_Token_
Definition:
CSCCLCTDigiValidation.h:19
CSCBaseValidation
Definition:
CSCBaseValidation.h:14
dqmiolumiharvest.j
j
Definition:
dqmiolumiharvest.py:66
edm::HandleBase::isValid
bool isValid() const
Definition:
HandleBase.h:70
edm::Event
Definition:
Event.h:73
edm::InputTag
Definition:
InputTag.h:15
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition:
ParameterSet.cc:2128
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition:
DQMStore.h:98
CSCGeometry.h
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16