Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:18:28

0001 #ifndef HLTSummaryFilter_h
0002 #define HLTSummaryFilter_h
0003 
0004 /** \class HLTSummaryFilter
0005  *
0006  *
0007  *  This class is an HLTFilter (-> EDFilter) implementing a smart HLT
0008  *  trigger cut, specified as a string such as "pt>15 && -3<eta<3",
0009  *  for objects in the TriggerSummaryAOD product, allowing to cut on
0010  *  variables relating to their 4-momentum representation
0011  *
0012  *
0013  *  \author Martin Grunewald
0014  *
0015  */
0016 
0017 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0018 
0019 #include "DataFormats/HLTReco/interface/TriggerEvent.h"
0020 #include "CommonTools/Utils/interface/StringCutObjectSelector.h"
0021 
0022 #include <string>
0023 
0024 namespace edm {
0025   class ConfigurationDescriptions;
0026 }
0027 
0028 //
0029 // class declaration
0030 //
0031 
0032 class HLTSummaryFilter : public HLTFilter {
0033 public:
0034   explicit HLTSummaryFilter(const edm::ParameterSet&);
0035   ~HLTSummaryFilter() override;
0036   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0037   bool hltFilter(edm::Event&,
0038                  const edm::EventSetup&,
0039                  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
0040 
0041 private:
0042   edm::InputTag summaryTag_;                              // input tag identifying TriggerSummaryAOD
0043   edm::EDGetTokenT<trigger::TriggerEvent> summaryToken_;  // token identifying TriggerSummaryAOD
0044   edm::InputTag memberTag_;                               // which packed-up collection or filter
0045   std::string cut_;                                       // smart cut
0046   int min_N_;                                             // number of objects passing cuts required
0047 
0048   StringCutObjectSelector<trigger::TriggerObject> select_;  // smart selector
0049 };
0050 
0051 #endif  //HLTSummaryFilter_h