CMS 3D CMS Logo

CSCUngangedWireGrouping Class Reference

A concrete CSCWireGrouping in which wires are not ganged. More...

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

Inheritance diagram for CSCUngangedWireGrouping:

CSCWireGrouping

List of all members.

Public Member Functions

CSCWireGroupingclone () const
 Clone to handle correct copy of component objects referenced by base class pointer.
 CSCUngangedWireGrouping (int nwires)
float middleWireOfGroup (int wireGroup) const
 Middle of wire-group.
int numberOfWireGroups () const
 How many wire groups.
int numberOfWires () const
 Total number of (virtual) wires.
int numberOfWiresPerGroup (int wireGroup) const
 How many wires in a wiregroup.
int wireGroup (int wire) const
 Wire group containing a given wire.
virtual ~CSCUngangedWireGrouping ()

Private Attributes

int theNumberOfWires


Detailed Description

A concrete CSCWireGrouping in which wires are not ganged.

Author:
Tim Cox

Definition at line 13 of file CSCUngangedWireGrouping.h.


Constructor & Destructor Documentation

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

Definition at line 15 of file CSCUngangedWireGrouping.h.

00015 {}

CSCUngangedWireGrouping::CSCUngangedWireGrouping ( int  nwires  )  [inline, explicit]

Definition at line 16 of file CSCUngangedWireGrouping.h.

Referenced by clone().

00016                                                  : 
00017       theNumberOfWires( nwires ) {}


Member Function Documentation

CSCWireGrouping* CSCUngangedWireGrouping::clone ( void   )  const [inline, virtual]

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

Implements CSCWireGrouping.

Definition at line 60 of file CSCUngangedWireGrouping.h.

References CSCUngangedWireGrouping().

00060                                  {
00061     return new CSCUngangedWireGrouping(*this);
00062   }

float CSCUngangedWireGrouping::middleWireOfGroup ( int  wireGroup  )  const [inline, virtual]

Middle of wire-group.

This is the central wire no. for a group with an odd no. of wires. This is a pseudo-wire no. for a group with an even no. of wires. Accordingly, it is non-integer. Unganged, wire group is wire is middle!

Implements CSCWireGrouping.

Definition at line 53 of file CSCUngangedWireGrouping.h.

00053                                                  {
00054     return static_cast<float>( wireGroup ); }

int CSCUngangedWireGrouping::numberOfWireGroups (  )  const [inline, virtual]

How many wire groups.

Unganged so groups = wires.

Implements CSCWireGrouping.

Definition at line 31 of file CSCUngangedWireGrouping.h.

References numberOfWires().

00031                                  {
00032     return numberOfWires(); }

int CSCUngangedWireGrouping::numberOfWires (  )  const [inline, virtual]

Total number of (virtual) wires.

Some wires may not be implemented in the hardware. This is the number which would fill the region covered by wires, assuming the constant wire spacing.

Implements CSCWireGrouping.

Definition at line 25 of file CSCUngangedWireGrouping.h.

References theNumberOfWires.

Referenced by numberOfWireGroups().

00025                             {
00026     return theNumberOfWires; }

int CSCUngangedWireGrouping::numberOfWiresPerGroup ( int  wireGroup  )  const [inline, virtual]

How many wires in a wiregroup.

Unganged so 1 wire/group.

Implements CSCWireGrouping.

Definition at line 37 of file CSCUngangedWireGrouping.h.

00037                                                    {
00038     return 1; }

int CSCUngangedWireGrouping::wireGroup ( int  wire  )  const [inline, virtual]

Wire group containing a given wire.

Unganged means wire group is wire.

Implements CSCWireGrouping.

Definition at line 43 of file CSCUngangedWireGrouping.h.

00043                                 {
00044     return wire; }


Member Data Documentation

int CSCUngangedWireGrouping::theNumberOfWires [private]

Definition at line 65 of file CSCUngangedWireGrouping.h.

Referenced by numberOfWires().


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