RecoTracker
TkSeedGenerator
plugins
SeedFromConsecutiveHitsStraightLineCreator.cc
Go to the documentation of this file.
1
#include "
SeedFromConsecutiveHitsStraightLineCreator.h
"
2
#include "
RecoTracker/TkTrackingRegions/interface/TrackingRegion.h
"
3
4
bool
SeedFromConsecutiveHitsStraightLineCreator::initialKinematic
(
GlobalTrajectoryParameters
& kine,
5
const
SeedingHitSet
&
hits
)
const
{
6
const
SeedingHitSet::ConstRecHitPointer
& tth1 =
hits
[0];
7
const
SeedingHitSet::ConstRecHitPointer
& tth2 =
hits
[1];
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:73
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
data-class-funcs.q
q
Definition:
data-class-funcs.py:169
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
SeedFromConsecutiveHitsStraightLineCreator.h
TrackingRegion.h
SeedFromConsecutiveHitsStraightLineCreator::initialKinematic
bool initialKinematic(GlobalTrajectoryParameters &kine, const SeedingHitSet &hits) const override
Definition:
SeedFromConsecutiveHitsStraightLineCreator.cc:4
Generated for CMSSW Reference Manual by
1.8.16