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 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 }
BPHPlusMinusVertex::setNotUpdated
void setNotUpdated() const override
Definition: BPHPlusMinusVertex.cc:52
BPHPlusMinusVertex::cAppInRPhi
virtual const ClosestApproachInRPhi & cAppInRPhi() const
compute distance of closest approach
Definition: BPHPlusMinusVertex.cc:40
mps_check.msg
tuple msg
Definition: mps_check.py:285
TransientTrack.h
BPHPlusMinusVertex::BPHPlusMinusVertex
BPHPlusMinusVertex(const BPHPlusMinusVertex &x)=delete
ClosestApproachInRPhi::calculate
bool calculate(const TrajectoryStateOnSurface &sta, const TrajectoryStateOnSurface &stb) override
Definition: ClosestApproachInRPhi.cc:8
ClosestApproachInRPhi
Definition: ClosestApproachInRPhi.h:26
BPHPlusMinusVertex::inRPhi
ClosestApproachInRPhi * inRPhi
Definition: BPHPlusMinusVertex.h:68
BPHDecayVertex::transientTracks
const std::vector< reco::TransientTrack > & transientTracks() const
get list of TransientTracks
Definition: BPHDecayVertex.cc:137
BPHDecayVertex::setNotUpdated
void setNotUpdated() const override
Definition: BPHDecayVertex.cc:175
BPHPlusMinusVertex.h
BPHDecayVertex
Definition: BPHDecayVertex.h:43
reco::TransientTrack::impactPointTSCP
TrajectoryStateClosestToPoint impactPointTSCP() const
Definition: TransientTrack.h:96
funct::true
true
Definition: Factorize.h:173
edm::EventSetup
Definition: EventSetup.h:58
BPHPlusMinusVertex::computeApp
virtual void computeApp() const
Definition: BPHPlusMinusVertex.cc:58
std
Definition: JetResolutionObject.h:76
reco::TransientTrack
Definition: TransientTrack.h:19
BPHPlusMinusVertex::oldA
bool oldA
Definition: BPHPlusMinusVertex.h:67
BPHDecayMomentum::daughters
virtual const std::vector< const reco::Candidate * > & daughters() const
Definition: BPHDecayMomentum.cc:73
TrajectoryStateClosestToPoint::theState
const FreeTrajectoryState & theState() const
Definition: TrajectoryStateClosestToPoint.h:96
BPHPlusMinusVertex::chkSize
static bool chkSize(const T &cont, const std::string &msg)
Definition: BPHPlusMinusVertex.h:83
BPHPlusMinusVertex::~BPHPlusMinusVertex
~BPHPlusMinusVertex() override
Definition: BPHPlusMinusVertex.cc:35