Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:20:28

0001 #ifndef RecoMuon_L3MuonProducer_L3MuonCandidateProducer_H
0002 #define RecoMuon_L3MuonProducer_L3MuonCandidateProducer_H
0003 
0004 /**  \class L3MuonCandidateProducer
0005  * 
0006  *   Intermediate step in the L3 muons selection.
0007  *   This class takes the L3 muons (which are reco::Tracks) 
0008  *   and creates the correspondent reco::RecoChargedCandidate.
0009  *
0010  *   Riccardo's comment:
0011  *   The separation between the L3MuonProducer and this class allows
0012  *   the interchangeability of the L3MuonProducer and the StandAloneMuonProducer
0013  *   This class is supposed to be removed once the
0014  *   L3/STA comparison will be done, then the RecoChargedCandidate
0015  *   production will be done into the L3MuonProducer class.
0016  *
0017  *
0018  *   \author  J.Alcaraz
0019  */
0020 
0021 #include "FWCore/Framework/interface/global/EDProducer.h"
0022 #include "FWCore/Utilities/interface/InputTag.h"
0023 #include "DataFormats/TrackReco/interface/Track.h"
0024 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0025 #include "DataFormats/MuonReco/interface/MuonTrackLinks.h"
0026 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0027 
0028 namespace edm {
0029   class ParameterSet;
0030   class Event;
0031   class EventSetup;
0032 }  // namespace edm
0033 
0034 class L3MuonCandidateProducer : public edm::global::EDProducer<> {
0035 public:
0036   enum MuonTrackType { InnerTrack, OuterTrack, CombinedTrack };
0037 
0038   /// constructor with config
0039   L3MuonCandidateProducer(const edm::ParameterSet&);
0040 
0041   /// destructor
0042   ~L3MuonCandidateProducer() override;
0043 
0044   /// produce candidates
0045   void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0046 
0047 private:
0048   // L3/GLB Collection Label
0049   edm::InputTag theL3CollectionLabel;
0050   edm::InputTag theL3LinksLabel;
0051   edm::EDGetTokenT<reco::TrackCollection> trackToken_;
0052   edm::EDGetTokenT<reco::MuonTrackLinksCollection> linkToken_;
0053 
0054   enum MuonTrackType theType;
0055   bool theUseLinks;
0056 };
0057 
0058 #endif