#include <myTestArea/SiStripCommissioningBasicPrescaler/src/SiStripCommissioningBasicPrescaler.cc>
Public Member Functions | |
SiStripCommissioningBasicPrescaler (const edm::ParameterSet &) | |
~SiStripCommissioningBasicPrescaler () | |
Private Member Functions | |
virtual void | beginJob (const edm::EventSetup &) |
virtual void | endJob () |
virtual bool | filter (edm::Event &, const edm::EventSetup &) |
Private Attributes | |
uint32_t | factor_ |
Implementation: Uses information from SiStripEventSummary, so it has to be called after Raw2Digi.
Definition at line 24 of file SiStripCommissioningBasicPrescaler.h.
SiStripCommissioningBasicPrescaler::SiStripCommissioningBasicPrescaler | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 30 of file SiStripCommissioningBasicPrescaler.cc.
References factor_, and edm::ParameterSet::getParameter().
00031 { 00032 //now do what ever initialization is needed 00033 factor_ = iConfig.getParameter<uint32_t>( "ScaleFactor" ) ; 00034 }
SiStripCommissioningBasicPrescaler::~SiStripCommissioningBasicPrescaler | ( | ) | [inline] |
virtual void SiStripCommissioningBasicPrescaler::beginJob | ( | const edm::EventSetup & | ) | [inline, private, virtual] |
Reimplemented from edm::EDFilter.
Definition at line 30 of file SiStripCommissioningBasicPrescaler.h.
Reimplemented from edm::EDFilter.
Definition at line 32 of file SiStripCommissioningBasicPrescaler.h.
bool SiStripCommissioningBasicPrescaler::filter | ( | edm::Event & | iEvent, | |
const edm::EventSetup & | iSetup | |||
) | [private, virtual] |
Implements edm::EDFilter.
Definition at line 42 of file SiStripCommissioningBasicPrescaler.cc.
References factor_, edm::Event::id(), and HLT_VtxMuL3::result.
00043 { 00044 using namespace edm; 00045 bool result = ((iEvent.id().event()%factor_)==0); 00046 return result; 00047 }
uint32_t SiStripCommissioningBasicPrescaler::factor_ [private] |
Definition at line 34 of file SiStripCommissioningBasicPrescaler.h.
Referenced by filter(), and SiStripCommissioningBasicPrescaler().