CMS 3D CMS Logo

TrajectoryMeasurement.h
Go to the documentation of this file.
1 #ifndef _TRACKER_TRAJECTORYMEASUREMENT_H_
2 #define _TRACKER_TRAJECTORYMEASUREMENT_H_
3 
5 
7 #include <algorithm>
8 
9 class DetLayer;
10 
26 public:
29 
31 
34  : theFwdPredictedState(fwdTrajectoryStateOnSurface),
35  theUpdatedState(fwdTrajectoryStateOnSurface),
36  theRecHit(aRecHit),
37  theLayer(nullptr),
38  theEstimate(0) {}
39 
41  TrajectoryMeasurement(TrajectoryStateOnSurface fwdTrajectoryStateOnSurface,
42  ConstRecHitPointer aRecHit,
43  float aEstimate)
44  : theFwdPredictedState(fwdTrajectoryStateOnSurface),
45  theUpdatedState(fwdTrajectoryStateOnSurface),
46  theRecHit(aRecHit),
47  theLayer(nullptr),
48  theEstimate(aEstimate) {}
49 
50  TrajectoryMeasurement(TrajectoryStateOnSurface fwdTrajectoryStateOnSurface,
51  ConstRecHitPointer aRecHit,
52  float aEstimate,
53  const DetLayer* layer)
54  : theFwdPredictedState(std::move(fwdTrajectoryStateOnSurface)),
56  theRecHit(std::move(aRecHit)),
57  theLayer(layer),
58  theEstimate(aEstimate) {}
59 
61  TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface,
62  TrajectoryStateOnSurface uTrajectoryStateOnSurface,
63  ConstRecHitPointer aRecHit)
64  : theFwdPredictedState(std::move(fwdPredTrajectoryStateOnSurface)),
65  theUpdatedState(std::move(uTrajectoryStateOnSurface)),
66  theRecHit(std::move(aRecHit)),
67  theLayer(nullptr),
68  theEstimate(0) {}
69 
71  TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface,
72  TrajectoryStateOnSurface uTrajectoryStateOnSurface,
73  ConstRecHitPointer aRecHit,
74  float aEstimate)
75  : theFwdPredictedState(std::move(fwdPredTrajectoryStateOnSurface)),
76  theUpdatedState(std::move(uTrajectoryStateOnSurface)),
77  theRecHit(std::move(aRecHit)),
78  theLayer(nullptr),
79  theEstimate(aEstimate) {}
80  TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface,
81  TrajectoryStateOnSurface uTrajectoryStateOnSurface,
82  ConstRecHitPointer aRecHit,
83  float aEstimate,
84  const DetLayer* layer)
85  : theFwdPredictedState(std::move(fwdPredTrajectoryStateOnSurface)),
86  theUpdatedState(std::move(uTrajectoryStateOnSurface)),
87  theRecHit(std::move(aRecHit)),
88  theLayer(layer),
89  theEstimate(aEstimate) {}
93  TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface,
94  TrajectoryStateOnSurface bwdPredTrajectoryStateOnSurface,
95  TrajectoryStateOnSurface uTrajectoryStateOnSurface,
96  ConstRecHitPointer aRecHit)
97  : theFwdPredictedState(fwdPredTrajectoryStateOnSurface),
98  theBwdPredictedState(bwdPredTrajectoryStateOnSurface),
99  theUpdatedState(uTrajectoryStateOnSurface),
100  theRecHit(aRecHit),
101  theLayer(nullptr),
102  theEstimate(0) {}
103 
107  TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface,
108  TrajectoryStateOnSurface bwdPredTrajectoryStateOnSurface,
109  TrajectoryStateOnSurface uTrajectoryStateOnSurface,
110  ConstRecHitPointer aRecHit,
111  float aEstimate)
112  : theFwdPredictedState(fwdPredTrajectoryStateOnSurface),
113  theBwdPredictedState(bwdPredTrajectoryStateOnSurface),
114  theUpdatedState(uTrajectoryStateOnSurface),
115  theRecHit(aRecHit),
116  theLayer(nullptr),
117  theEstimate(aEstimate) {}
118 
119  TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface,
120  TrajectoryStateOnSurface bwdPredTrajectoryStateOnSurface,
121  TrajectoryStateOnSurface uTrajectoryStateOnSurface,
122  ConstRecHitPointer aRecHit,
123  float aEstimate,
124  const DetLayer* layer)
125  : theFwdPredictedState(fwdPredTrajectoryStateOnSurface),
126  theBwdPredictedState(bwdPredTrajectoryStateOnSurface),
127  theUpdatedState(uTrajectoryStateOnSurface),
128  theRecHit(aRecHit),
129  theLayer(layer),
130  theEstimate(aEstimate) {}
131 
136  theRecHit(rh.theRecHit),
137  theLayer(rh.theLayer),
138  theEstimate(rh.theEstimate) {}
139 
144  theRecHit = rh.theRecHit;
146  theLayer = rh.theLayer;
147 
148  return *this;
149  }
150 
152  : theFwdPredictedState(std::move(rh.theFwdPredictedState)),
153  theBwdPredictedState(std::move(rh.theBwdPredictedState)),
154  theUpdatedState(std::move(rh.theUpdatedState)),
155  theRecHit(std::move(rh.theRecHit)),
156  theLayer(rh.theLayer),
157  theEstimate(rh.theEstimate) {}
158 
160  using std::swap;
161  swap(theFwdPredictedState, rh.theFwdPredictedState);
162  swap(theBwdPredictedState, rh.theBwdPredictedState);
163  swap(theUpdatedState, rh.theUpdatedState);
164  swap(theRecHit, rh.theRecHit);
165  theEstimate = rh.theEstimate;
166  theLayer = rh.theLayer;
167 
168  return *this;
169  }
170 
175 
180 
185 
186  ConstRecHitPointer::element_type const& recHitR() const { return *theRecHit; }
187 
188  ConstRecHitPointer const& recHitP() const { return theRecHit; }
189 
190  ConstRecHitPointer const& recHit() const { return recHitP(); }
191 
192  float estimate() const { return theEstimate; }
193 
194  const DetLayer* layer() const { return theLayer; }
195 
196  // void setLayer( DetLayer const * il) const { theLayer=il;}
197 
198 private:
204  float theEstimate;
205 };
206 
207 #endif
TrajectoryMeasurement::recHitP
ConstRecHitPointer const & recHitP() const
Definition: TrajectoryMeasurement.h:188
TrajectoryStateOnSurface.h
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement(TrajectoryMeasurement const &rh)
Definition: TrajectoryMeasurement.h:132
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement(TrajectoryStateOnSurface fwdTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate)
Constructor with forward predicted state, RecHit, estimate.
Definition: TrajectoryMeasurement.h:41
DetLayer
Definition: DetLayer.h:21
edm::swap
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:117
TrajectoryMeasurement::operator=
TrajectoryMeasurement & operator=(TrajectoryMeasurement &&rh) noexcept
Definition: TrajectoryMeasurement.h:159
TrajectoryMeasurement::updatedState
TrajectoryStateOnSurface const & updatedState() const
Definition: TrajectoryMeasurement.h:184
TrackingRecHit::RecHitPointer
std::shared_ptr< TrackingRecHit const > RecHitPointer
Definition: TrackingRecHit.h:24
TrajectoryMeasurement::RecHitPointer
TrackingRecHit::RecHitPointer RecHitPointer
Definition: TrajectoryMeasurement.h:27
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface bwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit)
Definition: TrajectoryMeasurement.h:93
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement(TrajectoryStateOnSurface fwdTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate, const DetLayer *layer)
Definition: TrajectoryMeasurement.h:50
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement(TrajectoryStateOnSurface fwdTrajectoryStateOnSurface, ConstRecHitPointer aRecHit)
Constructor with forward predicted state, const TrackingRecHit*.
Definition: TrajectoryMeasurement.h:33
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
TrackingRecHit.h
TrajectoryMeasurement::predictedState
TrajectoryStateOnSurface const & predictedState() const
Definition: TrajectoryMeasurement.h:174
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
TrajectoryMeasurement::backwardPredictedState
TrajectoryStateOnSurface const & backwardPredictedState() const
Access to backward predicted state (from smoother)
Definition: TrajectoryMeasurement.h:179
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate, const DetLayer *layer)
Definition: TrajectoryMeasurement.h:80
TrajectoryMeasurement::forwardPredictedState
TrajectoryStateOnSurface const & forwardPredictedState() const
Access to forward predicted state (from fitter or builder)
Definition: TrajectoryMeasurement.h:177
TrajectoryMeasurement::theUpdatedState
TrajectoryStateOnSurface theUpdatedState
Definition: TrajectoryMeasurement.h:201
TrajectoryMeasurement::theLayer
DetLayer const * theLayer
Definition: TrajectoryMeasurement.h:203
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface bwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate, const DetLayer *layer)
Definition: TrajectoryMeasurement.h:119
TrackingRecHit::ConstRecHitPointer
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
Definition: TrackingRecHit.h:25
TrajectoryMeasurement::theRecHit
ConstRecHitPointer theRecHit
Definition: TrajectoryMeasurement.h:202
TrajectoryMeasurement::recHit
ConstRecHitPointer const & recHit() const
Definition: TrajectoryMeasurement.h:190
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface bwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate)
Definition: TrajectoryMeasurement.h:107
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit)
Constructor with forward predicted & updated state, RecHit.
Definition: TrajectoryMeasurement.h:61
TrajectoryMeasurement::estimate
float estimate() const
Definition: TrajectoryMeasurement.h:192
TrajectoryMeasurement::ConstRecHitPointer
TrackingRecHit::ConstRecHitPointer ConstRecHitPointer
Definition: TrajectoryMeasurement.h:28
TrajectoryMeasurement::theBwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
Definition: TrajectoryMeasurement.h:200
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement(TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate)
Constructor with forward predicted & updated state, RecHit, estimate.
Definition: TrajectoryMeasurement.h:71
TrajectoryMeasurement::recHitR
ConstRecHitPointer::element_type const & recHitR() const
Definition: TrajectoryMeasurement.h:186
TrajectoryMeasurement::theFwdPredictedState
TrajectoryStateOnSurface theFwdPredictedState
Definition: TrajectoryMeasurement.h:199
TrajectoryMeasurement::layer
const DetLayer * layer() const
Definition: TrajectoryMeasurement.h:194
TrajectoryMeasurement
Definition: TrajectoryMeasurement.h:25
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement(TrajectoryMeasurement &&rh) noexcept
Definition: TrajectoryMeasurement.h:151
TrajectoryMeasurement::operator=
TrajectoryMeasurement & operator=(TrajectoryMeasurement const &rh)
Definition: TrajectoryMeasurement.h:140
TrajectoryMeasurement::theEstimate
float theEstimate
Definition: TrajectoryMeasurement.h:204
TrajectoryMeasurement::TrajectoryMeasurement
TrajectoryMeasurement()
Definition: TrajectoryMeasurement.h:30