CMS 3D CMS Logo

BPHPlusMinusVertex.cc
Go to the documentation of this file.
1 /*
2  * See header file for a description of this class.
3  *
4  * \author Paolo Ronchese INFN Padova
5  *
6  */
7 
8 //-----------------------
9 // This Class' Header --
10 //-----------------------
12 
13 //-------------------------------
14 // Collaborating Class Headers --
15 //-------------------------------
18 
19 //---------------
20 // C++ Headers --
21 //---------------
22 using namespace std;
23 
24 //-------------------
25 // Initializations --
26 //-------------------
27 
28 //----------------
29 // Constructors --
30 //----------------
32  : BPHDecayVertex(es), oldA(true), inRPhi(nullptr) {}
33 
34 //--------------
35 // Destructor --
36 //--------------
38 
39 //--------------
40 // Operations --
41 //--------------
43  if (oldA)
44  computeApp();
45  if (inRPhi == nullptr) {
46  static const ClosestApproachInRPhi ca;
47  return ca;
48  }
49  return *inRPhi;
50 }
51 
52 bool BPHPlusMinusVertex::chkSize(const string& msg) const { return chkSize(daughters(), msg); }
53 
56  oldA = true;
57  return;
58 }
59 
61  static const string msg = "BPHPlusMinusVertex::computeApp: incomplete, no closest approach available";
62  delete inRPhi;
63  if (!chkSize(msg)) {
64  inRPhi = nullptr;
65  return;
66  }
68  const vector<reco::TransientTrack>& ttk = transientTracks();
69  const reco::TransientTrack& ttp = ttk[0];
70  const reco::TransientTrack& ttn = ttk[1];
72  oldA = false;
73  return;
74 }
void setNotUpdated() const override
static bool chkSize(const T &cont, const std::string &msg)
TrajectoryStateClosestToPoint impactPointTSCP() const
bool calculate(const TrajectoryStateOnSurface &sta, const TrajectoryStateOnSurface &stb) override
virtual void computeApp() const
const std::vector< reco::TransientTrack > & transientTracks() const
get list of TransientTracks
~BPHPlusMinusVertex() override
BPHPlusMinusVertex(const BPHPlusMinusVertex &x)=delete
const FreeTrajectoryState & theState() const
tuple msg
Definition: mps_check.py:285
virtual const ClosestApproachInRPhi & cAppInRPhi() const
compute distance of closest approach
void setNotUpdated() const override
ClosestApproachInRPhi * inRPhi
virtual const std::vector< const reco::Candidate * > & daughters() const