Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-12-05 03:11:45

0001 // -*- C++ -*-
0002 //
0003 // Package:     L1Trigger
0004 // Class  :     TkEm
0005 //
0006 
0007 #include "DataFormats/L1TCorrelator/interface/TkElectron.h"
0008 
0009 using namespace l1t;
0010 
0011 TkElectron::TkElectron() {}
0012 
0013 TkElectron::TkElectron(const LorentzVector& p4,
0014                        const edm::Ptr<L1Candidate>& egCaloPtr,
0015                        const edm::Ptr<L1TTTrackType>& trackPtr,
0016                        float tkisol)
0017     : TkEm(p4, egCaloPtr, tkisol, -999), trkPtr_(trackPtr) {
0018   if (trkPtr_.isNonnull()) {
0019     setTrkzVtx(trkPtr()->POCA().z());
0020   }
0021 }
0022 
0023 TkElectron::TkElectron(const LorentzVector& p4, float tkisol)
0024     : TkElectron(p4, edm::Ptr<L1Candidate>(), edm::Ptr<L1TTTrackType>(), tkisol) {}