Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:25:50

0001 #ifndef L3MuonIsolationProducer_L3MuonIsolationProducer_H
0002 #define L3MuonIsolationProducer_L3MuonIsolationProducer_H
0003 
0004 /**  \class L3MuonIsolationProducer
0005  */
0006 
0007 #include "FWCore/Framework/interface/stream/EDProducer.h"
0008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0009 
0010 #include "DataFormats/RecoCandidate/interface/RecoChargedCandidateFwd.h"
0011 
0012 #include "RecoMuon/MuonIsolation/interface/Cuts.h"
0013 #include "PhysicsTools/IsolationAlgos/interface/IsoDepositExtractor.h"
0014 
0015 #include <string>
0016 
0017 namespace edm {
0018   class Event;
0019 }
0020 namespace edm {
0021   class EventSetup;
0022 }
0023 
0024 class L3MuonIsolationProducer : public edm::stream::EDProducer<> {
0025 public:
0026   /// constructor with config
0027   L3MuonIsolationProducer(const edm::ParameterSet&);
0028 
0029   /// destructor
0030   ~L3MuonIsolationProducer() override;
0031 
0032   /// Produce isolation maps
0033   void produce(edm::Event&, const edm::EventSetup&) override;
0034 
0035 private:
0036   edm::ParameterSet theConfig;
0037 
0038   // Muon track Collection Label
0039   edm::InputTag theMuonCollectionLabel;
0040   edm::EDGetTokenT<reco::RecoChargedCandidateCollection> theMuonCollectionToken;
0041 
0042   // Isolation cuts
0043   muonisolation::Cuts theCuts;
0044 
0045   // Option to write MuIsoDeposits into the event
0046   double optOutputIsoDeposits;
0047 
0048   // MuIsoExtractor
0049   std::unique_ptr<reco::isodeposit::IsoDepositExtractor> theExtractor;
0050 
0051   //! pt cut to consider track in sumPt after extracting iso deposit
0052   //! better split this off into a filter
0053   double theTrackPt_Min;
0054 
0055   //! max number of tracks to allow in the sum
0056   //! count <= maxN
0057   int theMaxNTracks;
0058 
0059   //! apply or not the maxN cut on top of the sumPt (or nominall eff) < cuts
0060   bool theApplyCutsORmaxNTracks;
0061 };
0062 
0063 #endif