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 //-------------------------------
17 
18 //---------------
19 // C++ Headers --
20 //---------------
21 #include <iostream>
22 
23 using namespace std;
24 
25 //-------------------
26 // Initializations --
27 //-------------------
28 
29 //----------------
30 // Constructors --
31 //----------------
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 }
TrajectoryStateClosestToPoint impactPointTSCP() const
const FreeTrajectoryState & theState() const
static bool chkSize(const T &cont, const std::string &msg)
#define nullptr
virtual const std::vector< const reco::Candidate * > & daughters() const
bool calculate(const TrajectoryStateOnSurface &sta, const TrajectoryStateOnSurface &stb) override
virtual const ClosestApproachInRPhi & cAppInRPhi() const
compute distance of closest approach
void setNotUpdated() const override
~BPHPlusMinusVertex() override
void setNotUpdated() const override
BPHPlusMinusVertex(const edm::EventSetup *es)
tuple msg
Definition: mps_check.py:285
virtual void computeApp() const
const std::vector< reco::TransientTrack > & transientTracks() const
get list of TransientTracks
ClosestApproachInRPhi * inRPhi