CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CSCSlantedWireGeometry.h
Go to the documentation of this file.
1 #ifndef CSC_SLANTED_WIRE_GEOMETRY_H
2 #define CSC_SLANTED_WIRE_GEOMETRY_H
3 
14 
16 public:
18 
23  double wireSpacing, double yOfFirstWire, double narrow, double wide, double length, float wireAngle);
24 
28  float wireAngle() const override { return theWireAngle; }
29 
34  int nearestWire(const LocalPoint& lp) const override;
35 
39  float yOfWire(float wire, float x = 0.) const override;
40 
45  CSCWireGeometry* clone() const override { return new CSCSlantedWireGeometry(*this); }
46 
47 private:
48  float theWireAngle;
49  float cosWireAngle;
50  float sinWireAngle;
51  float theWireOffset; // local y of first wire * cos(wire angle)
52 };
53 
54 #endif
float wireAngle() const override
int nearestWire(const LocalPoint &lp) const override
CSCWireGeometry * clone() const override
double wireSpacing() const
double yOfFirstWire() const
float yOfWire(float wire, float x=0.) const override
CSCSlantedWireGeometry(double wireSpacing, double yOfFirstWire, double narrow, double wide, double length, float wireAngle)