CMS 3D CMS Logo

TkMuon.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: L1Trigger
4 // Class : TkMuon
5 
7 
8 using namespace l1t;
9 
12  const edm::Ptr<L1TTTrackType>& trackPtr,
13  float tkisol)
14  : L1Candidate(p4), muRef_(muRef), trkPtr_(trackPtr), theIsolation(tkisol), TrkzVtx_(999), quality_(999) {
15  if (trkPtr_.isNonnull()) {
16  setTrkzVtx(trkPtr()->POCA().z());
17  }
18 }
19 
21  const edm::Ref<EMTFTrackCollection>& emtfRef,
22  const edm::Ptr<L1TTTrackType>& trackPtr,
23  float tkisol)
24  : L1Candidate(p4), emtfTrk_(emtfRef), trkPtr_(trackPtr), theIsolation(tkisol), TrkzVtx_(999), quality_(999) {
25  if (trkPtr_.isNonnull()) {
26  setTrkzVtx(trkPtr()->POCA().z());
27  }
28 }
29 
30 TkMuon::TkMuon(const LorentzVector& p4, const edm::Ptr<L1TTTrackType>& trackPtr, float tkisol)
31  : L1Candidate(p4), trkPtr_(trackPtr), theIsolation(tkisol), TrkzVtx_(999), quality_(999) {
32  if (trkPtr_.isNonnull()) {
33  setTrkzVtx(trkPtr()->POCA().z());
34  }
35 }
const edm::Ptr< L1TTTrackType > & trkPtr() const
Definition: TkMuon.h:36
edm::Ptr< L1TTTrackType > trkPtr_
Definition: TkMuon.h:70
delete x;
Definition: CaloConfig.h:22
void setTrkzVtx(float TrkzVtx)
Definition: TkMuon.h:55
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
TkMuon()
Definition: TkMuon.h:18