00001 #ifndef RecoTauTag_RecoTau_PFRecoTauDiscriminationByLeadingTrackPtCut_H_ 00002 #define RecoTauTag_RecoTau_PFRecoTauDiscriminationByLeadingTrackPtCut_H_ 00003 00004 /* class PFRecoTauDiscriminationByLeadingTrackPtCut 00005 * created : October 08 2008, 00006 * revised : , 00007 * Authorss : Simone Gennai (SNS) 00008 */ 00009 00010 #include "FWCore/Framework/interface/EDProducer.h" 00011 #include "FWCore/Framework/interface/ESHandle.h" 00012 #include "FWCore/Framework/interface/Event.h" 00013 #include "FWCore/Framework/interface/EventSetup.h" 00014 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00015 00016 #include "DataFormats/TauReco/interface/PFTau.h" 00017 #include "DataFormats/TauReco/interface/PFTauDiscriminator.h" 00018 #include "DataFormats/TrackReco/interface/Track.h" 00019 00020 00021 using namespace std; 00022 using namespace edm; 00023 //using namespace edm::eventsetup; 00024 using namespace reco; 00025 00026 class PFRecoTauDiscriminationByLeadingTrackPtCut : public EDProducer { 00027 public: 00028 explicit PFRecoTauDiscriminationByLeadingTrackPtCut(const ParameterSet& iConfig){ 00029 PFTauProducer_ = iConfig.getParameter<InputTag>("PFTauProducer"); 00030 minPtLeadTrack_ = iConfig.getParameter<double>("MinPtLeadingTrack"); 00031 produces<PFTauDiscriminator>(); 00032 } 00033 ~PFRecoTauDiscriminationByLeadingTrackPtCut(){} 00034 virtual void produce(Event&, const EventSetup&); 00035 private: 00036 InputTag PFTauProducer_; 00037 double minPtLeadTrack_; 00038 00039 }; 00040 #endif