File indexing completed on 2024-04-06 12:14:24
0001 #ifndef CSC_SLANTED_WIRE_GEOMETRY_H
0002 #define CSC_SLANTED_WIRE_GEOMETRY_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include "Geometry/CSCGeometry/interface/CSCWireGeometry.h"
0013 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
0014
0015 class CSCSlantedWireGeometry : public CSCWireGeometry {
0016 public:
0017 ~CSCSlantedWireGeometry() override {}
0018
0019
0020
0021
0022 CSCSlantedWireGeometry(
0023 double wireSpacing, double yOfFirstWire, double narrow, double wide, double length, float wireAngle);
0024
0025
0026
0027
0028 float wireAngle() const override { return theWireAngle; }
0029
0030
0031
0032
0033
0034 int nearestWire(const LocalPoint& lp) const override;
0035
0036
0037
0038
0039 float yOfWire(float wire, float x = 0.) const override;
0040
0041
0042
0043
0044
0045 CSCWireGeometry* clone() const override { return new CSCSlantedWireGeometry(*this); }
0046
0047 private:
0048 float theWireAngle;
0049 float cosWireAngle;
0050 float sinWireAngle;
0051 float theWireOffset;
0052 };
0053
0054 #endif