#include <CSCGangedStripTopology.h>
Public Member Functions | |
int | channel (const LocalPoint &lp) const |
int | channel (int strip) const |
CSCStripTopology * | clone () const |
CSCGangedStripTopology (const CSCStripTopology &topology, int numberOfGangedStrips) | |
std::ostream & | put (std::ostream &os) const |
~CSCGangedStripTopology () | |
Private Attributes | |
int | theNumberOfGangedStrips |
A concrete CSCStripTopology in which strips are ganged, as in ME1A chambers.
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().
: CSCStripTopology(topology), theNumberOfGangedStrips(numberOfGangedStrips) {}
CSCGangedStripTopology::~CSCGangedStripTopology | ( | ) | [inline] |
Definition at line 20 of file CSCGangedStripTopology.h.
{}
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 OffsetRadialStripTopology::strip(), and theNumberOfGangedStrips.
{ return (int) (RadialStripTopology::strip(lp)) % theNumberOfGangedStrips + 1; }
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 OffsetRadialStripTopology::strip(), and theNumberOfGangedStrips.
{ while(strip > theNumberOfGangedStrips) strip -= theNumberOfGangedStrips; while(strip <= 0) strip += theNumberOfGangedStrips; return strip; }
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().
{ return new CSCGangedStripTopology(*this); }
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.
{ return os << "CSCGangedStripTopology"; }
int CSCGangedStripTopology::theNumberOfGangedStrips [private] |
Definition at line 58 of file CSCGangedStripTopology.h.
Referenced by channel().