CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
const LorentzVector & p4() const final
four-momentum Lorentz vector
double vy() const override
y coordinate of vertex position
double dRPhiPair() const
T sqrt(T t)
Definition: SSEVec.h:19
const TkPhiCandidate & phiCandidate(size_t i) const
Definition: TkBsCandidate.h:25
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
double dxyPhiPair() const
double vx() const override
x coordinate of vertex position
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
double dzPhiPair() const
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29