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 }
l1t::TkMuon::TkMuon
TkMuon()
Definition: TkMuon.h:18
edm::Ref
Definition: AssociativeIterator.h:58
TkMuon.h
l1t::L1Candidate
Definition: L1Candidate.h:15
DDAxes::z
l1t::TkMuon::trkPtr
const edm::Ptr< L1TTTrackType > & trkPtr() const
Definition: TkMuon.h:36
l1t
delete x;
Definition: CaloConfig.h:22
p4
double p4[4]
Definition: TauolaWrapper.h:92
edm::Ptr
Definition: AssociationVector.h:31
l1t::TkMuon::trkPtr_
edm::Ptr< L1TTTrackType > trkPtr_
Definition: TkMuon.h:70
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
l1t::TkMuon::setTrkzVtx
void setTrkzVtx(float TrkzVtx)
Definition: TkMuon.h:55