#include <Geometry/CSCGeometry/src/CSCGangedStripTopology.h>
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. | |
CSCStripTopology * | clone () 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 |
Definition at line 13 of file CSCGangedStripTopology.h.
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] |
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.