CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
RPCCluster Class Reference

#include <RPCCluster.h>

Public Member Functions

int bx () const
 
int clusterSize () const
 
int firstStrip () const
 
bool isAdjacent (const RPCCluster &cl) const
 
int lastStrip () const
 
void merge (const RPCCluster &cl)
 
bool operator< (const RPCCluster &cl) const
 
bool operator== (const RPCCluster &cl) const
 
 RPCCluster ()
 
 RPCCluster (int fs, int ls, int bx)
 
 ~RPCCluster ()
 

Private Attributes

int16_t bunchx
 
uint16_t fstrip
 
uint16_t lstrip
 

Detailed Description

Definition at line 4 of file RPCCluster.h.

Constructor & Destructor Documentation

RPCCluster::RPCCluster ( )

Definition at line 7 of file RPCCluster.cc.

7  : fstrip(0), lstrip(0), bunchx(0)
8 {
9 }
int16_t bunchx
Definition: RPCCluster.h:24
uint16_t lstrip
Definition: RPCCluster.h:23
uint16_t fstrip
Definition: RPCCluster.h:22
RPCCluster::RPCCluster ( int  fs,
int  ls,
int  bx 
)

Definition at line 11 of file RPCCluster.cc.

11  :
12  fstrip(fs), lstrip(ls), bunchx(bx)
13 {
14 }
int16_t bunchx
Definition: RPCCluster.h:24
def ls
Definition: eostools.py:346
uint16_t lstrip
Definition: RPCCluster.h:23
int bx() const
Definition: RPCCluster.cc:39
uint16_t fstrip
Definition: RPCCluster.h:22
RPCCluster::~RPCCluster ( )

Definition at line 16 of file RPCCluster.cc.

17 {
18 }

Member Function Documentation

int RPCCluster::bx ( ) const

Definition at line 39 of file RPCCluster.cc.

References bunchx.

Referenced by RPCMaskReClusterizer::doAction(), isAdjacent(), operator<(), and operator==().

40 {
41  return bunchx;
42 }
int16_t bunchx
Definition: RPCCluster.h:24
int RPCCluster::clusterSize ( ) const

Definition at line 33 of file RPCCluster.cc.

References fstrip, and lstrip.

Referenced by operator==().

34 {
35  return -(fstrip-lstrip)+1;
36 }
uint16_t lstrip
Definition: RPCCluster.h:23
uint16_t fstrip
Definition: RPCCluster.h:22
int RPCCluster::firstStrip ( ) const

Definition at line 21 of file RPCCluster.cc.

References fstrip.

Referenced by RPCRecHitStandardAlgo::compute(), RPCMaskReClusterizer::doAction(), isAdjacent(), merge(), operator<(), and operator==().

22 {
23  return fstrip;
24 }
uint16_t fstrip
Definition: RPCCluster.h:22
bool RPCCluster::isAdjacent ( const RPCCluster cl) const

Definition at line 44 of file RPCCluster.cc.

References bx(), and firstStrip().

Referenced by RPCClusterizer::doActualAction(), and merge().

44  {
45 
46  return ((cl.firstStrip() == this->firstStrip()-1) &&
47  (cl.bx() == this->bx()));
48 }
int bx() const
Definition: RPCCluster.cc:39
int firstStrip() const
Definition: RPCCluster.cc:21
int RPCCluster::lastStrip ( ) const

Definition at line 27 of file RPCCluster.cc.

References lstrip.

Referenced by RPCRecHitStandardAlgo::compute(), and RPCMaskReClusterizer::doAction().

28 {
29  return lstrip;
30 }
uint16_t lstrip
Definition: RPCCluster.h:23
void RPCCluster::merge ( const RPCCluster cl)

Definition at line 50 of file RPCCluster.cc.

References firstStrip(), fstrip, and isAdjacent().

Referenced by RPCClusterizer::doActualAction().

50  {
51 
52  if(this->isAdjacent(cl))
53  {
54  fstrip = cl.firstStrip();
55  }
56 }
uint16_t fstrip
Definition: RPCCluster.h:22
int firstStrip() const
Definition: RPCCluster.cc:21
bool isAdjacent(const RPCCluster &cl) const
Definition: RPCCluster.cc:44
bool RPCCluster::operator< ( const RPCCluster cl) const

Definition at line 58 of file RPCCluster.cc.

References bx(), and firstStrip().

58  {
59 
60 if(cl.bx() == this->bx())
61  return cl.firstStrip()<this->firstStrip();
62 else
63  return cl.bx()<this->bx();
64 }
int bx() const
Definition: RPCCluster.cc:39
int firstStrip() const
Definition: RPCCluster.cc:21
bool RPCCluster::operator== ( const RPCCluster cl) const

Definition at line 67 of file RPCCluster.cc.

References bx(), clusterSize(), and firstStrip().

67  {
68  return ( (this->clusterSize() == cl.clusterSize()) &&
69  (this->bx() == cl.bx()) &&
70  (this->firstStrip() == cl.firstStrip()) );
71 }
int clusterSize() const
Definition: RPCCluster.cc:33
int bx() const
Definition: RPCCluster.cc:39
int firstStrip() const
Definition: RPCCluster.cc:21

Member Data Documentation

int16_t RPCCluster::bunchx
private

Definition at line 24 of file RPCCluster.h.

Referenced by bx().

uint16_t RPCCluster::fstrip
private

Definition at line 22 of file RPCCluster.h.

Referenced by clusterSize(), firstStrip(), and merge().

uint16_t RPCCluster::lstrip
private

Definition at line 23 of file RPCCluster.h.

Referenced by clusterSize(), and lastStrip().