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.),
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),
43 
46  : initialFTS(fts),
47  hasTime(false),
48  timeExt_(0.),
49  dtErrorExt_(0.),
55  theTrackingGeometry(tg) {}
56 
58  const double time,
59  const double dtime,
61  : initialFTS(fts),
62  hasTime(true),
63  timeExt_(time),
64  dtErrorExt_(dtime),
70  theTrackingGeometry(tg) {}
71 
74  hasTime(tt.hasTime),
75  timeExt_(tt.timeExt_),
77  theField(tt.field()),
81  if (tt.initialTSOSAvailable) {
83  initialTSOSAvailable = true;
84  }
85  if (tt.initialTSCPAvailable) {
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 }
TrajectoryStateClosestToBeamLine stateAtBeamLine() const override
void setES(const edm::EventSetup &) override
const MagneticField * field() const override
TrajectoryStateOnSurface outermostMeasurementState() const override
TrajectoryStateOnSurface initialTSOS
#define nullptr
TrackCharge charge() const
const CurvilinearTrajectoryError & curvilinearError() const
void setTrackingGeometry(const edm::ESHandle< GlobalTrackingGeometry > &) override
const MagneticField * theField
TrajectoryStateClosestToPoint initialTSCP
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
FreeTrajectoryState initialFreeState() const override
const Track & track() const override
GlobalVector momentum() const
TrajectoryStateOnSurface impactPointState() const override
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalVector
vector in glovbal coordinate system
Definition: Vector3D.h:28
void setBeamSpot(const reco::BeamSpot &beamSpot) override
GlobalPoint position() const
TrajectoryStateClosestToPoint impactPointTSCP() const override
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
TrajectoryStateOnSurface innermostMeasurementState() const override
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
Definition: Point3D.h:18
TrajectoryStateOnSurface extrapolate(const FreeTrajectoryState &fts, const GlobalPoint &vtx) const
extrapolation with default (=geometrical) propagator
fixed size matrix
T get() const
Definition: EventSetup.h:73
TrajectoryStateOnSurface stateOnSurface(const GlobalPoint &point) const override
#define UNLIKELY(x)
Definition: Likely.h:21
TrajectoryStateClosestToBeamLine trajectoryStateClosestToBeamLine
*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