File indexing completed on 2024-04-06 12:18:38
0001 #ifndef HLTrigger_Muon_HLTMuonTrackSelector_h
0002 #define HLTrigger_Muon_HLTMuonTrackSelector_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "RecoTracker/FinalTrackSelectors/interface/TrackCollectionCloner.h"
0016
0017 #include "FWCore/Framework/interface/global/EDProducer.h"
0018 #include "FWCore/Framework/interface/Event.h"
0019 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0020 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0021 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0022
0023 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0024 #include "DataFormats/TrackReco/interface/Track.h"
0025 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0026 #include "DataFormats/MuonReco/interface/Muon.h"
0027
0028 #include <vector>
0029
0030 class HLTMuonTrackSelector : public edm::global::EDProducer<> {
0031 public:
0032 explicit HLTMuonTrackSelector(const edm::ParameterSet &);
0033 ~HLTMuonTrackSelector() override = default;
0034
0035 using MVACollection = std::vector<float>;
0036
0037 static void fillDescriptions(edm::ConfigurationDescriptions &);
0038
0039 private:
0040 void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override;
0041
0042 TrackCollectionCloner collectionCloner;
0043 const TrackCollectionCloner::Tokens collectionClonerTokens;
0044
0045 const edm::EDGetTokenT<std::vector<reco::Muon> > token_muon;
0046 const edm::EDGetTokenT<MVACollection> token_originalMVAVals;
0047 const bool flag_copyMVA;
0048 };
0049
0050 #endif