CMS 3D CMS Logo

FallbackLinearizationPointFinder.cc
Go to the documentation of this file.
5 
7 
9  const std::vector<FreeTrajectoryState>& tracks) const {
10  return GlobalPoint(0., 0., 0.);
11 }
12 
14  const std::vector<reco::TransientTrack>& tracks) const {
15  switch (tracks.size()) {
16  case 0:
17  return GlobalPoint(0., 0., 0.);
18  case 1:
19  return tracks.begin()->impactPointState().globalPosition();
20  default: {
21  std::vector<std::pair<GlobalPoint, float> > wtracks;
22  wtracks.reserve(tracks.size() - 1);
23  for (std::vector<reco::TransientTrack>::const_iterator i = tracks.begin(); i != tracks.end(); ++i) {
24  std::pair<GlobalPoint, float> tmp(i->impactPointState().globalPosition(), 1.);
25  wtracks.push_back(tmp);
26  }
27  return (*theModeFinder)(wtracks);
28  }
29  }
30  return GlobalPoint(0., 0., 0.);
31 }
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
mps_fire.i
i
Definition: mps_fire.py:355
ModeFinder3d
Definition: ModeFinder3d.h:14
FsmwModeFinder3d.h
TransientTrack.h
FallbackLinearizationPointFinder::FallbackLinearizationPointFinder
FallbackLinearizationPointFinder(const ModeFinder3d &m=HsmModeFinder3d())
Definition: FallbackLinearizationPointFinder.cc:6
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
clone
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
Point3DBase< float, GlobalTag >
FallbackLinearizationPointFinder::theModeFinder
ModeFinder3d * theModeFinder
Definition: FallbackLinearizationPointFinder.h:19
FallbackLinearizationPointFinder::getLinearizationPoint
GlobalPoint getLinearizationPoint(const std::vector< reco::TransientTrack > &) const override
Definition: FallbackLinearizationPointFinder.cc:13
FallbackLinearizationPointFinder.h
GlobalPoint.h