CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCUngangedWireGrouping Class Reference

#include <CSCUngangedWireGrouping.h>

Inheritance diagram for CSCUngangedWireGrouping:
CSCWireGrouping

Public Member Functions

CSCWireGroupingclone () const
 
 CSCUngangedWireGrouping (int nwires)
 
float middleWireOfGroup (int wireGroup) const
 
int numberOfWireGroups () const
 
int numberOfWires () const
 
int numberOfWiresPerGroup (int wireGroup) const
 
int wireGroup (int wire) const
 
virtual ~CSCUngangedWireGrouping ()
 
- Public Member Functions inherited from CSCWireGrouping
virtual ~CSCWireGrouping ()
 

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

◆ ~CSCUngangedWireGrouping()

virtual CSCUngangedWireGrouping::~CSCUngangedWireGrouping ( )
inlinevirtual

Definition at line 15 of file CSCUngangedWireGrouping.h.

15 {}

◆ CSCUngangedWireGrouping()

CSCUngangedWireGrouping::CSCUngangedWireGrouping ( int  nwires)
inlineexplicit

Definition at line 16 of file CSCUngangedWireGrouping.h.

16  :
17  theNumberOfWires( nwires ) {}

Referenced by clone().

Member Function Documentation

◆ clone()

CSCWireGrouping* CSCUngangedWireGrouping::clone ( void  ) const
inlinevirtual

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

Implements CSCWireGrouping.

Definition at line 60 of file CSCUngangedWireGrouping.h.

60  {
61  return new CSCUngangedWireGrouping(*this);
62  }

References CSCUngangedWireGrouping().

◆ middleWireOfGroup()

float CSCUngangedWireGrouping::middleWireOfGroup ( int  wireGroup) const
inlinevirtual

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.

53  {
54  return static_cast<float>( wireGroup ); }

References wireGroup().

◆ numberOfWireGroups()

int CSCUngangedWireGrouping::numberOfWireGroups ( ) const
inlinevirtual

How many wire groups. Unganged so #groups = #wires.

Implements CSCWireGrouping.

Definition at line 31 of file CSCUngangedWireGrouping.h.

31  {
32  return numberOfWires(); }

References numberOfWires().

◆ numberOfWires()

int CSCUngangedWireGrouping::numberOfWires ( ) const
inlinevirtual

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.

25  {
26  return theNumberOfWires; }

References theNumberOfWires.

Referenced by numberOfWireGroups().

◆ numberOfWiresPerGroup()

int CSCUngangedWireGrouping::numberOfWiresPerGroup ( int  wireGroup) const
inlinevirtual

How many wires in a wiregroup. Unganged so 1 wire/group.

Implements CSCWireGrouping.

Definition at line 37 of file CSCUngangedWireGrouping.h.

37  {
38  return 1; }

◆ wireGroup()

int CSCUngangedWireGrouping::wireGroup ( int  wire) const
inlinevirtual

Wire group containing a given wire. Unganged means wire group is wire.

Implements CSCWireGrouping.

Definition at line 43 of file CSCUngangedWireGrouping.h.

43  {
44  return wire; }

Referenced by middleWireOfGroup().

Member Data Documentation

◆ theNumberOfWires

int CSCUngangedWireGrouping::theNumberOfWires
private

Definition at line 65 of file CSCUngangedWireGrouping.h.

Referenced by numberOfWires().

CSCUngangedWireGrouping::theNumberOfWires
int theNumberOfWires
Definition: CSCUngangedWireGrouping.h:65
CSCUngangedWireGrouping::numberOfWires
int numberOfWires() const
Definition: CSCUngangedWireGrouping.h:25
CSCUngangedWireGrouping::CSCUngangedWireGrouping
CSCUngangedWireGrouping(int nwires)
Definition: CSCUngangedWireGrouping.h:16
CSCUngangedWireGrouping::wireGroup
int wireGroup(int wire) const
Definition: CSCUngangedWireGrouping.h:43