CMS 3D CMS Logo

KFSplittingFitter.cc
Go to the documentation of this file.
5 
7  result.reserve(hits.size());
8  for (RecHitContainer::const_iterator ihit = hits.begin(); ihit != hits.end(); ihit++) {
9  if (!(**ihit).isValid())
10  result.push_back(*ihit);
11  else if ((**ihit).transientHits().size() == 1)
12  result.push_back(*ihit);
13  else {
14  RecHitContainer splitted = RecHitSplitter().split((**ihit).transientHits());
15  RecHitContainer sorted = RecHitSorter().sortHits(splitted, dir);
16  for (RecHitContainer::iterator srt = sorted.begin(); srt != sorted.end(); srt++) {
17  result.push_back(*srt);
18  // result.insert(result.end(), sorted.begin(), sorted.end());
19  }
20  }
21  }
22 }
23 
25  if (aTraj.empty())
26  return Trajectory();
27 
28  const TM& firstTM = aTraj.firstMeasurement();
29  TSOS firstTsos = TrajectoryStateWithArbitraryError()(firstTM.predictedState());
30 
31  RecHitContainer const& hits = aTraj.recHits();
33  sorter(hits, aTraj.direction(), result);
34 
35  return fitter.fitOne(aTraj.seed(), result, firstTsos, type);
36 }
37 
40  sorter(hits, aSeed.direction(), result);
41 
42  return fitter.fitOne(aSeed, result, type);
43 }
44 
46  const RecHitContainer& hits,
47  const TSOS& firstPredTsos,
48  fitType type) const {
50  sorter(hits, aSeed.direction(), result);
51 
52  return fitter.fitOne(aSeed, result, firstPredTsos, type);
53 }
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
Trajectory::direction
PropagationDirection const & direction() const
Definition: Trajectory.cc:133
RecHitSplitter
Definition: RecHitSplitter.h:13
TransientTrackingRecHit.h
TrajectoryStateWithArbitraryError
Definition: TrajectoryStateWithArbitraryError.h:15
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
TrajectoryMeasurement::predictedState
TrajectoryStateOnSurface const & predictedState() const
Definition: TrajectoryMeasurement.h:174
KFSplittingFitter::RecHitContainer
RecHitSplitter::RecHitContainer RecHitContainer
Definition: KFSplittingFitter.h:16
KFSplittingFitter::sorter
void sorter(const RecHitContainer &hits, PropagationDirection dir, RecHitContainer &result) const
Definition: KFSplittingFitter.cc:6
RecHitSplitter::split
RecHitContainer split(const RecHitContainer &hits) const
Definition: RecHitSplitter.cc:3
TrajectoryStateWithArbitraryError.h
KFSplittingFitter::fitter
KFTrajectoryFitter fitter
Definition: KFSplittingFitter.h:50
KFTrajectoryFitter::fitOne
Trajectory fitOne(const Trajectory &aTraj, fitType) const override
Definition: KFTrajectoryFitter.cc:14
TrajectorySeed::direction
PropagationDirection direction() const
Definition: TrajectorySeed.h:54
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
RecHitSorter
Definition: RecHitSorter.h:13
Trajectory::recHits
ConstRecHitContainer recHits() const
Definition: Trajectory.h:186
KFSplittingFitter.h
Trajectory::firstMeasurement
TrajectoryMeasurement const & firstMeasurement() const
Definition: Trajectory.h:166
Trajectory
Definition: Trajectory.h:38
PropagationDirection
PropagationDirection
Definition: PropagationDirection.h:4
Trajectory::seed
TrajectorySeed const & seed() const
Access to the seed used to reconstruct the Trajectory.
Definition: Trajectory.h:263
TrajectorySeed
Definition: TrajectorySeed.h:18
KFSplittingFitter::fitOne
Trajectory fitOne(const Trajectory &aTraj, fitType type) const override
Definition: KFSplittingFitter.cc:24
mps_fire.result
result
Definition: mps_fire.py:311
TrajectoryMeasurement
Definition: TrajectoryMeasurement.h:25
RecHitSorter.h
RecHitSorter::sortHits
RecHitContainer sortHits(const RecHitContainer &hits, const PropagationDirection &dir) const
Definition: RecHitSorter.cc:6
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23
Trajectory::empty
bool empty() const
True if trajectory has no measurements.
Definition: Trajectory.h:233
TrajectoryFitter::fitType
fitType
Definition: TrajectoryFitter.h:21