Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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:44
SiStripCommissioningBasicPrescaler.h
SiStripCommissioningBasicPrescaler::factor_
uint32_t factor_
Definition:
SiStripCommissioningBasicPrescaler.h:36
iEvent
int iEvent
Definition:
GenABIO.cc:243
query.result
tuple result
Definition:
query.py:137
edm::EventSetup
Definition:
EventSetup.h:44
SiStripCommissioningBasicPrescaler::SiStripCommissioningBasicPrescaler
SiStripCommissioningBasicPrescaler(const edm::ParameterSet &)
Definition:
SiStripCommissioningBasicPrescaler.cc:29
edm::EventBase::id
edm::EventID id() const
Definition:
EventBase.h:56
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:62
SiStripCommissioningBasicPrescaler::filter
virtual bool filter(edm::Event &, const edm::EventSetup &) override
Definition:
SiStripCommissioningBasicPrescaler.cc:41
Generated for CMSSW Reference Manual by
1.8.5