CMS 3D CMS Logo

TransientTrackFromFTS.cc
Go to the documentation of this file.
7 // #include <iostream>
9 
10 using namespace reco;
11 
13  : hasTime(false),
14  timeExt_(0.),
15  dtErrorExt_(0.),
16  theField(nullptr),
17  initialTSOSAvailable(false),
18  initialTSCPAvailable(false),
19  trackAvailable(false),
20  blStateAvailable(false) {}
21 
23  : initialFTS(fts),
24  hasTime(false),
25  timeExt_(0.),
26  dtErrorExt_(0.),
27  theField(&(initialFTS.parameters().magneticField())),
28  initialTSOSAvailable(false),
29  initialTSCPAvailable(false),
30  trackAvailable(false),
31  blStateAvailable(false) {}
32 
33 TransientTrackFromFTS::TransientTrackFromFTS(const FreeTrajectoryState& fts, const double time, const double dtime)
34  : initialFTS(fts),
35  hasTime(true),
36  timeExt_(time),
37  dtErrorExt_(dtime),
38  theField(&(initialFTS.parameters().magneticField())),
39  initialTSOSAvailable(false),
40  initialTSCPAvailable(false),
41  trackAvailable(false),
42  blStateAvailable(false) {}
43 
46  : initialFTS(fts),
47  hasTime(false),
48  timeExt_(0.),
49  dtErrorExt_(0.),
50  theField(&(initialFTS.parameters().magneticField())),
51  initialTSOSAvailable(false),
52  initialTSCPAvailable(false),
53  trackAvailable(false),
54  blStateAvailable(false),
55  theTrackingGeometry(tg) {}
56 
58  const double time,
59  const double dtime,
61  : initialFTS(fts),
62  hasTime(true),
63  timeExt_(time),
64  dtErrorExt_(dtime),
65  theField(&(initialFTS.parameters().magneticField())),
66  initialTSOSAvailable(false),
67  initialTSCPAvailable(false),
68  trackAvailable(false),
69  blStateAvailable(false),
70  theTrackingGeometry(tg) {}
71 
73  : initialFTS(tt.initialFreeState()),
74  hasTime(tt.hasTime),
75  timeExt_(tt.timeExt_),
76  dtErrorExt_(tt.dtErrorExt_),
77  theField(tt.field()),
78  initialTSOSAvailable(false),
79  initialTSCPAvailable(false),
80  trackAvailable(false) {
81  if (tt.initialTSOSAvailable) {
82  initialTSOS = tt.impactPointState();
83  initialTSOSAvailable = true;
84  }
85  if (tt.initialTSCPAvailable) {
86  initialTSCP = tt.impactPointTSCP();
87  initialTSCPAvailable = true;
88  }
89 }
90 
93 }
94 
97 }
98 
101  blStateAvailable = false;
102 }
103 
105  if
107  return initialTSOS;
108 }
109 
111  if
114  initialTSCPAvailable = true;
115  }
116  return initialTSCP;
117 }
118 
120  throw cms::Exception("LogicError") << "TransientTrack built from a FreeTrajectoryState (TransientTrackFromFTS) can "
121  "not have an outermostMeasurementState";
122 }
123 
125  throw cms::Exception("LogicError") << "TransientTrack built from a FreeTrajectoryState (TransientTrackFromFTS) can "
126  "not have an innermostMeasurementState";
127 }
128 
132  initialTSOSAvailable = true;
133 }
134 
137  return tipe.extrapolate(initialFTS, point);
138 }
139 
141  if
144  math::XYZPoint pos(v.x(), v.y(), v.z());
146  math::XYZVector mom(p.x(), p.y(), p.z());
147 
149  trackAvailable = true;
150  }
151  return theTrack;
152 }
153 
155  if
157  TSCBLBuilderNoMaterial blsBuilder;
159  blStateAvailable = true;
160  }
162 }
Likely.h
TSCBLBuilderNoMaterial.h
FreeTrajectoryState::momentum
GlobalVector momentum() const
Definition: FreeTrajectoryState.h:68
TrajectoryStateClosestToBeamLine
Definition: TrajectoryStateClosestToBeamLine.h:15
reco::TransientTrackFromFTS::initialTSCPAvailable
bool initialTSCPAvailable
Definition: TransientTrackFromFTS.h:82
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
funct::false
false
Definition: Factorize.h:34
trajectoryStateTransform::initialFreeState
FreeTrajectoryState initialFreeState(const reco::Track &tk, const MagneticField *field, bool withErr=true)
Definition: TrajectoryStateTransform.cc:58
reco::TransientTrackFromFTS::track
const Track & track() const override
Definition: TransientTrackFromFTS.cc:140
groupFilesInBlocks.tt
int tt
Definition: groupFilesInBlocks.py:144
HLT_2018_cff.magneticField
magneticField
Definition: HLT_2018_cff.py:348
reco::TransientTrackFromFTS::stateAtBeamLine
TrajectoryStateClosestToBeamLine stateAtBeamLine() const override
Definition: TransientTrackFromFTS.cc:154
reco::TransientTrackFromFTS::initialTSOS
TrajectoryStateOnSurface initialTSOS
Definition: TransientTrackFromFTS.h:83
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
pos
Definition: PixelAliasList.h:18
FreeTrajectoryState::charge
TrackCharge charge() const
Definition: FreeTrajectoryState.h:69
reco::TransientTrackFromFTS
Definition: TransientTrackFromFTS.h:16
reco::TransientTrackFromFTS::setES
void setES(const edm::EventSetup &) override
Definition: TransientTrackFromFTS.cc:91
GlobalTrackingGeometryRecord
Definition: GlobalTrackingGeometryRecord.h:17
TransverseImpactPointExtrapolator
Definition: TransverseImpactPointExtrapolator.h:26
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
FreeTrajectoryState::position
GlobalPoint position() const
Definition: FreeTrajectoryState.h:67
findQualityFiles.v
v
Definition: findQualityFiles.py:179
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
reco::TransientTrackFromFTS::setTrackingGeometry
void setTrackingGeometry(const edm::ESHandle< GlobalTrackingGeometry > &) override
Definition: TransientTrackFromFTS.cc:95
parameters
parameters
Definition: BeamSpot_PayloadInspector.cc:14
UNLIKELY
#define UNLIKELY(x)
Definition: Likely.h:21
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
reco::TransientTrackFromFTS::builder
TSCPBuilderNoMaterial builder
Definition: TransientTrackFromFTS.h:86
reco::TransientTrackFromFTS::innermostMeasurementState
TrajectoryStateOnSurface innermostMeasurementState() const override
Definition: TransientTrackFromFTS.cc:124
reco::TransientTrackFromFTS::blStateAvailable
bool blStateAvailable
Definition: TransientTrackFromFTS.h:82
reco::TransientTrackFromFTS::initialTSCP
TrajectoryStateClosestToPoint initialTSCP
Definition: TransientTrackFromFTS.h:84
FreeTrajectoryState::curvilinearError
const CurvilinearTrajectoryError & curvilinearError() const
Definition: FreeTrajectoryState.h:89
reco::TransientTrackFromFTS::theField
const MagneticField * theField
Definition: TransientTrackFromFTS.h:81
reco::BeamSpot
Definition: BeamSpot.h:21
reco::Track
Definition: Track.h:27
edm::ESHandle< GlobalTrackingGeometry >
reco::TransientTrackFromFTS::theTrackingGeometry
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
Definition: TransientTrackFromFTS.h:87
reco::TransientTrackFromFTS::impactPointTSCP
TrajectoryStateClosestToPoint impactPointTSCP() const override
Definition: TransientTrackFromFTS.cc:110
reco::TransientTrackFromFTS::stateOnSurface
TrajectoryStateOnSurface stateOnSurface(const GlobalPoint &point) const override
Definition: TransientTrackFromFTS.cc:135
GlobalTrackingGeometryRecord.h
funct::true
true
Definition: Factorize.h:173
Error.h
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
reco::TransientTrackFromFTS::TransientTrackFromFTS
TransientTrackFromFTS()
Definition: TransientTrackFromFTS.cc:12
math::GlobalVector
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalVector
vector in glovbal coordinate system
Definition: Vector3D.h:28
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
edm::EventSetup
Definition: EventSetup.h:57
TrajectoryStateClosestToPoint
Definition: TrajectoryStateClosestToPoint.h:18
reco::TransientTrackFromFTS::outermostMeasurementState
TrajectoryStateOnSurface outermostMeasurementState() const override
Definition: TransientTrackFromFTS.cc:119
reco::TransientTrackFromFTS::impactPointState
TrajectoryStateOnSurface impactPointState() const override
Definition: TransientTrackFromFTS.cc:104
reco::TransientTrackFromFTS::setBeamSpot
void setBeamSpot(const reco::BeamSpot &beamSpot) override
Definition: TransientTrackFromFTS.cc:99
reco::get
T get(const Candidate &c)
Definition: component.h:60
reco::TransientTrackFromFTS::theBeamSpot
reco::BeamSpot theBeamSpot
Definition: TransientTrackFromFTS.h:88
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
TSCBLBuilderNoMaterial
Definition: TSCBLBuilderNoMaterial.h:13
Exception
Definition: hltDiff.cc:246
reco::TransientTrackFromFTS::trackAvailable
bool trackAvailable
Definition: TransientTrackFromFTS.h:82
TransverseImpactPointExtrapolator.h
reco::TransientTrackFromFTS::theTrack
Track theTrack
Definition: TransientTrackFromFTS.h:85
TransientTrackFromFTS.h
TransverseImpactPointExtrapolator::extrapolate
TrajectoryStateOnSurface extrapolate(const FreeTrajectoryState &fts, const GlobalPoint &vtx) const
extrapolation with default (=geometrical) propagator
Definition: TransverseImpactPointExtrapolator.cc:23
math::GlobalPoint
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
Definition: Point3D.h:18
reco::TransientTrackFromFTS::calculateTSOSAtVertex
void calculateTSOSAtVertex() const
Definition: TransientTrackFromFTS.cc:129
reco::TransientTrackFromFTS::initialTSOSAvailable
bool initialTSOSAvailable
Definition: TransientTrackFromFTS.h:82
reco::TransientTrackFromFTS::trajectoryStateClosestToBeamLine
TrajectoryStateClosestToBeamLine trajectoryStateClosestToBeamLine
Definition: TransientTrackFromFTS.h:89
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
ntuplemaker.time
time
Definition: ntuplemaker.py:310
reco::TransientTrackFromFTS::initialFTS
FreeTrajectoryState initialFTS
Definition: TransientTrackFromFTS.h:77
Vector3D.h