9 TSiStripRecHit1D::TSiStripRecHit1D (
const GeomDet *
geom,
const SiStripRecHit1D* rh,
11 bool computeCoarseLocalPosition) :
14 if (rh->hasPositionAndError() || !computeCoarseLocalPosition)
15 theHitData = SiStripRecHit1D(*rh);
18 LogDebug(
"TSiStripRecHit2DLocalPos")<<
"calculating coarse position/error.";
20 if (rh->cluster().isNonnull()){
23 theHitData = SiStripRecHit1D(lval.first,
le, geom->
geographicalId(),rh->cluster());
27 theHitData = SiStripRecHit1D(lval.first,
le, geom->
geographicalId(),rh->cluster_regional());
30 edm::LogError(
"TSiStripRecHit2DLocalPos")<<
" geomdet does not cast into geomdet unit. cannot create strip local parameters.";
31 theHitData = SiStripRecHit1D(*rh);
43 theCPE->localParameters( clust, *detUnit(), ts);
53 const GeomDetUnit* TSiStripRecHit1D::detUnit()
const
std::pair< LocalPoint, LocalError > LocalValues
const T & max(const T &a, const T &b)
DetId geographicalId() const
The label of this GeomDet.
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)