CMS 3D CMS Logo

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
CSCSlantedWireGeometry::clone
CSCWireGeometry * clone() const override
Definition: CSCSlantedWireGeometry.h:45
CSCSlantedWireGeometry::theWireOffset
float theWireOffset
Definition: CSCSlantedWireGeometry.h:51
CSCWireGeometry::wireSpacing
double wireSpacing() const
Definition: CSCWireGeometry.h:35
DDAxes::x
CSCSlantedWireGeometry::~CSCSlantedWireGeometry
~CSCSlantedWireGeometry() override
Definition: CSCSlantedWireGeometry.h:17
CSCSlantedWireGeometry::yOfWire
float yOfWire(float wire, float x=0.) const override
Definition: CSCSlantedWireGeometry.cc:32
CSCSlantedWireGeometry::CSCSlantedWireGeometry
CSCSlantedWireGeometry(double wireSpacing, double yOfFirstWire, double narrow, double wide, double length, float wireAngle)
Definition: CSCSlantedWireGeometry.cc:8
CSCWireGeometry.h
Point3DBase< float, LocalTag >
CSCSlantedWireGeometry
Definition: CSCSlantedWireGeometry.h:15
CSCSlantedWireGeometry::theWireAngle
float theWireAngle
Definition: CSCSlantedWireGeometry.h:48
CSCWireGeometry
Definition: CSCWireGeometry.h:17
CSCSlantedWireGeometry::nearestWire
int nearestWire(const LocalPoint &lp) const override
Definition: CSCSlantedWireGeometry.cc:21
CSCSlantedWireGeometry::wireAngle
float wireAngle() const override
Definition: CSCSlantedWireGeometry.h:28
LocalPoint.h
CSCSlantedWireGeometry::cosWireAngle
float cosWireAngle
Definition: CSCSlantedWireGeometry.h:49
CSCWireGeometry::yOfFirstWire
double yOfFirstWire() const
Definition: CSCWireGeometry.h:40
CSCSlantedWireGeometry::sinWireAngle
float sinWireAngle
Definition: CSCSlantedWireGeometry.h:50