Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoTracker
TkSeedGenerator
plugins
SeedFromConsecutiveHitsTripletOnlyCreator.cc
Go to the documentation of this file.
1
#include "
SeedFromConsecutiveHitsTripletOnlyCreator.h
"
2
3
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
4
#include "
MagneticField/Engine/interface/MagneticField.h
"
5
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
6
#include "
FWCore/Framework/interface/ESHandle.h
"
7
#include "
FWCore/Framework/interface/EventSetup.h
"
8
#include "
RecoTracker/TkTrackingRegions/interface/TrackingRegion.h
"
9
#include "
RecoTracker/TkSeedGenerator/interface/FastHelix.h
"
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
}
MessageLogger.h
ConstReferenceCountingPointer< TransientTrackingRecHit >
GlobalTrajectoryParameters
Definition:
GlobalTrajectoryParameters.h:16
EventSetup.h
FastHelix
Definition:
FastHelix.h:26
alcazmumu_cfi.filter
tuple filter
Definition:
alcazmumu_cfi.py:34
MagneticField.h
unlikely
#define unlikely(x)
Definition:
Likely.h:21
SeedFromConsecutiveHitsTripletOnlyCreator.h
SeedingHitSet
Definition:
SeedingHitSet.h:6
ESHandle.h
TrackingRegion.h
IdealMagneticFieldRecord.h
FastHelix.h
Generated for CMSSW Reference Manual by
1.8.5