CMS 3D CMS Logo

CSCNonslantedWireGeometry.h
Go to the documentation of this file.
1 #ifndef CSC_NONSLANTED_WIRE_GEOMETRY_H
2 #define CSC_NONSLANTED_WIRE_GEOMETRY_H
3 
15 
17  public:
19 
24  double narrow, double wide, double length ) :
25  CSCWireGeometry( wireSpacing, yOfFirstWire, narrow, wide, length ) {}
26 
30  float wireAngle() const override { return 0.; }
31 
36  int nearestWire(const LocalPoint& lp) const override {
37  return 1 + nint( (lp.y()-yOfFirstWire())/wireSpacing() ) ;
38  }
39 
44  float yOfWire(float wire, float x=0.) const override {
45  return yOfFirstWire() + (wire-1.)*wireSpacing();
46  }
47 
52  CSCWireGeometry* clone() const override {
53  return new CSCNonslantedWireGeometry(*this);
54  }
55 
56 };
57 
58 #endif
T y() const
Definition: PV3DBase.h:63
float yOfWire(float wire, float x=0.) const override
CSCNonslantedWireGeometry(double wireSpacing, double yOfFirstWire, double narrow, double wide, double length)
double wireSpacing() const
int nearestWire(const LocalPoint &lp) const override
float wireAngle() const override
int nint(float a)
Return the nearest integer - analogous to the FORTRAN intrinsic NINT.
Definition: nint.h:8
double yOfFirstWire() const
CSCWireGeometry * clone() const override