CMS 3D CMS Logo

TkBsCandidate.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: DataFormats/L1TCorrelator
4 // Class : TkBsCandidate
5 //
6 
10 #include <cmath>
11 
12 using namespace l1t;
13 
16  : L1Candidate(p4), phiCandList_{cand1, cand2} {}
17 
18 // deltaR between the Phi pair
19 double TkBsCandidate::dRPhiPair() const {
20  const LorentzVector& lva = phiCandidate(0).p4();
21  const LorentzVector& lvb = phiCandidate(1).p4();
22  return reco::deltaR(lva, lvb);
23 }
24 // position difference between track pair
25 double TkBsCandidate::dxyPhiPair() const {
26  const TkPhiCandidate& phia = phiCandidate(0);
27  const TkPhiCandidate& phib = phiCandidate(1);
28  return std::sqrt(std::pow(phia.vx() - phib.vx(), 2) + std::pow(phia.vy() - phib.vy(), 2));
29 }
30 double TkBsCandidate::dzPhiPair() const { return (phiCandidate(0).vz() - phiCandidate(1).vz()); }
double vz() const override
z coordinate of vertex position
delete x;
Definition: CaloConfig.h:22
double dzPhiPair() const
const LorentzVector & p4() const final
four-momentum Lorentz vector
double vy() const override
y coordinate of vertex position
const TkPhiCandidate & phiCandidate(size_t i) const
Definition: TkBsCandidate.h:25
T sqrt(T t)
Definition: SSEVec.h:23
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
double dRPhiPair() const
double vx() const override
x coordinate of vertex position
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
double dxyPhiPair() const
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29