Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HLTSinglet_h
0002 #define HLTSinglet_h
0003 
0004 /** \class HLTSinglet
0005  *
0006  *
0007  *  This class is an HLTFilter (-> EDFilter) implementing a basic HLT
0008  *  trigger for single objects of the same physics type, cutting on
0009  *  variables relating to their 4-momentum representation
0010  *
0011  *
0012  *  \author Martin Grunewald
0013  *
0014  */
0015 
0016 #include <vector>
0017 #include "DataFormats/HLTReco/interface/TriggerTypeDefs.h"
0018 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0019 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0020 
0021 //
0022 // class declaration
0023 //
0024 
0025 template <typename T>
0026 class HLTSinglet : public HLTFilter {
0027 public:
0028   explicit HLTSinglet(const edm::ParameterSet&);
0029   ~HLTSinglet() override;
0030   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0031   bool hltFilter(edm::Event&,
0032                  const edm::EventSetup&,
0033                  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
0034 
0035 private:
0036   const edm::InputTag inputTag_;                       // input tag identifying product
0037   const edm::EDGetTokenT<std::vector<T>> inputToken_;  // token identifying product
0038   const int triggerType_;                              // triggerType configured
0039   const int min_N_;                                    // number of objects passing cuts required
0040   const double min_E_;                                 // energy threshold in GeV
0041   const double min_Pt_;                                // pt threshold in GeV
0042   const double min_Mass_;                              // min mass threshold in GeV
0043   const double max_Mass_;                              // max mass threshold in GeV
0044   const double min_Eta_;                               // lower eta cut to define eta-range (symmetric)
0045   const double max_Eta_;                               // upper eta cut to define eta-range (symmetric)
0046 };
0047 
0048 #endif  // HLTSinglet_h