CMS 3D CMS Logo

GsfTransientTrack.cc
Go to the documentation of this file.
8 #include <iostream>
9 
10 using namespace reco;
11 using namespace std;
12 
14  : GsfTrack(),
15  tkr_(),
16  hasTime(false),
17  timeExt_(0.),
18  dtErrorExt_(0.),
19  theField(nullptr),
20  initialTSOSAvailable(false),
21  initialTSCPAvailable(false),
22  blStateAvailable(false),
23  theTIPExtrapolator() {}
24 
26  : GsfTrack(tk),
27  tkr_(),
28  hasTime(false),
29  timeExt_(0.),
30  dtErrorExt_(0.),
31  theField(field),
32  initialTSOSAvailable(false),
33  initialTSCPAvailable(false),
34  blStateAvailable(false) {
36 }
37 
39  const double time,
40  const double dtime,
41  const MagneticField* field)
42  : GsfTrack(tk),
43  tkr_(),
44  hasTime(true),
45  timeExt_(time),
46  dtErrorExt_(dtime),
47  theField(field),
48  initialTSOSAvailable(false),
49  initialTSCPAvailable(false),
50  blStateAvailable(false) {
52 }
53 
55  : GsfTrack(*tk),
56  tkr_(tk),
57  hasTime(false),
58  timeExt_(0.),
59  dtErrorExt_(0.),
60  theField(field),
61  initialTSOSAvailable(false),
62  initialTSCPAvailable(false),
63  blStateAvailable(false),
64  theTIPExtrapolator(AnalyticalPropagator(field, alongMomentum)) {
66 }
67 
69  const double time,
70  const double dtime,
71  const MagneticField* field)
72  : GsfTrack(*tk),
73  tkr_(tk),
74  hasTime(true),
75  timeExt_(time),
76  dtErrorExt_(dtime),
77  theField(field),
78  initialTSOSAvailable(false),
79  initialTSCPAvailable(false),
80  blStateAvailable(false),
81  theTIPExtrapolator(AnalyticalPropagator(field, alongMomentum)) {
83 }
84 
86  const MagneticField* field,
88  : GsfTrack(tk),
89  tkr_(),
90  hasTime(false),
91  timeExt_(0.),
92  dtErrorExt_(0.),
93  theField(field),
94  initialTSOSAvailable(false),
95  initialTSCPAvailable(false),
96  blStateAvailable(false),
97  theTrackingGeometry(tg),
98  theTIPExtrapolator(AnalyticalPropagator(field, alongMomentum)) {
100 }
101 
103  const double time,
104  const double dtime,
105  const MagneticField* field,
107  : GsfTrack(tk),
108  tkr_(),
109  hasTime(true),
110  timeExt_(time),
111  dtErrorExt_(dtime),
112  theField(field),
113  initialTSOSAvailable(false),
114  initialTSCPAvailable(false),
115  blStateAvailable(false),
116  theTrackingGeometry(tg),
117  theTIPExtrapolator(AnalyticalPropagator(field, alongMomentum)) {
119 }
120 
122  const MagneticField* field,
124  : GsfTrack(*tk),
125  tkr_(tk),
126  hasTime(false),
127  timeExt_(0.),
128  dtErrorExt_(0.),
129  theField(field),
130  initialTSOSAvailable(false),
131  initialTSCPAvailable(false),
132  blStateAvailable(false),
133  theTrackingGeometry(tg),
134  theTIPExtrapolator(AnalyticalPropagator(field, alongMomentum)) {
136 }
137 
139  const double time,
140  const double dtime,
141  const MagneticField* field,
143  : GsfTrack(*tk),
144  tkr_(tk),
145  hasTime(true),
146  timeExt_(time),
147  dtErrorExt_(dtime),
148  theField(field),
149  initialTSOSAvailable(false),
150  initialTSCPAvailable(false),
151  blStateAvailable(false),
152  theTrackingGeometry(tg),
153  theTIPExtrapolator(AnalyticalPropagator(field, alongMomentum)) {
155 }
156 
158  : GsfTrack(tt),
159  tkr_(tt.persistentTrackRef()),
160  hasTime(tt.hasTime),
161  timeExt_(tt.timeExt_),
162  dtErrorExt_(tt.dtErrorExt_),
163  theField(tt.field()),
164  initialFTS(tt.initialFreeState()),
165  initialTSOSAvailable(false),
166  initialTSCPAvailable(false),
167  theTIPExtrapolator(AnalyticalPropagator(tt.field(), alongMomentum)) {
168  if (tt.initialTSOSAvailable) {
169  initialTSOS = tt.impactPointState();
170  initialTSOSAvailable = true;
171  }
172  if (tt.initialTSCPAvailable) {
173  initialTSCP = tt.impactPointTSCP();
174  initialTSCPAvailable = true;
175  }
176 }
177 
180 }
181 
183  theTrackingGeometry = tg;
184 }
185 
188  blStateAvailable = false;
189 }
190 
194  return initialTSOS;
195 }
196 
198  if (!initialTSCPAvailable) {
200  initialTSCPAvailable = true;
201  }
202  return initialTSCP;
203 }
204 
207 }
208 
211 }
212 
216  initialTSOSAvailable = true;
217 }
218 
221 }
222 
224  return builder(stateOnSurface(point), point);
225 }
226 
228  if (!blStateAvailable) {
229  TSCBLBuilderNoMaterial blsBuilder;
231  blStateAvailable = true;
232  }
234 }
TSCBLBuilderNoMaterial.h
TrajectoryStateClosestToBeamLine
Definition: TrajectoryStateClosestToBeamLine.h:15
reco::GsfTransientTrack::setBeamSpot
void setBeamSpot(const reco::BeamSpot &beamSpot) override
Definition: GsfTransientTrack.cc:186
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
groupFilesInBlocks.tt
int tt
Definition: groupFilesInBlocks.py:144
reco::GsfTransientTrack::field
const MagneticField * field() const override
Definition: GsfTransientTrack.h:98
GsfPropagatorAdapter.h
reco::GsfTransientTrack
Definition: GsfTransientTrack.h:18
reco::GsfTransientTrack::initialFTS
FreeTrajectoryState initialFTS
Definition: GsfTransientTrack.h:117
reco::GsfTransientTrack::initialTSOS
TrajectoryStateOnSurface initialTSOS
Definition: GsfTransientTrack.h:119
reco::GsfTransientTrack::trajectoryStateClosestToPoint
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const GlobalPoint &point) const override
Definition: GsfTransientTrack.cc:223
reco::GsfTransientTrack::theTIPExtrapolator
TransverseImpactPointExtrapolator theTIPExtrapolator
Definition: GsfTransientTrack.h:126
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
reco::GsfTransientTrack::blStateAvailable
bool blStateAvailable
Definition: GsfTransientTrack.h:118
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
edm::Ref< GsfTrackCollection >
MultiTrajectoryStateTransform::outerStateOnSurface
TrajectoryStateOnSurface outerStateOnSurface(const reco::GsfTrack &tk) const
Definition: MultiTrajectoryStateTransform.cc:19
GsfTransientTrack.h
reco::GsfTrack
Definition: GsfTrack.h:12
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
reco::GsfTransientTrack::trajectoryStateClosestToBeamLine
TrajectoryStateClosestToBeamLine trajectoryStateClosestToBeamLine
Definition: GsfTransientTrack.h:124
reco::GsfTransientTrack::theBeamSpot
reco::BeamSpot theBeamSpot
Definition: GsfTransientTrack.h:123
reco::BeamSpot
Definition: BeamSpot.h:21
edm::ESHandle< GlobalTrackingGeometry >
reco::GsfTransientTrack::initialTSCPAvailable
bool initialTSCPAvailable
Definition: GsfTransientTrack.h:118
reco::GsfTransientTrack::theTrackingGeometry
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
Definition: GsfTransientTrack.h:122
GlobalTrackingGeometryRecord.h
AnalyticalPropagator_cfi.AnalyticalPropagator
AnalyticalPropagator
Definition: AnalyticalPropagator_cfi.py:3
MultiTrajectoryStateTransform.h
reco::GsfTransientTrack::stateOnSurface
TrajectoryStateOnSurface stateOnSurface(const GlobalPoint &point) const override
Definition: GsfTransientTrack.cc:219
reco::GsfTransientTrack::initialTSCP
TrajectoryStateClosestToPoint initialTSCP
Definition: GsfTransientTrack.h:120
funct::true
true
Definition: Factorize.h:173
reco::GsfTransientTrack::outermostMeasurementState
TrajectoryStateOnSurface outermostMeasurementState() const override
Definition: GsfTransientTrack.cc:205
reco::GsfTransientTrack::theField
const MagneticField * theField
Definition: GsfTransientTrack.h:115
edm::EventSetup
Definition: EventSetup.h:57
AnalyticalPropagator.h
TrajectoryStateClosestToPoint
Definition: TrajectoryStateClosestToPoint.h:18
reco::GsfTransientTrack::GsfTransientTrack
GsfTransientTrack()
Definition: GsfTransientTrack.cc:13
reco::get
T get(const Candidate &c)
Definition: component.h:60
std
Definition: JetResolutionObject.h:76
reco::GsfTransientTrack::setES
void setES(const edm::EventSetup &) override
Definition: GsfTransientTrack.cc:178
TSCBLBuilderNoMaterial
Definition: TSCBLBuilderNoMaterial.h:13
reco::GsfTransientTrack::calculateTSOSAtVertex
void calculateTSOSAtVertex() const
Definition: GsfTransientTrack.cc:213
reco::GsfTransientTrack::setTrackingGeometry
void setTrackingGeometry(const edm::ESHandle< GlobalTrackingGeometry > &) override
Definition: GsfTransientTrack.cc:182
TransverseImpactPointExtrapolator::extrapolate
TrajectoryStateOnSurface extrapolate(const FreeTrajectoryState &fts, const GlobalPoint &vtx) const
extrapolation with default (=geometrical) propagator
Definition: TransverseImpactPointExtrapolator.cc:23
MultiTrajectoryStateTransform::innerStateOnSurface
TrajectoryStateOnSurface innerStateOnSurface(const reco::GsfTrack &tk) const
Definition: MultiTrajectoryStateTransform.cc:23
TrajectoryStateTransform.h
reco::GsfTransientTrack::initialTSOSAvailable
bool initialTSOSAvailable
Definition: GsfTransientTrack.h:118
math::GlobalPoint
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
Definition: Point3D.h:18
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::GsfTransientTrack::impactPointState
TrajectoryStateOnSurface impactPointState() const override
Definition: GsfTransientTrack.cc:191
MagneticField
Definition: MagneticField.h:19
reco::GsfTransientTrack::builder
TSCPBuilderNoMaterial builder
Definition: GsfTransientTrack.h:121
reco::GsfTransientTrack::impactPointTSCP
TrajectoryStateClosestToPoint impactPointTSCP() const override
Definition: GsfTransientTrack.cc:197
alongMomentum
Definition: PropagationDirection.h:4
reco::GsfTransientTrack::stateAtBeamLine
TrajectoryStateClosestToBeamLine stateAtBeamLine() const override
Definition: GsfTransientTrack.cc:227
reco::GsfTransientTrack::innermostMeasurementState
TrajectoryStateOnSurface innermostMeasurementState() const override
Definition: GsfTransientTrack.cc:209