Main Page
Namespaces
Classes
Package Documentation
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
20
// system include files
21
#include <memory>
22
23
// user include files
24
#include "
DQM/SiStripCommissioningSources/interface/SiStripCommissioningBasicPrescaler.h
"
25
26
//
27
// constructors and destructor
28
//
29
SiStripCommissioningBasicPrescaler::SiStripCommissioningBasicPrescaler
(
const
edm::ParameterSet
& iConfig)
30
{
31
//now do what ever initialization is needed
32
factor_
= iConfig.
getParameter
<uint32_t>(
"ScaleFactor"
) ;
33
}
34
35
//
36
// member functions
37
//
38
39
// ------------ method called on each new Event ------------
40
bool
41
SiStripCommissioningBasicPrescaler::filter
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
42
{
43
using namespace
edm
;
44
bool
result
= ((iEvent.
id
().
event
()%
factor_
)==0);
45
return
result
;
46
}
47
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::EventID::event
EventNumber_t event() const
Definition:
EventID.h:41
mps_fire.result
result
Definition:
mps_fire.py:113
SiStripCommissioningBasicPrescaler.h
SiStripCommissioningBasicPrescaler::factor_
uint32_t factor_
Definition:
SiStripCommissioningBasicPrescaler.h:36
iEvent
int iEvent
Definition:
GenABIO.cc:230
edm::EventSetup
Definition:
EventSetup.h:45
SiStripCommissioningBasicPrescaler::SiStripCommissioningBasicPrescaler
SiStripCommissioningBasicPrescaler(const edm::ParameterSet &)
Definition:
SiStripCommissioningBasicPrescaler.cc:29
edm::EventBase::id
edm::EventID id() const
Definition:
EventBase.h:60
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:66
SiStripCommissioningBasicPrescaler::filter
virtual bool filter(edm::Event &, const edm::EventSetup &) override
Definition:
SiStripCommissioningBasicPrescaler.cc:41
Generated for CMSSW Reference Manual by
1.8.11