#include <Geometry/CSCGeometry/src/CSCUngangedWireGrouping.h>
Public Member Functions | |
CSCWireGrouping * | clone () 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 |
Definition at line 13 of file CSCUngangedWireGrouping.h.
virtual CSCUngangedWireGrouping::~CSCUngangedWireGrouping | ( | ) | [inline, virtual] |
CSCUngangedWireGrouping::CSCUngangedWireGrouping | ( | int | nwires | ) | [inline, explicit] |
Definition at line 16 of file CSCUngangedWireGrouping.h.
Referenced by clone().
00016 : 00017 theNumberOfWires( nwires ) {}
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; }
How many wires in a wiregroup.
Unganged so 1 wire/group.
Implements CSCWireGrouping.
Definition at line 37 of file CSCUngangedWireGrouping.h.
Wire group containing a given wire.
Unganged means wire group is wire.
Implements CSCWireGrouping.
Definition at line 43 of file CSCUngangedWireGrouping.h.
int CSCUngangedWireGrouping::theNumberOfWires [private] |