File indexing completed on 2024-04-06 12:04:31
0001
0002
0003
0004
0005
0006 #include "DataFormats/L1TCorrelator/interface/TkMuon.h"
0007
0008 using namespace l1t;
0009
0010 TkMuon::TkMuon(const LorentzVector& p4,
0011 const edm::Ref<RegionalMuonCandBxCollection>& muRef,
0012 const edm::Ptr<L1TTTrackType>& trackPtr,
0013 float tkisol)
0014 : L1Candidate(p4), muRef_(muRef), trkPtr_(trackPtr), theIsolation(tkisol), TrkzVtx_(999), quality_(999) {
0015 if (trkPtr_.isNonnull()) {
0016 setTrkzVtx(trkPtr()->POCA().z());
0017 }
0018 }
0019
0020 TkMuon::TkMuon(const LorentzVector& p4,
0021 const edm::Ref<EMTFTrackCollection>& emtfRef,
0022 const edm::Ptr<L1TTTrackType>& trackPtr,
0023 float tkisol)
0024 : L1Candidate(p4), emtfTrk_(emtfRef), trkPtr_(trackPtr), theIsolation(tkisol), TrkzVtx_(999), quality_(999) {
0025 if (trkPtr_.isNonnull()) {
0026 setTrkzVtx(trkPtr()->POCA().z());
0027 }
0028 }
0029
0030 TkMuon::TkMuon(const LorentzVector& p4, const edm::Ptr<L1TTTrackType>& trackPtr, float tkisol)
0031 : L1Candidate(p4), trkPtr_(trackPtr), theIsolation(tkisol), TrkzVtx_(999), quality_(999) {
0032 if (trkPtr_.isNonnull()) {
0033 setTrkzVtx(trkPtr()->POCA().z());
0034 }
0035 }