CMS 3D CMS Logo

SiStripCommissioningBasicPrescaler Class Reference

Description: simply filter acording to the run type. More...

#include <myTestArea/SiStripCommissioningBasicPrescaler/src/SiStripCommissioningBasicPrescaler.cc>

Inheritance diagram for SiStripCommissioningBasicPrescaler:

edm::EDFilter edm::ProducerBase edm::ProductRegistryHelper

List of all members.

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_


Detailed Description

Description: simply filter acording to the run type.

Implementation: Uses information from SiStripEventSummary, so it has to be called after Raw2Digi.

Definition at line 24 of file SiStripCommissioningBasicPrescaler.h.


Constructor & Destructor Documentation

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]

Definition at line 27 of file SiStripCommissioningBasicPrescaler.h.

00027 {}


Member Function Documentation

virtual void SiStripCommissioningBasicPrescaler::beginJob ( const edm::EventSetup  )  [inline, private, virtual]

Reimplemented from edm::EDFilter.

Definition at line 30 of file SiStripCommissioningBasicPrescaler.h.

00030 {}

virtual void SiStripCommissioningBasicPrescaler::endJob ( void   )  [inline, private, virtual]

Reimplemented from edm::EDFilter.

Definition at line 32 of file SiStripCommissioningBasicPrescaler.h.

00032 {}

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 }


Member Data Documentation

uint32_t SiStripCommissioningBasicPrescaler::factor_ [private]

Definition at line 34 of file SiStripCommissioningBasicPrescaler.h.

Referenced by filter(), and SiStripCommissioningBasicPrescaler().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:14 2009 for CMSSW by  doxygen 1.5.4