CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SeedFromConsecutiveHitsTripletOnlyCreator.cc
Go to the documentation of this file.
2 
10 
11 
12 bool SeedFromConsecutiveHitsTripletOnlyCreator::initialKinematic(GlobalTrajectoryParameters & kine,
13  const SeedingHitSet & hits) const {
14 
15 
16  const TransientTrackingRecHit::ConstRecHitPointer& tth1 = hits[0];
17  const TransientTrackingRecHit::ConstRecHitPointer& tth2 = hits[1];
18  const TransientTrackingRecHit::ConstRecHitPointer& tth3 = hits[2];
19 
20  FastHelix helix(tth3->globalPosition(), tth2->globalPosition(), tth1->globalPosition(), nomField, &*bfield, tth1->globalPosition());
21  kine = helix.stateAtVertex();
22 
23  if unlikely(isBOFF && (theBOFFMomentum > 0)) {
24  kine = GlobalTrajectoryParameters(kine.position(),
25  kine.momentum().unit() * theBOFFMomentum,
26  kine.charge(),
27  &*bfield);
28  }
29  return (filter ? filter->compatible(hits, kine, helix, *region) : true);
30 }
#define unlikely(x)
Definition: Likely.h:21