CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 { return 0.; }
31 
36  int nearestWire(const LocalPoint& lp) const {
37  return 1 + nint( (lp.y()-yOfFirstWire())/wireSpacing() ) ;
38  }
39 
44  float yOfWire(float wire, float x=0.) const {
45  return yOfFirstWire() + (wire-1.)*wireSpacing();
46  }
47 
53  return new CSCNonslantedWireGeometry(*this);
54  }
55 
56 };
57 
58 #endif
T y() const
Definition: PV3DBase.h:62
int nearestWire(const LocalPoint &lp) const
CSCWireGeometry * clone() const
CSCNonslantedWireGeometry(double wireSpacing, double yOfFirstWire, double narrow, double wide, double length)
double wireSpacing() const
int nint(float a)
Return the nearest integer - analogous to the FORTRAN intrinsic NINT.
Definition: nint.h:8
double yOfFirstWire() const
Definition: DDAxes.h:10
float yOfWire(float wire, float x=0.) const