File indexing completed on 2024-04-06 12:14:22
0001 #ifndef Geometry_CommonTopologies_StripTopology_H
0002 #define Geometry_CommonTopologies_StripTopology_H
0003
0004 #include "Geometry/CommonTopologies/interface/Topology.h"
0005
0006
0007
0008
0009
0010
0011 class StripTopology : public Topology {
0012 public:
0013 ~StripTopology() override {}
0014
0015
0016
0017 using Topology::localPosition;
0018 virtual LocalPoint localPosition(float strip) const = 0;
0019
0020 virtual LocalPoint localPosition(float strip, const Topology::LocalTrackPred& ) const {
0021 return localPosition(strip);
0022 }
0023 virtual LocalError localError(float strip, float stripErr2) const = 0;
0024
0025
0026 virtual LocalError localError(float strip, float stripErr2, const Topology::LocalTrackPred& ) const {
0027 return localError(strip, stripErr2);
0028 }
0029 using Topology::localError;
0030 virtual float strip(const LocalPoint&) const = 0;
0031
0032
0033 virtual float strip(const LocalPoint& lp, const Topology::LocalTrackAngles& ) const { return strip(lp); }
0034
0035
0036 virtual float coveredStrips(const LocalPoint& lp1, const LocalPoint& lp2) const {
0037 return (measurementPosition(lp1) - measurementPosition(lp2)).x();
0038 }
0039
0040 virtual float pitch() const = 0;
0041 virtual float localPitch(const LocalPoint&) const = 0;
0042
0043
0044 virtual float localPitch(const LocalPoint& lp, const Topology::LocalTrackAngles& ) const {
0045 return localPitch(lp);
0046 }
0047 virtual float stripAngle(float strip) const = 0;
0048
0049 virtual int nstrips() const = 0;
0050
0051 virtual float stripLength() const = 0;
0052 virtual float localStripLength(const LocalPoint& aLP) const = 0;
0053
0054
0055 virtual float localStripLength(const LocalPoint& lp, const Topology::LocalTrackAngles& ) const {
0056 return localStripLength(lp);
0057 }
0058 };
0059
0060 #endif