00001 #ifndef PhysicsTools_PatAlgos_PATTriggerEventProducer_h 00002 #define PhysicsTools_PatAlgos_PATTriggerEventProducer_h 00003 00004 00005 // -*- C++ -*- 00006 // 00007 // Package: PatAlgos 00008 // Class: pat::PATTriggerEventProducer 00009 // 00010 // $Id: PATTriggerEventProducer.h,v 1.1.2.3 2009/03/27 21:31:06 vadler Exp $ 00011 // 00023 #include "FWCore/Framework/interface/Frameworkfwd.h" 00024 #include "FWCore/Framework/interface/EDProducer.h" 00025 00026 #include <string> 00027 #include <vector> 00028 00029 #include "FWCore/Framework/interface/Run.h" 00030 #include "FWCore/Framework/interface/Event.h" 00031 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00032 #include "FWCore/Utilities/interface/InputTag.h" 00033 00034 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h" 00035 #include "DataFormats/Common/interface/TriggerResults.h" 00036 00037 #include "DataFormats/PatCandidates/interface/TriggerObject.h" 00038 #include "DataFormats/PatCandidates/interface/TriggerObjectStandAlone.h" 00039 #include "DataFormats/PatCandidates/interface/TriggerFilter.h" 00040 #include "DataFormats/PatCandidates/interface/TriggerPath.h" 00041 #include "DataFormats/PatCandidates/interface/TriggerEvent.h" 00042 00043 00044 namespace pat { 00045 00046 class PATTriggerEventProducer : public edm::EDProducer { 00047 00048 public: 00049 00050 explicit PATTriggerEventProducer( const edm::ParameterSet & iConfig ); 00051 ~PATTriggerEventProducer(); 00052 00053 private: 00054 00055 virtual void beginRun( edm::Run & iRun, const edm::EventSetup & iSetup ); 00056 virtual void produce( edm::Event & iEvent, const edm::EventSetup & iSetup ); 00057 00058 HLTConfigProvider hltConfig_; 00059 std::string nameProcess_; 00060 edm::InputTag tagTriggerResults_; 00061 edm::InputTag tagTriggerProducer_; 00062 std::vector< edm::InputTag > tagsTriggerMatcher_; 00063 00064 }; 00065 00066 } 00067 00068 00069 #endif