Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HLTElectronGenericFilter_h
0002 #define HLTElectronGenericFilter_h
0003 
0004 /** \class HLTElectronGenericFilter
0005  *
0006  *  \author Roberto Covarelli (CERN)
0007  *
0008  */
0009 
0010 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0011 
0012 #include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"
0013 #include "DataFormats/EgammaCandidates/interface/ElectronIsolationAssociation.h"
0014 
0015 namespace edm {
0016   class ConfigurationDescriptions;
0017 }
0018 
0019 //
0020 // class declaration
0021 //
0022 
0023 class HLTElectronGenericFilter : public HLTFilter {
0024 public:
0025   explicit HLTElectronGenericFilter(const edm::ParameterSet&);
0026   ~HLTElectronGenericFilter() override;
0027   bool hltFilter(edm::Event&,
0028                  const edm::EventSetup&,
0029                  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
0030   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0031 
0032 private:
0033   edm::InputTag candTag_;  // input tag identifying product that contains filtered electrons
0034   edm::InputTag varTag_;   // input tag identifying product that contains the variable map
0035   edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs> candToken_;
0036   edm::EDGetTokenT<reco::ElectronIsolationMap> varToken_;
0037   bool lessThan_;        // the cut is "<" or ">" ?
0038   double thrRegularEB_;  // threshold for regular cut (x < thr) - ECAL barrel
0039   double thrRegularEE_;  // threshold for regular cut (x < thr) - ECAL endcap
0040   double thrOverPtEB_;   // threshold for x/p_T < thr cut (isolations) - ECAL barrel
0041   double thrOverPtEE_;   // threshold for x/p_T < thr cut (isolations) - ECAL endcap
0042   double thrTimesPtEB_;  // threshold for x*p_T < thr cut (isolations) - ECAL barrel
0043   double thrTimesPtEE_;  // threshold for x*p_T < thr cut (isolations) - ECAL endcap
0044   int ncandcut_;         // number of electrons required
0045 
0046   edm::InputTag l1EGTag_;
0047 };
0048 
0049 #endif  //HLTElectronGenericFilter_h