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
// $Id: SiStripCommissioningBasicPrescaler.cc,v 1.1 2008/07/07 16:24:08 delaer Exp $
17
//
18
//
19
20
21
// system include files
22
#include <memory>
23
24
// user include files
25
#include "
DQM/SiStripCommissioningSources/interface/SiStripCommissioningBasicPrescaler.h
"
26
27
//
28
// constructors and destructor
29
//
30
SiStripCommissioningBasicPrescaler::SiStripCommissioningBasicPrescaler
(
const
edm::ParameterSet
& iConfig)
31
{
32
//now do what ever initialization is needed
33
factor_
= iConfig.
getParameter
<uint32_t>(
"ScaleFactor"
) ;
34
}
35
36
//
37
// member functions
38
//
39
40
// ------------ method called on each new Event ------------
41
bool
42
SiStripCommissioningBasicPrescaler::filter
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
43
{
44
using namespace
edm;
45
bool
result
= ((iEvent.
id
().
event
()%
factor_
)==0);
46
return
result
;
47
}
48
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::filter
virtual bool filter(edm::Event &, const edm::EventSetup &)
Definition:
SiStripCommissioningBasicPrescaler.cc:42
SiStripCommissioningBasicPrescaler::SiStripCommissioningBasicPrescaler
SiStripCommissioningBasicPrescaler(const edm::ParameterSet &)
Definition:
SiStripCommissioningBasicPrescaler.cc:30
edm::EventBase::id
edm::EventID id() const
Definition:
EventBase.h:56
edm::ParameterSet
Definition:
ParameterSet.h:31
edm::Event
Definition:
Event.h:49
Generated for CMSSW Reference Manual by
1.8.5