CMS 3D CMS Logo

ClusterParameterEstimator.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_Cluster_Parameter_Estimator_H
2 #define RecoLocalTracker_Cluster_Parameter_Estimator_H
3 
6 
10 
11 template <class T>
13 public:
14  typedef std::pair<LocalPoint, LocalError> LocalValues;
15  typedef std::vector<LocalValues> VLocalValues;
16  virtual LocalValues localParameters(const T&, const GeomDetUnit&) const = 0;
17  virtual LocalValues localParameters(const T& cluster, const GeomDetUnit& gd, const LocalTrajectoryParameters&) const {
18  return localParameters(cluster, gd);
19  }
20  virtual LocalValues localParameters(const T& cluster,
21  const GeomDetUnit& gd,
22  const TrajectoryStateOnSurface& tsos) const {
23  return localParameters(cluster, gd, tsos.localParameters());
24  }
25  virtual VLocalValues localParametersV(const T& cluster, const GeomDetUnit& gd) const {
26  VLocalValues vlp;
27  vlp.push_back(localParameters(cluster, gd));
28  return vlp;
29  }
30  virtual VLocalValues localParametersV(const T& cluster,
31  const GeomDetUnit& gd,
32  const TrajectoryStateOnSurface& tsos) const {
33  VLocalValues vlp;
34  vlp.push_back(localParameters(cluster, gd, tsos.localParameters()));
35  return vlp;
36  }
37 
39 
40  //methods needed by FastSim
41  virtual void enterLocalParameters(unsigned int id, std::pair<int, int>& row_col, LocalValues pos_err_info) const {}
42  virtual void enterLocalParameters(uint32_t id, uint16_t firstStrip, LocalValues pos_err_info) const {}
43  virtual void clearParameters() const {}
44 };
45 
46 #endif
TrajectoryStateOnSurface.h
ClusterParameterEstimator::localParameters
virtual LocalValues localParameters(const T &cluster, const GeomDetUnit &gd, const LocalTrajectoryParameters &) const
Definition: ClusterParameterEstimator.h:17
GeomDet
Definition: GeomDet.h:27
ClusterParameterEstimator::localParametersV
virtual VLocalValues localParametersV(const T &cluster, const GeomDetUnit &gd, const TrajectoryStateOnSurface &tsos) const
Definition: ClusterParameterEstimator.h:30
ClusterParameterEstimator::LocalValues
std::pair< LocalPoint, LocalError > LocalValues
Definition: ClusterParameterEstimator.h:14
ClusterParameterEstimator::enterLocalParameters
virtual void enterLocalParameters(uint32_t id, uint16_t firstStrip, LocalValues pos_err_info) const
Definition: ClusterParameterEstimator.h:42
LocalTrajectoryParameters
Definition: LocalTrajectoryParameters.h:25
LocalTrajectoryParameters.h
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
ClusterParameterEstimator::enterLocalParameters
virtual void enterLocalParameters(unsigned int id, std::pair< int, int > &row_col, LocalValues pos_err_info) const
Definition: ClusterParameterEstimator.h:41
LocalError.h
ClusterParameterEstimator::localParameters
virtual LocalValues localParameters(const T &cluster, const GeomDetUnit &gd, const TrajectoryStateOnSurface &tsos) const
Definition: ClusterParameterEstimator.h:20
ClusterParameterEstimator
Definition: ClusterParameterEstimator.h:12
TrajectoryStateOnSurface::localParameters
const LocalTrajectoryParameters & localParameters() const
Definition: TrajectoryStateOnSurface.h:73
ClusterParameterEstimator::localParameters
virtual LocalValues localParameters(const T &, const GeomDetUnit &) const =0
GeomDet.h
T
long double T
Definition: Basic3DVectorLD.h:48
LocalPoint.h
ClusterParameterEstimator::~ClusterParameterEstimator
virtual ~ClusterParameterEstimator()
Definition: ClusterParameterEstimator.h:38
ClusterParameterEstimator::VLocalValues
std::vector< LocalValues > VLocalValues
Definition: ClusterParameterEstimator.h:15
ClusterParameterEstimator::clearParameters
virtual void clearParameters() const
Definition: ClusterParameterEstimator.h:43
ClusterParameterEstimator::localParametersV
virtual VLocalValues localParametersV(const T &cluster, const GeomDetUnit &gd) const
Definition: ClusterParameterEstimator.h:25