CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 using namespace std;
22 
23 //-------------------
24 // Initializations --
25 //-------------------
26 
27 //----------------
28 // Constructors --
29 //----------------
31 
32 //--------------
33 // Destructor --
34 //--------------
36 
37 //--------------
38 // Operations --
39 //--------------
41  if (oldA)
42  computeApp();
43  if (inRPhi == nullptr) {
44  static const ClosestApproachInRPhi ca;
45  return ca;
46  }
47  return *inRPhi;
48 }
49 
50 bool BPHPlusMinusVertex::chkSize(const string& msg) const { return chkSize(daughters(), msg); }
51 
54  oldA = true;
55  return;
56 }
57 
59  static const string msg = "BPHPlusMinusVertex::computeApp: incomplete, no closest approach available";
60  delete inRPhi;
61  if (!chkSize(msg)) {
62  inRPhi = nullptr;
63  return;
64  }
66  const vector<reco::TransientTrack>& ttk = transientTracks();
67  const reco::TransientTrack& ttp = ttk[0];
68  const reco::TransientTrack& ttn = ttk[1];
70  oldA = false;
71  return;
72 }
TrajectoryStateClosestToPoint impactPointTSCP() const
const FreeTrajectoryState & theState() const
void setNotUpdated() const override
static bool chkSize(const T &cont, const std::string &msg)
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
~BPHPlusMinusVertex() override
BPHPlusMinusVertex(const BPHPlusMinusVertex &x)=delete
tuple msg
Definition: mps_check.py:285
virtual void computeApp() const
const std::vector< reco::TransientTrack > & transientTracks() const
get list of TransientTracks
void setNotUpdated() const override
ClosestApproachInRPhi * inRPhi