CMS 3D CMS Logo

SeedFromConsecutiveHitsStraightLineCreator.cc
Go to the documentation of this file.
3 
5  const SeedingHitSet& hits) const {
8 
9  const GlobalPoint& vertexPos = region->origin();
10 
11  // Assume initial state is straight line passing through beam spot
12  // with direction given by innermost two seed hits (with big uncertainty)
13  GlobalVector initMomentum(tth2->globalPosition() - tth1->globalPosition());
14  double rescale = 1000. / initMomentum.perp();
15  initMomentum *= rescale; // set to approximately infinite momentum
16  TrackCharge q = 1; // irrelevant, since infinite momentum
17  kine = GlobalTrajectoryParameters(vertexPos, initMomentum, q, &*bfield);
18 
19  return true;
20 }
Vector3DBase
Definition: Vector3DBase.h:8
TrackingRegion::origin
GlobalPoint const & origin() const
Definition: TrackingRegion.h:74
TrackCharge
int TrackCharge
Definition: TrackCharge.h:4
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
SeedingHitSet
Definition: SeedingHitSet.h:6
SeedingHitSet::ConstRecHitPointer
BaseTrackerRecHit const * ConstRecHitPointer
Definition: SeedingHitSet.h:10
MuonErrorMatrixAdjuster_cfi.rescale
rescale
Definition: MuonErrorMatrixAdjuster_cfi.py:8
SeedFromConsecutiveHitsCreator::bfield
edm::ESHandle< MagneticField > bfield
Definition: SeedFromConsecutiveHitsCreator.h:72
GlobalTrajectoryParameters
Definition: GlobalTrajectoryParameters.h:15
Point3DBase< float, GlobalTag >
SeedFromConsecutiveHitsCreator::region
const TrackingRegion * region
Definition: SeedFromConsecutiveHitsCreator.h:68
submitPVResolutionJobs.q
q
Definition: submitPVResolutionJobs.py:84
SeedFromConsecutiveHitsStraightLineCreator.h
TrackingRegion.h
SeedFromConsecutiveHitsStraightLineCreator::initialKinematic
bool initialKinematic(GlobalTrajectoryParameters &kine, const SeedingHitSet &hits) const override
Definition: SeedFromConsecutiveHitsStraightLineCreator.cc:4