00001 #ifndef RecoSelector_h 00002 #define RecoSelector_h 00003 00004 /* \class RecoSelector 00005 * 00006 * Class to apply analysis cuts in the TriggerValidation Code 00007 * 00008 * Author: Massimiliano Chiorboli Date: August 2007 00009 // Maurizio Pierini 00010 // Maria Spiropulu 00011 * 00012 */ 00013 #include <memory> 00014 #include <string> 00015 #include <iostream> 00016 00017 #include "FWCore/Framework/interface/Event.h" 00018 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00019 #include "DataFormats/Common/interface/Handle.h" 00020 00021 #include "DataFormats/EgammaCandidates/interface/GsfElectron.h" 00022 #include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h" 00023 #include "DataFormats/EgammaCandidates/interface/Photon.h" 00024 #include "DataFormats/EgammaCandidates/interface/PhotonFwd.h" 00025 #include "DataFormats/MuonReco/interface/Muon.h" 00026 #include "DataFormats/MuonReco/interface/MuonFwd.h" 00027 #include "DataFormats/JetReco/interface/Jet.h" 00028 #include "DataFormats/JetReco/interface/CaloJetCollection.h" 00029 #include "DataFormats/JetReco/interface/CaloJet.h" 00030 #include "DataFormats/METReco/interface/CaloMET.h" 00031 #include "DataFormats/METReco/interface/CaloMETCollection.h" 00032 00033 class RecoSelector { 00034 00035 public: 00036 00037 //Constructor 00038 RecoSelector(edm::ParameterSet userCut_params); 00039 //Destructor 00040 virtual ~RecoSelector(){}; 00041 00042 //Methods 00043 void handleObjects(const edm::Event&); 00044 bool isSelected(const edm::Event&); 00045 std::string GetName(); 00046 00047 private: 00048 00049 // Define the parameters 00050 std::string name; 00051 std::string m_electronSrc; 00052 std::string m_muonSrc; 00053 std::string m_jetsSrc; 00054 std::string m_photonSrc; 00055 std::string m_photonProducerSrc; 00056 std::string m_calometSrc; 00057 double reco_metMin; 00058 double reco_ptJet1Min; 00059 double reco_ptJet2Min; 00060 double reco_ptElecMin; 00061 double reco_ptMuonMin; 00062 double reco_ptPhotMin; 00063 00064 const reco::GsfElectronCollection* theElectronCollection; 00065 const reco::MuonCollection* theMuonCollection ; 00066 const reco::PhotonCollection* thePhotonCollection ; 00067 const reco::CaloJetCollection* theCaloJetCollection ; 00068 const reco::CaloMETCollection* theCaloMETCollection ; 00069 00070 }; 00071 00072 #endif