CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/PhysicsTools/PatAlgos/plugins/PATTriggerMatchSelector.h

Go to the documentation of this file.
00001 #ifndef PhysicsTools_PatAlgos_PATTriggerMatchSelector_h
00002 #define PhysicsTools_PatAlgos_PATTriggerMatchSelector_h
00003 
00004 
00005 // -*- C++ -*-
00006 //
00007 // Package:    PatAlgos
00008 // Class:      PATTriggerMatchSelector
00009 //
00019 //
00020 // $Id: PATTriggerMatchSelector.h,v 1.6 2010/12/11 22:12:59 vadler Exp $
00021 //
00022 
00023 
00024 #include <string>
00025 #include <vector>
00026 #include <map>
00027 
00028 #include "CommonTools/Utils/interface/StringCutObjectSelector.h"
00029 
00030 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00031 
00032 
00033 namespace pat {
00034 
00035   template< typename T1, typename T2 >
00036   class PATTriggerMatchSelector : public StringCutObjectSelector< T2 > {
00037 
00038     public:
00039 
00040       PATTriggerMatchSelector( const edm::ParameterSet & iConfig ) :
00041         StringCutObjectSelector< T2 >( iConfig.getParameter< std::string >( "matchedCuts" ) )
00042       {}
00043 
00044       bool operator()( const T1 & patObj, const T2 & trigObj ) const {
00045         return StringCutObjectSelector< T2 >::operator()( trigObj );
00046       }
00047 
00048   };
00049 
00050 }
00051 
00052 
00053 #endif