CMS 3D CMS Logo

VirtualKinematicParticle.cc
Go to the documentation of this file.
3 
5  float& chiSquared,
6  float& degreesOfFr,
7  KinematicConstraint* lastConstraint,
10  theField = kineState.magneticField();
11  if (previousParticle.get() == nullptr) {
12  initState = kineState;
13  } else {
14  initState = previousParticle->initialState();
15  }
16  cState = kineState;
18  chi2 = chiSquared;
19  ndf = degreesOfFr;
21  if (pr != nullptr) {
22  propagator = pr->clone();
23  } else {
25  }
26  tree = nullptr;
27 }
28 
30 
32  bool dc = false;
33 
34  //first looking if this is an object of the same type
35  const KinematicParticle* lp = &other;
36  const VirtualKinematicParticle* lPart = dynamic_cast<const VirtualKinematicParticle*>(lp);
37  if (lPart != nullptr && initialState() == lPart->initialState())
38  dc = true;
39  return dc;
40 }
41 
43  bool res = false;
44  if (*this == *other)
45  res = true;
46  return res;
47 }
48 
50  if (*this == other) {
51  return false;
52  } else {
53  return true;
54  }
55 }
56 
59  if ((iP.x() == point.x()) && (iP.y() == point.y()) && (iP.z() == point.z())) {
60  return cState;
61  } else {
63  }
64 }
65 
67  float chi2,
68  float ndf,
69  KinematicConstraint* cons) const {
70  VirtualKinematicParticle* ncp = const_cast<VirtualKinematicParticle*>(this);
73  new VirtualKinematicParticle(state, chi2, ndf, cons, current, propagator));
74 }
75 
77  const GlobalPoint& point) const {
78  VirtualKinematicParticle* cr = const_cast<VirtualKinematicParticle*>(this);
81 }
bool operator==(const KinematicParticle &other) const override
KinematicState stateAtPoint(const GlobalPoint &point) const override
RefCountedLinearizedTrackState linearizedTrackState(const GlobalPoint &linP, RefCountedKinematicParticle &prt) const
RefCountedLinearizedTrackState particleLinearizedTrackState(const GlobalPoint &point) const override
T z() const
Definition: PV3DBase.h:61
ReferenceCountingPointer< KinematicParticle > pState
ParticleKinematicLinearizedTrackStateFactory linFactory
virtual ReferenceCountingPointer< KinematicParticle > previousParticle() const
virtual KinematicState propagateToTheTransversePCA(const KinematicState &state, const GlobalPoint &point) const =0
Definition: Electron.h:6
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
KinematicState cState
KinematicParameters const & kinematicParameters() const
virtual float chiSquared() const
KinematicConstraint * lConstraint
KinematicState initState
bool operator!=(const KinematicParticle &other) const override
VirtualKinematicParticle(const KinematicState &kineState, float &chiSquared, float &degreesOfFr, KinematicConstraint *lastConstraint, ReferenceCountingPointer< KinematicParticle > previousParticle, KinematicStatePropagator *pr)
GlobalPoint position() const
virtual KinematicConstraint * lastConstraint() const
const MagneticField * theField
virtual KinematicState initialState() const
const MagneticField * magneticField() const
KinematicStatePropagator * propagator
Definition: tree.py:1
RefCountedKinematicParticle refittedParticle(const KinematicState &state, float chi2, float ndf, KinematicConstraint *cons=nullptr) const override
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5