CMS 3D CMS Logo

TkElectron.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: L1Trigger
4 // Class : TkEm
5 //
6 
8 
9 using namespace l1t;
10 
12 
14  const edm::Ptr<L1Candidate>& egCaloPtr,
15  const edm::Ptr<L1TTTrackType>& trackPtr,
16  float tkisol)
17  : TkEm(p4, egCaloPtr, tkisol, -999), trkPtr_(trackPtr) {
18  if (trkPtr_.isNonnull()) {
19  setTrkzVtx(trkPtr()->POCA().z());
20  }
21 }
22 
23 TkElectron::TkElectron(const LorentzVector& p4, float tkisol)
24  : TkElectron(p4, edm::Ptr<L1Candidate>(), edm::Ptr<L1TTTrackType>(), tkisol) {}
edm::Ptr< L1TTTrackType > trkPtr_
Definition: TkElectron.h:57
delete x;
Definition: CaloConfig.h:22
Definition: TkEm.h:23
void setTrkzVtx(float TrkzVtx)
Definition: TkElectron.h:46
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:29
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
HLT enums.
const edm::Ptr< L1TTTrackType > & trkPtr() const
Definition: TkElectron.h:39