Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-02-14 04:12:00

0001 // Author: Swagata Mukherjee
0002 
0003 #ifndef RecoHGCal_TICL_SeedingRegionByL1_h
0004 #define RecoHGCal_TICL_SeedingRegionByL1_h
0005 #include <memory>
0006 #include <string>
0007 
0008 #include "DataFormats/L1TCorrelator/interface/TkEm.h"
0009 #include "DataFormats/L1TCorrelator/interface/TkEmFwd.h"
0010 #include "DataFormats/L1Trigger/interface/P2GTCandidate.h"
0011 #include "FWCore/Framework/interface/ConsumesCollector.h"
0012 #include "FWCore/Framework/interface/ESHandle.h"
0013 #include "FWCore/Framework/interface/Event.h"
0014 #include "FWCore/Framework/interface/Frameworkfwd.h"
0015 #include "FWCore/Framework/interface/MakerMacros.h"
0016 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0017 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0018 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0019 #include "FWCore/Utilities/interface/ESGetToken.h"
0020 #include "RecoHGCal/TICL/plugins/SeedingRegionAlgoBase.h"
0021 
0022 namespace ticl {
0023   class SeedingRegionByL1 final : public SeedingRegionAlgoBase {
0024   public:
0025     SeedingRegionByL1(const edm::ParameterSet& conf, edm::ConsumesCollector& sumes);
0026 
0027     void initialize(const edm::EventSetup& es) override{};
0028     void makeRegions(const edm::Event& ev, const edm::EventSetup& es, std::vector<TICLSeedingRegion>& result) override;
0029     static void fillPSetDescription(edm::ParameterSetDescription& desc);
0030 
0031   private:
0032     edm::EDGetTokenT<l1t::P2GTCandidateCollection> l1GTCandsToken_;
0033     int algoVerbosity_ = 0;
0034     double minPt_;        // minimum pT of L1 TkEm objects
0035     double minAbsEta_;    // minimum |eta| of L1 TkEm objects
0036     double maxAbsEta_;    // maximum |eta| of L1 TkEm objects
0037     int quality_;         // hwQual
0038     bool qualityIsMask_;  // is hwQual to be applied as a mask
0039     bool applyQuality_;   // whether to apply quality
0040   };
0041 }  // namespace ticl
0042 #endif