Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:18:38

0001 #ifndef HLTScoutingMuonProducer_h
0002 #define HLTScoutingMuonProducer_h
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:    HLTrigger/Muon
0007 // Class:      HLTScoutingMuonProducer
0008 //
0009 /**\class HLTScoutingMuonProducer HLTScoutingMuonProducer.h HLTScoutingMuonProducer.h
0010 
0011 Description: Producer for Run3ScoutingMuon
0012 
0013 */
0014 //
0015 // Original Author:  David G. Sheffield (Rutgers)
0016 //         Created:  Fri, 31 Jul 2015
0017 //
0018 //
0019 
0020 // system include files
0021 #include <memory>
0022 
0023 // user include files
0024 #include "FWCore/Framework/interface/Frameworkfwd.h"
0025 #include "FWCore/Framework/interface/global/EDProducer.h"
0026 #include "FWCore/Framework/interface/Event.h"
0027 #include "FWCore/Framework/interface/MakerMacros.h"
0028 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0029 
0030 #include "DataFormats/Common/interface/AssociationMap.h"
0031 #include "DataFormats/Common/interface/getRef.h"
0032 #include "DataFormats/Common/interface/ValueMap.h"
0033 #include "DataFormats/RecoCandidate/interface/RecoChargedCandidate.h"
0034 #include "DataFormats/RecoCandidate/interface/RecoChargedCandidateFwd.h"
0035 #include "DataFormats/TrackReco/interface/HitPattern.h"
0036 #include "DataFormats/TrackReco/interface/Track.h"
0037 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0038 
0039 #include "DataFormats/VertexReco/interface/Vertex.h"
0040 #include "DataFormats/VertexReco/interface/VertexFwd.h"
0041 
0042 #include "DataFormats/Scouting/interface/Run3ScoutingHitPatternPOD.h"
0043 #include "DataFormats/Scouting/interface/Run3ScoutingMuon.h"
0044 #include "DataFormats/Scouting/interface/Run3ScoutingVertex.h"
0045 
0046 #include "DataFormats/MuonReco/interface/MuonTrackLinks.h"
0047 #include "DataFormats/MuonReco/interface/Muon.h"
0048 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0049 
0050 class HLTScoutingMuonProducer : public edm::global::EDProducer<> {
0051   typedef edm::AssociationMap<edm::OneToValue<std::vector<reco::RecoChargedCandidate>, float, unsigned int>>
0052       RecoChargedCandMap;
0053 
0054 public:
0055   explicit HLTScoutingMuonProducer(const edm::ParameterSet&);
0056   ~HLTScoutingMuonProducer() override;
0057 
0058   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0059 
0060 private:
0061   void produce(edm::StreamID sid, edm::Event& iEvent, edm::EventSetup const& setup) const final;
0062 
0063   const edm::EDGetTokenT<reco::RecoChargedCandidateCollection> ChargedCandidateCollection_;
0064   const edm::EDGetTokenT<reco::VertexCollection> displacedvertexCollection_;
0065   const edm::EDGetTokenT<reco::MuonCollection> MuonCollection_;
0066   const edm::EDGetTokenT<reco::MuonTrackLinksCollection> linkToken_;
0067   const edm::EDGetTokenT<reco::TrackCollection> TrackCollection_;
0068   const edm::EDGetTokenT<RecoChargedCandMap> EcalPFClusterIsoMap_;
0069   const edm::EDGetTokenT<RecoChargedCandMap> HcalPFClusterIsoMap_;
0070   const edm::EDGetTokenT<edm::ValueMap<double>> TrackIsoMap_;
0071 
0072   const double muonPtCut;
0073   const double muonEtaCut;
0074   const double minVtxProbCut;
0075 };
0076 
0077 #endif