test
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
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 16 of file TotemRPCluster.h.

Constructor & Destructor Documentation

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

Definition at line 19 of file TotemRPCluster.h.

19  : str_beg_(str_beg), str_end_(str_end)
20  {
21  }
uint16_t str_end_
uint16_t str_beg_

Member Function Documentation

double TotemRPCluster::getCenterStripPosition ( ) const
inline

Definition at line 31 of file TotemRPCluster.h.

References str_beg_, and str_end_.

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

Definition at line 29 of file TotemRPCluster.h.

References str_beg_, and str_end_.

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

Definition at line 23 of file TotemRPCluster.h.

References str_beg_.

Referenced by operator<().

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

Definition at line 26 of file TotemRPCluster.h.

References str_end_.

Referenced by operator<().

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

Definition at line 24 of file TotemRPCluster.h.

References str_beg_.

24 { 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