CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/GeneratorInterface/GenFilters/interface/MCZll.h

Go to the documentation of this file.
00001 #ifndef MCZll_h
00002 #define MCZll_h
00003 // -*- C++ -*-
00004 //
00005 // Package:    MCZll
00006 // Class:      MCZll
00007 // 
00008 /* 
00009 
00010  Description: filter events based on the Pythia ProcessID and the Pt_hat
00011 
00012  Implementation: inherits from generic EDFilter
00013      
00014 */
00015 //
00016 // Original Author:  Paolo Meridiani
00017 // $Id: MCZll.h,v 1.2 2010/07/21 04:23:24 wmtan Exp $
00018 //
00019 //
00020 
00021 
00022 // system include files
00023 #include <memory>
00024 
00025 // user include files
00026 #include "FWCore/Framework/interface/Frameworkfwd.h"
00027 #include "FWCore/Framework/interface/EDFilter.h"
00028 
00029 #include "FWCore/Framework/interface/Event.h"
00030 #include "FWCore/Framework/interface/MakerMacros.h"
00031 
00032 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00033 
00034 
00035 //
00036 // class decleration
00037 //
00038 
00039 class MCZll : public edm::EDFilter {
00040    public:
00041       explicit MCZll(const edm::ParameterSet&);
00042       ~MCZll();
00043       virtual void endJob() ;
00044 
00045       virtual bool filter(edm::Event&, const edm::EventSetup&);
00046    private:
00047       // ----------member data ---------------------------
00048       std::string label_;
00049       int leptonFlavour_;
00050       double leptonPtMin_;
00051       double leptonPtMax_;
00052       double leptonEtaMin_;
00053       double leptonEtaMax_;
00054       std::pair<double,double> zMassRange_;
00055       unsigned int  nEvents_;
00056       unsigned int nAccepted_;
00057       bool filter_;
00058 };
00059 #endif