Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-01-09 23:33:53

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 "DataFormats/MuonReco/interface/MuonFwd.h"
0022 #include "DataFormats/MuonReco/interface/MuonTrackLinks.h"
0023 #include "DataFormats/TrackReco/interface/Track.h"
0024 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0025 #include "FWCore/Framework/interface/global/EDProducer.h"
0026 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0027 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0028 #include "FWCore/Utilities/interface/InputTag.h"
0029 
0030 namespace edm {
0031   class ParameterSet;
0032   class Event;
0033   class EventSetup;
0034 }  // namespace edm
0035 
0036 class L3MuonCandidateProducer : public edm::global::EDProducer<> {
0037 public:
0038   enum MuonTrackType { InnerTrack, OuterTrack, CombinedTrack };
0039 
0040   /// constructor with config
0041   L3MuonCandidateProducer(const edm::ParameterSet&);
0042 
0043   /// destructor
0044   ~L3MuonCandidateProducer() override;
0045 
0046   /// produce candidates
0047   void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0048 
0049   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0050 
0051 private:
0052   // L3/GLB Collection Label
0053   edm::InputTag theL3CollectionLabel;
0054   edm::InputTag theL3LinksLabel;
0055   edm::EDGetTokenT<reco::TrackCollection> trackToken_;
0056   edm::EDGetTokenT<reco::MuonTrackLinksCollection> linkToken_;
0057 
0058   enum MuonTrackType theType;
0059   bool theUseLinks;
0060 };
0061 
0062 #endif