CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_8_patch3/src/HLTrigger/HLTcore/interface/HLTPrescaler.h

Go to the documentation of this file.
00001 #ifndef HLTPrescaler_H
00002 #define HLTPrescaler_H
00003 
00017 #include "FWCore/Framework/interface/Frameworkfwd.h"
00018 #include "FWCore/Framework/interface/Event.h"
00019 #include "FWCore/Framework/interface/EDFilter.h"
00020 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00021 #include "FWCore/PrescaleService/interface/PrescaleService.h"
00022 
00023 
00024 class HLTPrescaler : public edm::EDFilter
00025 {
00026 public:
00027   //
00028   // construction/destruction
00029   //
00030   explicit HLTPrescaler(edm::ParameterSet const& iConfig);
00031   virtual ~HLTPrescaler();
00032 
00033 
00034   //
00035   // member functions
00036   //
00037   virtual bool beginLuminosityBlock(edm::LuminosityBlock &lb,
00038                                     edm::EventSetup const& iSetup);
00039   virtual bool filter(edm::Event& iEvent,edm::EventSetup const& iSetup);
00040   virtual void endJob();
00041   
00042   
00043 private:
00044   //
00045   //member data
00046   //
00047 
00049   unsigned int prescaleSet_;
00050 
00052   unsigned int prescaleFactor_;
00053 
00055   unsigned int eventCount_;
00056 
00058   unsigned int acceptCount_;
00059 
00061   unsigned int offsetCount_;
00062   unsigned int offsetPhase_;
00063 
00065   edm::service::PrescaleService* prescaleService_;
00066   
00068   bool newLumi_;
00069 
00071   edm::InputTag gtDigi_;
00072 
00074   static const
00075   unsigned int prescaleSeed_;
00076 
00077 };
00078 
00079 #endif