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 
20 TkMuon::TkMuon(const LorentzVector& p4, const edm::Ptr<L1TTTrackType>& trackPtr, float tkisol)
21  : L1Candidate(p4), trkPtr_(trackPtr), theIsolation(tkisol), TrkzVtx_(999), quality_(999) {
22  if (trkPtr_.isNonnull()) {
23  setTrkzVtx(trkPtr()->POCA().z());
24  }
25 }
l1t::TkMuon::TkMuon
TkMuon()
Definition: TkMuon.h:17
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:30
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:62
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
l1t::TkMuon::setTrkzVtx
void setTrkzVtx(float TrkzVtx)
Definition: TkMuon.h:48