DQM
SiStripCommissioningSources
plugins
SiStripCommissioningBasicPrescaler.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: SiStripCommissioningBasicPrescaler
4
// Class: SiStripCommissioningBasicPrescaler
5
//
13
//
14
// Original Author: Christophe DELAERE
15
// Created: Fri Jan 18 12:17:46 CET 2008
16
//
17
//
18
19
// system include files
20
#include <memory>
21
22
// user include files
23
#include "
DQM/SiStripCommissioningSources/interface/SiStripCommissioningBasicPrescaler.h
"
24
25
//
26
// constructors and destructor
27
//
28
SiStripCommissioningBasicPrescaler::SiStripCommissioningBasicPrescaler
(
const
edm::ParameterSet
& iConfig) {
29
//now do what ever initialization is needed
30
factor_
= iConfig.
getParameter
<uint32_t>(
"ScaleFactor"
);
31
}
32
33
//
34
// member functions
35
//
36
37
// ------------ method called on each new Event ------------
38
bool
SiStripCommissioningBasicPrescaler::filter
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup) {
39
using namespace
edm
;
40
bool
result
= ((
iEvent
.id().event() %
factor_
) == 0);
41
return
result
;
42
}
edm
HLT enums.
Definition:
AlignableModifier.h:19
SiStripCommissioningBasicPrescaler::factor_
uint32_t factor_
Definition:
SiStripCommissioningBasicPrescaler.h:32
SiStripCommissioningBasicPrescaler::SiStripCommissioningBasicPrescaler
SiStripCommissioningBasicPrescaler(const edm::ParameterSet &)
Definition:
SiStripCommissioningBasicPrescaler.cc:28
edm::ParameterSet
Definition:
ParameterSet.h:47
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:58
SiStripCommissioningBasicPrescaler::filter
bool filter(edm::Event &, const edm::EventSetup &) override
Definition:
SiStripCommissioningBasicPrescaler.cc:38
SiStripCommissioningBasicPrescaler.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
mps_fire.result
result
Definition:
mps_fire.py:311
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.16