|
|
Go to the documentation of this file.
38 theTrackerRecHitBuilderName(
parameterSet.getParameter<
string>(
"TrackerRecHitBuilder")),
123 if ((*hit)->isValid()) {
125 result.emplace_back((**hit).cloneForFit(*tkbuilder->geometry()->idToDet((**hit).geographicalId())));
126 }
else if ((*hit)->geographicalId().det() ==
DetId::Muon) {
127 if ((*hit)->geographicalId().subdetId() == 3 && !
theRPCInTheFit) {
128 LogTrace(
"Reco|TrackingTools|TrackTransformer") <<
"RPC Rec Hit discarged";
132 }
else if ((*hit)->geographicalId().det() ==
DetId::Forward && (*hit)->geographicalId().subdetId() ==
FastTime) {
136 throw cms::Exception(
"TrackTransformer") <<
"MTD hit encountered but MTD not available!";
152 auto rFirst =
first.mag2();
153 auto rLast =
last.mag2();
159 LogDebug(
"Reco|TrackingTools|TrackTransformer") <<
"Impossible to determine the rechits order" << endl;
178 if (recHitsForReFit.size() < 2)
179 return vector<Trajectory>();
214 LogTrace(
metname) <<
"RH order (0-insideOut, 1-outsideIn): " << recHitsOrder;
228 LogTrace(
metname) <<
"FD (0-OM, 1-AM, 2-ANY): " << propagationDirection;
236 reverse(recHitsForReFit.begin(), recHitsForReFit.end());
243 reverse(recHitsForReFit.begin(), recHitsForReFit.end());
249 unsigned int innerId =
track.track().innerDetId();
252 innerId =
track.track().outerDetId();
253 firstTSOS =
track.outermostMeasurementState();
258 innerId =
track.track().outerDetId();
259 firstTSOS =
track.outermostMeasurementState();
267 return vector<Trajectory>();
272 if (recHitsForReFit.front()->geographicalId() !=
DetId(innerId)) {
277 return vector<Trajectory>();
284 for (
auto const&
hit : recHitsForReFit) {
289 return vector<Trajectory>(1, aTraj);
301 auto const& trajectoriesSM =
theSmoother->trajectories(trajectoryBW);
303 if (trajectoriesSM.empty()) {
307 return trajectoriesSM;
virtual TrajectorySmoother * clone() const =0
T const * product() const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
virtual RecHitPointer build(const TrackingRecHit *p) const =0
build a tracking rechit from an existing rechit
virtual std::unique_ptr< TrajectoryFitter > clone() const =0
Global3DPoint GlobalPoint
PropagationDirection propagationDirection() const
std::vector< ConstRecHitPointer > ConstRecHitContainer
static int position[264][3]
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
void push(const TrajectoryMeasurement &tm)
const GeomDet * idToDet(DetId) const override
ParameterSet const & parameterSet(Provenance const &provenance, ProcessHistory const &history)
const SurfaceType & surface() const
GeometricalDirection geometricalDirection() const
const std::string metname