Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoTracker
TkSeedGenerator
src
SeedFromConsecutiveHitsTripletOnlyCreator.cc
Go to the documentation of this file.
1
#include "
RecoTracker/TkSeedGenerator/interface/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
GlobalTrajectoryParameters
SeedFromConsecutiveHitsTripletOnlyCreator::initialKinematic
(
13
const
SeedingHitSet
& hits,
14
const
TrackingRegion
& region,
15
const
edm::EventSetup
& es)
const
16
{
17
GlobalTrajectoryParameters
kine;
18
19
const
TransientTrackingRecHit::ConstRecHitPointer
& tth1 = hits[0];
20
const
TransientTrackingRecHit::ConstRecHitPointer
& tth2 = hits[1];
21
const
TransientTrackingRecHit::ConstRecHitPointer
& tth3 = hits[2];
22
23
FastHelix
helix(tth3->globalPosition(), tth2->globalPosition(), tth1->globalPosition(), es, tth1->globalPosition());
24
kine = helix.stateAtVertex().parameters();
25
26
edm::ESHandle<MagneticField>
bfield;
27
es.
get
<
IdealMagneticFieldRecord
>().
get
(bfield);
28
bool
isBOFF = (
std::abs
(bfield->inTesla(
GlobalPoint
(0,0,0)).z()) < 1
e
-3 );
29
if
(isBOFF && (
theBOFFMomentum
> 0)) {
30
kine =
GlobalTrajectoryParameters
(kine.position(),
31
kine.momentum().unit() *
theBOFFMomentum
,
32
kine.charge(),
33
&*bfield);
34
}
35
return
kine;
36
}
ExpressReco_HICollisions_FallBack.e
tuple e
Definition:
ExpressReco_HICollisions_FallBack.py:1068
MessageLogger.h
ConstReferenceCountingPointer< TransientTrackingRecHit >
GlobalTrajectoryParameters
Definition:
GlobalTrajectoryParameters.h:16
EventSetup.h
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
abs
#define abs(x)
Definition:
mlp_lapack.h:159
FastHelix
Definition:
FastHelix.h:27
TrackingRegion
Definition:
TrackingRegion.h:26
MagneticField.h
SeedFromConsecutiveHitsCreator::theBOFFMomentum
double theBOFFMomentum
Definition:
SeedFromConsecutiveHitsCreator.h:55
SeedFromConsecutiveHitsTripletOnlyCreator::initialKinematic
virtual GlobalTrajectoryParameters initialKinematic(const SeedingHitSet &hits, const TrackingRegion ®ion, const edm::EventSetup &es) const
Definition:
SeedFromConsecutiveHitsTripletOnlyCreator.cc:12
SeedingHitSet
Definition:
SeedingHitSet.h:6
edm::ESHandle< MagneticField >
ESHandle.h
TrackingRegion.h
edm::EventSetup
Definition:
EventSetup.h:44
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:55
Point3DBase< float, GlobalTag >
SeedFromConsecutiveHitsTripletOnlyCreator.h
IdealMagneticFieldRecord.h
FastHelix.h
Generated for CMSSW Reference Manual by
1.8.5