Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:01

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 "FWCore/Framework/interface/Frameworkfwd.h"
0015 #include "FWCore/Framework/interface/global/EDProducer.h"
0016 #include "FWCore/Framework/interface/Event.h"
0017 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0018 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0019 #include "DataFormats/TrackReco/interface/Track.h"
0020 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0021 //#include "DataFormats/MuonReco/interface/Muon.h"
0022 #include "DataFormats/MuonReco/interface/MuonTrackLinks.h"
0023 
0024 class MuonLinksProducerForHLT : public edm::global::EDProducer<> {
0025 public:
0026   explicit MuonLinksProducerForHLT(const edm::ParameterSet&);
0027 
0028   ~MuonLinksProducerForHLT() override;
0029 
0030   void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0031 
0032 private:
0033   edm::InputTag theLinkCollectionInInput;
0034   edm::InputTag theInclusiveTrackCollectionInInput;
0035   edm::EDGetTokenT<reco::MuonTrackLinksCollection> linkToken_;
0036   edm::EDGetTokenT<reco::TrackCollection> trackToken_;
0037   double ptMin;
0038   double pMin;
0039   double shareHitFraction;
0040 };
0041 #endif