CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TSiStripRecHit2DLocalPos.cc
Go to the documentation of this file.
6 
7 
10 {
11  if (theCPE != 0) {
12 
14 
15  if(!specificHit()->cluster().isNull()){
16  const SiStripCluster& clust = *specificHit()->cluster();
18  theCPE->localParameters( clust, *detUnit(), ts);
19  return TSiStripRecHit2DLocalPos::build( lv.first, lv.second, det(),
20  specificHit()->cluster(), theCPE, weight(), getAnnealingFactor());
21  }else{
22  const SiStripCluster& clust = *specificHit()->cluster_regional();
24  theCPE->localParameters( clust, *detUnit(), ts);
25  return TSiStripRecHit2DLocalPos::build( lv.first, lv.second, det(),
26  specificHit()->cluster_regional(), theCPE, weight(), getAnnealingFactor());
27  }
28 
29  }
31  else return clone();
32 }
33 
35 {
36  return static_cast<const GeomDetUnit*>(det());
37 }
38 
43  result.push_back(TSiStripRecHit1D::build( det(),&hit1d,
44  cpe()));
45 
46  return result;
47 }
const SiStripRecHit2D * specificHit() const
const StripClusterParameterEstimator * theCPE
virtual const GeomDetUnit * detUnit() const
virtual ConstRecHitContainer transientHits() const
Composite interface: returns the component hits, if any.
virtual TSiStripRecHit2DLocalPos * clone() const
ClusterRegionalRef const & cluster_regional() const
static RecHitPointer build(const GeomDet *geom, const SiStripRecHit2D *rh, const StripClusterParameterEstimator *cpe, float weight=1., float annealing=1., bool computeCoarseLocalPosition=false)
std::pair< LocalPoint, LocalError > LocalValues
static RecHitPointer build(const GeomDet *geom, const SiStripRecHit1D *rh, const StripClusterParameterEstimator *cpe, float weight=1., float annealing=1., bool computeCoarseLocalPosition=false)
virtual LocalValues localParameters(const T &, const GeomDetUnit &) const =0
const StripClusterParameterEstimator * cpe() const
tuple result
Definition: query.py:137
std::vector< ConstRecHitPointer > ConstRecHitContainer
ClusterRef const & cluster() const
const GeomDet * det() const
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.