CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TotemRPCluster Class Reference

Cluster of TOTEM RP strip hits. More...

#include <TotemRPCluster.h>

Public Member Functions

double getCenterStripPosition () const
 
int getNumberOfStrips () const
 
uint16_t getStripBegin () const
 
uint16_t getStripEnd () const
 
void setStripBegin (unsigned short str_beg)
 
void setStripEnd (unsigned short str_end)
 
 TotemRPCluster (unsigned short str_beg=0, unsigned short str_end=0)
 

Private Attributes

uint16_t str_beg_
 
uint16_t str_end_
 

Detailed Description

Cluster of TOTEM RP strip hits.

Definition at line 18 of file TotemRPCluster.h.

Constructor & Destructor Documentation

TotemRPCluster::TotemRPCluster ( unsigned short  str_beg = 0,
unsigned short  str_end = 0 
)
inline

Definition at line 21 of file TotemRPCluster.h.

Member Function Documentation

double TotemRPCluster::getCenterStripPosition ( ) const
inline

Definition at line 33 of file TotemRPCluster.h.

References str_beg_, and str_end_.

33 { return (str_beg_ + str_end_)/2.; }
uint16_t str_end_
uint16_t str_beg_
int TotemRPCluster::getNumberOfStrips ( ) const
inline

Definition at line 31 of file TotemRPCluster.h.

References str_beg_, and str_end_.

31 { return str_end_ - str_beg_ + 1; }
uint16_t str_end_
uint16_t str_beg_
uint16_t TotemRPCluster::getStripBegin ( ) const
inline

Definition at line 25 of file TotemRPCluster.h.

References str_beg_.

Referenced by operator<().

25 { return str_beg_; }
uint16_t str_beg_
uint16_t TotemRPCluster::getStripEnd ( ) const
inline

Definition at line 28 of file TotemRPCluster.h.

References str_end_.

Referenced by operator<().

28 { return str_end_; }
uint16_t str_end_
void TotemRPCluster::setStripBegin ( unsigned short  str_beg)
inline

Definition at line 26 of file TotemRPCluster.h.

References str_beg_.

26 { str_beg_ = str_beg; }
uint16_t str_beg_
void TotemRPCluster::setStripEnd ( unsigned short  str_end)
inline

Member Data Documentation

uint16_t TotemRPCluster::str_beg_
private
uint16_t TotemRPCluster::str_end_
private