CMS 3D CMS Logo

TkPhiCandidate.h
Go to the documentation of this file.
1 #ifndef DataFormatsL1TCorrelator_TkPhiCandidate_h
2 #define DataFormatsL1TCorrelator_TkPhiCandidate_h
3 
4 // -*- C++ -*-
5 //
6 // Package: DataFormats/L1TCorrelator
7 // Class: TkPhiCandidate
8 //
9 
12 
15 
16 namespace l1t {
17 
18  class TkPhiCandidate : public L1Candidate {
19  public:
20  static constexpr double kmass = 0.493; // GeV
21  static constexpr double phi_polemass = 1.019445; // GeV
22 
24  using L1TTTrackCollection = std::vector<L1TTTrackType>;
25 
28  const edm::Ptr<L1TTTrackType>& trkPtr1,
29  const edm::Ptr<L1TTTrackType>& trkPtr2);
30 
31  ~TkPhiCandidate() override {}
32 
33  // ---------- const member functions ---------------------
34  const edm::Ptr<L1TTTrackType>& trkPtr(size_t i) const { return trkPtrList_.at(i); }
35 
36  // ---------- member functions ---------------------------
37 
38  // deltaR between track pair
39  double dRTrkPair() const;
40 
41  // difference from nominal mass
42  double dmass() const;
43 
44  // position difference between track pair
45  double dxyTrkPair() const;
46  double dzTrkPair() const;
47 
48  double vx() const override;
49  double vy() const override;
50  double vz() const override;
51 
52  private:
53  std::vector<edm::Ptr<L1TTTrackType>> trkPtrList_;
54  };
55 } // namespace l1t
56 #endif
l1t::TkPhiCandidate
Definition: TkPhiCandidate.h:18
l1t::TkPhiCandidate::~TkPhiCandidate
~TkPhiCandidate() override
Definition: TkPhiCandidate.h:31
l1t::TkPhiCandidate::dRTrkPair
double dRTrkPair() const
Definition: TkPhiCandidate.cc:21
mps_fire.i
i
Definition: mps_fire.py:428
l1t::TkPhiCandidate::dzTrkPair
double dzTrkPair() const
Definition: TkPhiCandidate.cc:39
l1t::TkPhiCandidate::trkPtrList_
std::vector< edm::Ptr< L1TTTrackType > > trkPtrList_
Definition: TkPhiCandidate.h:53
l1t::TkPhiCandidate::vz
double vz() const override
z coordinate of vertex position
Definition: TkPhiCandidate.cc:42
TTTypes.h
l1t::TkPhiCandidate::phi_polemass
static constexpr double phi_polemass
Definition: TkPhiCandidate.h:21
TTTrack
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:29
l1t::TkPhiCandidate::TkPhiCandidate
TkPhiCandidate()
Definition: TkPhiCandidate.cc:12
l1t::TkPhiCandidate::kmass
static constexpr double kmass
Definition: TkPhiCandidate.h:20
l1t::TkPhiCandidate::dmass
double dmass() const
Definition: TkPhiCandidate.cc:31
l1t::L1Candidate
Definition: L1Candidate.h:15
l1t::TkPhiCandidate::vx
double vx() const override
x coordinate of vertex position
Definition: TkPhiCandidate.cc:40
l1t
delete x;
Definition: CaloConfig.h:22
Ptr.h
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:114
l1t::TkPhiCandidate::vy
double vy() const override
y coordinate of vertex position
Definition: TkPhiCandidate.cc:41
L1Candidate.h
edm::Ptr
Definition: AssociationVector.h:31
l1t::TkPhiCandidate::L1TTTrackCollection
std::vector< L1TTTrackType > L1TTTrackCollection
Definition: TkPhiCandidate.h:24
l1t::TkPhiCandidate::trkPtr
const edm::Ptr< L1TTTrackType > & trkPtr(size_t i) const
Definition: TkPhiCandidate.h:34
Ref.h
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
l1t::TkPhiCandidate::dxyTrkPair
double dxyTrkPair() const
Definition: TkPhiCandidate.cc:33