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
GEMCluster Class Reference

#include <GEMCluster.h>

Public Member Functions

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

Private Attributes

int16_t bunchx
 
uint16_t fstrip
 
uint16_t lstrip
 

Detailed Description

Definition at line 4 of file GEMCluster.h.

Constructor & Destructor Documentation

GEMCluster::GEMCluster ( )

Definition at line 7 of file GEMCluster.cc.

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

Definition at line 11 of file GEMCluster.cc.

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

Definition at line 16 of file GEMCluster.cc.

17 {
18 }

Member Function Documentation

int GEMCluster::bx ( ) const

Definition at line 39 of file GEMCluster.cc.

References bunchx.

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

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

Definition at line 33 of file GEMCluster.cc.

References fstrip, and lstrip.

Referenced by GEMRecHitStandardAlgo::compute(), and operator==().

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

Definition at line 21 of file GEMCluster.cc.

References fstrip.

Referenced by GEMRecHitStandardAlgo::compute(), GEMMaskReClusterizer::doAction(), isAdjacent(), merge(), operator<(), and operator==().

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

Definition at line 44 of file GEMCluster.cc.

References bx(), and firstStrip().

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

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

Definition at line 27 of file GEMCluster.cc.

References lstrip.

Referenced by GEMRecHitStandardAlgo::compute(), and GEMMaskReClusterizer::doAction().

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

Definition at line 50 of file GEMCluster.cc.

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

Referenced by GEMClusterizer::doActualAction().

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

Definition at line 58 of file GEMCluster.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: GEMCluster.cc:39
int firstStrip() const
Definition: GEMCluster.cc:21
bool GEMCluster::operator== ( const GEMCluster cl) const

Definition at line 67 of file GEMCluster.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 bx() const
Definition: GEMCluster.cc:39
int firstStrip() const
Definition: GEMCluster.cc:21
int clusterSize() const
Definition: GEMCluster.cc:33

Member Data Documentation

int16_t GEMCluster::bunchx
private

Definition at line 24 of file GEMCluster.h.

Referenced by bx().

uint16_t GEMCluster::fstrip
private

Definition at line 22 of file GEMCluster.h.

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

uint16_t GEMCluster::lstrip
private

Definition at line 23 of file GEMCluster.h.

Referenced by clusterSize(), and lastStrip().