CMS 3D CMS Logo

CSCGangedStripTopology Class Reference

A concrete CSCStripTopology in which strips are ganged, as in ME1A chambers. More...

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

Inheritance diagram for CSCGangedStripTopology:

CSCStripTopology OffsetRadialStripTopology RadialStripTopology StripTopology Topology

List of all members.

Public Member Functions

int channel (int strip) const
 Return channel corresponding to a strip.
int channel (const LocalPoint &lp) const
 Return channel corresponding to a LocalPoint.
CSCStripTopologyclone () const
 Clone to handle correct copy of component objects referenced by base class pointer.
 CSCGangedStripTopology (const CSCStripTopology &topology, int numberOfGangedStrips)
std::ostream & put (std::ostream &os) const
 Implement CSCStripTopology interface for its op<<.
 ~CSCGangedStripTopology ()

Private Attributes

int theNumberOfGangedStrips


Detailed Description

A concrete CSCStripTopology in which strips are ganged, as in ME1A chambers.

Author:
Tim Cox

Definition at line 13 of file CSCGangedStripTopology.h.


Constructor & Destructor Documentation

CSCGangedStripTopology::CSCGangedStripTopology ( const CSCStripTopology topology,
int  numberOfGangedStrips 
) [inline]

Definition at line 17 of file CSCGangedStripTopology.h.

Referenced by clone().

00018     : CSCStripTopology(topology), theNumberOfGangedStrips(numberOfGangedStrips) {}

CSCGangedStripTopology::~CSCGangedStripTopology (  )  [inline]

Definition at line 20 of file CSCGangedStripTopology.h.

00020 {}


Member Function Documentation

int CSCGangedStripTopology::channel ( int  strip  )  const [inline, virtual]

Return channel corresponding to a strip.

(Count from 1).

Implements OffsetRadialStripTopology.

Definition at line 34 of file CSCGangedStripTopology.h.

References theNumberOfGangedStrips.

00034                                {
00035     while(strip > theNumberOfGangedStrips) strip -= theNumberOfGangedStrips;
00036     while(strip <= 0) strip += theNumberOfGangedStrips;
00037     return strip;
00038   }

int CSCGangedStripTopology::channel ( const LocalPoint lp  )  const [inline, virtual]

Return channel corresponding to a LocalPoint.

(Count from 1)

Implements OffsetRadialStripTopology.

Definition at line 26 of file CSCGangedStripTopology.h.

References RadialStripTopology::strip(), and theNumberOfGangedStrips.

00026                                           {
00027     return (int) (RadialStripTopology::strip(lp)) % theNumberOfGangedStrips + 1;
00028   }

CSCStripTopology* CSCGangedStripTopology::clone ( void   )  const [inline, virtual]

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

If gcc could handle it, should be virtual CSCGangedStripTopology* clone() const

Implements CSCStripTopology.

Definition at line 46 of file CSCGangedStripTopology.h.

References CSCGangedStripTopology().

00046                                   {
00047     return new CSCGangedStripTopology(*this);
00048   }

std::ostream& CSCGangedStripTopology::put ( std::ostream &  os  )  const [inline, virtual]

Implement CSCStripTopology interface for its op<<.

Implements CSCStripTopology.

Definition at line 53 of file CSCGangedStripTopology.h.

00053                                            {
00054     return os << "CSCGangedStripTopology";
00055   }


Member Data Documentation

int CSCGangedStripTopology::theNumberOfGangedStrips [private]

Definition at line 58 of file CSCGangedStripTopology.h.

Referenced by channel().


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