00001 #ifndef Configuration_Skimming_CandidateTriggerObjectProducer_h 00002 #define Configuration_Skimming_CandidateTriggerObjectProducer_h 00003 00016 #include "FWCore/Framework/interface/Event.h" 00017 #include "FWCore/Framework/interface/EDProducer.h" 00018 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00019 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h" 00020 #include "DataFormats/Common/interface/TriggerResults.h" 00021 #include "DataFormats/HLTReco/interface/TriggerEvent.h" 00022 00023 // 00024 // class declaration 00025 // 00026 class CandidateTriggerObjectProducer : public edm::EDProducer { 00027 00028 public: 00029 explicit CandidateTriggerObjectProducer(const edm::ParameterSet&); 00030 ~CandidateTriggerObjectProducer(); 00031 00032 private: 00033 virtual void beginRun(edm::Run& iRun, edm::EventSetup const& iSetup); 00034 virtual void beginJob() {} ; 00035 virtual void produce(edm::Event&, const edm::EventSetup&); 00036 virtual void endJob() {} ; 00037 00039 edm::InputTag triggerResultsTag_; 00040 edm::InputTag triggerEventTag_; 00041 std::string triggerName_; 00042 00044 edm::Handle<edm::TriggerResults> triggerResultsHandle_; 00045 edm::Handle<trigger::TriggerEvent> triggerEventHandle_; 00046 HLTConfigProvider hltConfig_; 00047 00048 }; 00049 #endif