Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:13

0001 
0002 #ifndef RecoMuon_TrackerSeedGenerator_DualByL2TSG_H
0003 #define RecoMuon_TrackerSeedGenerator_DualByL2TSG_H
0004 
0005 /** \class DualByL2TSG
0006  * Description:
0007  * SeparatingTSG (TrackerSeedGenerator) which makes a check to see if a previous seed lead to a L3 track
0008  *
0009  * \author Jean-Roch vlimant, Adam Everett
0010  */
0011 
0012 #include "RecoMuon/TrackerSeedGenerator/plugins/SeparatingTSG.h"
0013 #include "DataFormats/Common/interface/Handle.h"
0014 #include "DataFormats/TrackReco/interface/Track.h"
0015 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0016 #include "FWCore/Framework/interface/ConsumesCollector.h"
0017 
0018 class DualByL2TSG : public SeparatingTSG {
0019 public:
0020   DualByL2TSG(const edm::ParameterSet& pset, edm::ConsumesCollector& iC);
0021 
0022   /// decide the TSG depending on the existence of a L3 track seeded from the L2. Return value is 0 or 1.
0023   unsigned int selectTSG(const TrackCand&, const TrackingRegion&) override;
0024 
0025 private:
0026   std::string theCategory;
0027   edm::InputTag theL3CollectionLabelA;
0028   edm::Handle<reco::TrackCollection> l3muonH;
0029   edm::EDGetTokenT<reco::TrackCollection> l3muonToken;
0030 };
0031 
0032 #endif