Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-01-08 03:36:30

0001 #ifndef MuonIdentification_MuonLinksProducer_h
0002 #define MuonIdentification_MuonLinksProducer_h
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:    MuonIdentification
0007 // Class:      MuonLinksProducer
0008 //
0009 /*
0010  Simple producer to make reco::MuonTrackLinks collection 
0011  out of the global muons from "muons" collection to restore
0012  dropped links used as input for MuonIdProducer.
0013  */
0014 //
0015 // Original Author:  Dmytro Kovalskyi
0016 //
0017 //
0018 
0019 // user include files
0020 #include "DataFormats/MuonReco/interface/Muon.h"
0021 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0022 #include "FWCore/Framework/interface/Event.h"
0023 #include "FWCore/Framework/interface/Frameworkfwd.h"
0024 #include "FWCore/Framework/interface/global/EDProducer.h"
0025 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0026 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0027 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0028 
0029 class MuonLinksProducer : public edm::global::EDProducer<> {
0030 public:
0031   explicit MuonLinksProducer(const edm::ParameterSet&);
0032   ~MuonLinksProducer() override = default;
0033 
0034   void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0035 
0036   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0037 
0038 private:
0039   const edm::InputTag m_inputCollection;
0040   const edm::EDGetTokenT<reco::MuonCollection> muonToken_;
0041 };
0042 #endif