Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HLTEgammaL1MatchFilterPairs_h
0002 #define HLTEgammaL1MatchFilterPairs_h
0003 
0004 /** \class HLTEgammaL1MatchFilterPairs
0005  *
0006  *  \author Monica Vazquez Acosta (CERN)
0007  *
0008  */
0009 
0010 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0011 
0012 #include "DataFormats/RecoCandidate/interface/RecoEcalCandidate.h"
0013 #include "DataFormats/RecoCandidate/interface/RecoEcalCandidateFwd.h"
0014 
0015 #include "DataFormats/L1Trigger/interface/L1EmParticle.h"
0016 #include "DataFormats/L1Trigger/interface/L1EmParticleFwd.h"
0017 
0018 namespace edm {
0019   class ConfigurationDescriptions;
0020 }
0021 
0022 //
0023 // class decleration
0024 //
0025 
0026 class HLTEgammaL1MatchFilterPairs : public HLTFilter {
0027 public:
0028   explicit HLTEgammaL1MatchFilterPairs(const edm::ParameterSet&);
0029   ~HLTEgammaL1MatchFilterPairs() override;
0030   bool hltFilter(edm::Event&,
0031                  const edm::EventSetup&,
0032                  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
0033   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0034 
0035 private:
0036   bool CheckL1Matching(edm::Ref<reco::RecoEcalCandidateCollection> ref,
0037                        std::vector<l1extra::L1EmParticleRef>& l1EGIso,
0038                        std::vector<l1extra::L1EmParticleRef>& l1EGNonIso) const;
0039 
0040   edm::InputTag candIsolatedTag_;     // input tag identifying product contains egammas
0041   edm::InputTag l1IsolatedTag_;       // input tag identifying product contains egammas
0042   edm::InputTag candNonIsolatedTag_;  // input tag identifying product contains egammas
0043   edm::InputTag l1NonIsolatedTag_;    // input tag identifying product contains egammas
0044   edm::EDGetTokenT<reco::RecoEcalCandidateCollection> candIsolatedToken_;
0045   edm::EDGetTokenT<reco::RecoEcalCandidateCollection> candNonIsolatedToken_;
0046 
0047   edm::InputTag L1SeedFilterTag_;
0048   edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs> L1SeedFilterToken_;
0049   bool AlsoNonIsolatedFirst_, AlsoNonIsolatedSecond_;
0050 
0051   // L1 matching cuts
0052   double region_eta_size_;
0053   double region_eta_size_ecap_;
0054   double region_phi_size_;
0055   double barrel_end_;
0056   double endcap_end_;
0057 };
0058 
0059 #endif  //HLTEgammaL1MatchFilterPairs_h