CMS 3D CMS Logo

CSCNonslantedWireGeometry Class Reference

A concrete CSCWireGeometry in which the wires are not slanted, i.e. More...

#include <Geometry/CSCGeometry/src/CSCNonslantedWireGeometry.h>

Inheritance diagram for CSCNonslantedWireGeometry:

CSCWireGeometry

List of all members.

Public Member Functions

CSCWireGeometryclone () const
 Clone to handle correct copy of component objects referenced by base class pointer.
 CSCNonslantedWireGeometry (double wireSpacing, double yOfFirstWire, double narrow, double wide, double length)
 Constructor from wire spacing.
int nearestWire (const LocalPoint &lp) const
 The nearest (virtual) wire to a given LocalPoint.
float wireAngle () const
 The angle of the wires w.r.t local x axis (in radians).
float yOfWire (float wire, float x=0.) const
 Local y of a given wire 'number' (float) at given x For nonslanted wires this y is independent of x.
virtual ~CSCNonslantedWireGeometry ()


Detailed Description

A concrete CSCWireGeometry in which the wires are not slanted, i.e.

they are all parallel to the local x axis.

Author:
Tim Cox

Definition at line 16 of file CSCNonslantedWireGeometry.h.


Constructor & Destructor Documentation

virtual CSCNonslantedWireGeometry::~CSCNonslantedWireGeometry (  )  [inline, virtual]

Definition at line 18 of file CSCNonslantedWireGeometry.h.

00018 {}

CSCNonslantedWireGeometry::CSCNonslantedWireGeometry ( double  wireSpacing,
double  yOfFirstWire,
double  narrow,
double  wide,
double  length 
) [inline]

Constructor from wire spacing.

Definition at line 23 of file CSCNonslantedWireGeometry.h.

Referenced by clone().

00024                                                           :
00025        CSCWireGeometry( wireSpacing, yOfFirstWire, narrow, wide, length ) {}


Member Function Documentation

CSCWireGeometry* CSCNonslantedWireGeometry::clone ( void   )  const [inline, virtual]

Clone to handle correct copy of component objects referenced by base class pointer.

Implements CSCWireGeometry.

Definition at line 52 of file CSCNonslantedWireGeometry.h.

References CSCNonslantedWireGeometry().

00052                                  {
00053     return new CSCNonslantedWireGeometry(*this);
00054   }

int CSCNonslantedWireGeometry::nearestWire ( const LocalPoint lp  )  const [inline, virtual]

The nearest (virtual) wire to a given LocalPoint.

Beware that this wire might not exist or be read out!

Implements CSCWireGeometry.

Definition at line 36 of file CSCNonslantedWireGeometry.h.

References nint(), CSCWireGeometry::wireSpacing(), PV3DBase< T, PVType, FrameType >::y(), and CSCWireGeometry::yOfFirstWire().

00036                                               {
00037     return 1 + nint( (lp.y()-yOfFirstWire())/wireSpacing() ) ;
00038   }

float CSCNonslantedWireGeometry::wireAngle (  )  const [inline, virtual]

The angle of the wires w.r.t local x axis (in radians).

Implements CSCWireGeometry.

Definition at line 30 of file CSCNonslantedWireGeometry.h.

00030 { return 0.; }

float CSCNonslantedWireGeometry::yOfWire ( float  wire,
float  x = 0. 
) const [inline, virtual]

Local y of a given wire 'number' (float) at given x For nonslanted wires this y is independent of x.

Implements CSCWireGeometry.

Definition at line 44 of file CSCNonslantedWireGeometry.h.

References CSCWireGeometry::wireSpacing(), and CSCWireGeometry::yOfFirstWire().

00044                                               {
00045     return yOfFirstWire() + (wire-1.)*wireSpacing();
00046   }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:17:23 2009 for CMSSW by  doxygen 1.5.4