00001 #ifndef PhysicsTools_PatUtils_TriggerHelper_h
00002 #define PhysicsTools_PatUtils_TriggerHelper_h
00003
00004
00005
00006
00007
00008
00009
00010
00011
00025 #include "FWCore/Framework/interface/Event.h"
00026 #include "DataFormats/PatCandidates/interface/TriggerEvent.h"
00027
00028 #include <string>
00029
00030 #include "DataFormats/PatCandidates/interface/TriggerObject.h"
00031 #include "DataFormats/Candidate/interface/Candidate.h"
00032
00033
00034 namespace pat {
00035
00036 namespace helper {
00037
00038 class TriggerMatchHelper {
00039
00040 public:
00041
00043 TriggerMatchHelper() {};
00044 ~TriggerMatchHelper() {};
00045
00047 pat::TriggerObjectRef triggerMatchObject( const reco::CandidateBaseRef & candRef, const TriggerObjectMatch * matchResult, const edm::Event & event, const TriggerEvent & triggerEvent ) const;
00048 pat::TriggerObjectRef triggerMatchObject( const reco::CandidateBaseRef & candRef, const std::string & labelMatcher, const edm::Event & event, const TriggerEvent & triggerEvent ) const;
00049 pat::TriggerObjectMatchMap triggerMatchObjects( const reco::CandidateBaseRef & candRef, const edm::Event & event, const TriggerEvent & triggerEvent ) const;
00050 reco::CandidateBaseRefVector triggerMatchCandidates( const pat::TriggerObjectRef & objectRef, const TriggerObjectMatch * matchResult, const edm::Event & event, const TriggerEvent & triggerEvent ) const;
00051 reco::CandidateBaseRefVector triggerMatchCandidates( const pat::TriggerObjectRef & objectRef, const std::string & labelMatcher, const edm::Event & event, const TriggerEvent & triggerEvent ) const;
00052
00053 };
00054
00055 }
00056
00057 }
00058
00059
00060 #endif