Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef MuonIdentification_MuonLinksProducerForHLT_h
0002 #define MuonIdentification_MuonLinksProducerForHLT_h
0003 
0004 /** \class MuonLinksProducerForHLT
0005  *
0006  * Simple producer to make reco::MuonTrackLinks collection 
0007  * out of the global muons from "muons" collection to restore
0008  * dropped links used as input for MuonIdProducer.
0009  *
0010  *  \author R. Bellan - UCSB <riccardo.bellan@cern.ch>
0011  */
0012 
0013 // user include files
0014 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0015 #include "DataFormats/MuonReco/interface/MuonTrackLinks.h"
0016 #include "DataFormats/TrackReco/interface/Track.h"
0017 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0018 #include "FWCore/Framework/interface/Event.h"
0019 #include "FWCore/Framework/interface/Frameworkfwd.h"
0020 #include "FWCore/Framework/interface/global/EDProducer.h"
0021 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0022 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0023 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0024 
0025 class MuonLinksProducerForHLT : public edm::global::EDProducer<> {
0026 public:
0027   explicit MuonLinksProducerForHLT(const edm::ParameterSet&);
0028   ~MuonLinksProducerForHLT() override = default;
0029 
0030   void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0031 
0032   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0033 
0034 private:
0035   const edm::InputTag theLinkCollectionInInput_;
0036   const edm::InputTag theInclusiveTrackCollectionInInput_;
0037   const edm::EDGetTokenT<reco::MuonTrackLinksCollection> linkToken_;
0038   const edm::EDGetTokenT<reco::TrackCollection> trackToken_;
0039   const double ptMin_;
0040   const double pMin_;
0041   const double shareHitFraction_;
0042 };
0043 #endif