Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HLTElectronOneOEMinusOneOPFilterRegional_h
0002 #define HLTElectronOneOEMinusOneOPFilterRegional_h
0003 
0004 /** \class HLTElectronOneOEMinusOneOPFilterRegional
0005  *
0006  *  \author Monica Vazquez Acosta (CERN)
0007  */
0008 
0009 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0010 
0011 #include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"
0012 #include "DataFormats/EgammaCandidates/interface/Electron.h"
0013 #include "DataFormats/EgammaCandidates/interface/ElectronFwd.h"
0014 
0015 namespace edm {
0016   class ConfigurationDescriptions;
0017 }
0018 
0019 //
0020 // class decleration
0021 //
0022 
0023 class HLTElectronOneOEMinusOneOPFilterRegional : public HLTFilter {
0024 public:
0025   explicit HLTElectronOneOEMinusOneOPFilterRegional(const edm::ParameterSet&);
0026   ~HLTElectronOneOEMinusOneOPFilterRegional() 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 for the RecoCandidates from the previous filter
0034   edm::InputTag electronIsolatedProducer_;     // input tag for the producer of electrons
0035   edm::InputTag electronNonIsolatedProducer_;  // input tag for the producer of electrons
0036   edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs> candToken_;
0037   edm::EDGetTokenT<reco::ElectronCollection> electronIsolatedToken_;
0038   edm::EDGetTokenT<reco::ElectronCollection> electronNonIsolatedToken_;
0039   bool doIsolated_;
0040   double barrelcut_;  //  Eoverp barrel
0041   double endcapcut_;  //  Eoverp endcap
0042   int ncandcut_;      // number of electrons required
0043 };
0044 
0045 #endif  //HLTElectronOneOEMinusOneOPFilterRegional_h