CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 centerStripPosition () const
 
int numberOfStrips () const
 
void setStripBegin (unsigned short str_beg)
 
void setStripEnd (unsigned short str_end)
 
uint16_t stripBegin () const
 
uint16_t stripEnd () const
 
 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 20 of file TotemRPCluster.h.

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

Member Function Documentation

double TotemRPCluster::centerStripPosition ( ) const
inline

Definition at line 30 of file TotemRPCluster.h.

References str_beg_, and str_end_.

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

Definition at line 28 of file TotemRPCluster.h.

References str_beg_, and str_end_.

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

Definition at line 23 of file TotemRPCluster.h.

References str_beg_.

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

Definition at line 26 of file TotemRPCluster.h.

References str_end_.

26 { str_end_ = str_end; }
uint16_t str_end_
uint16_t TotemRPCluster::stripBegin ( ) const
inline

Definition at line 22 of file TotemRPCluster.h.

References str_beg_.

Referenced by operator<().

22 { return str_beg_; }
uint16_t str_beg_
uint16_t TotemRPCluster::stripEnd ( ) const
inline

Definition at line 25 of file TotemRPCluster.h.

References str_end_.

Referenced by operator<().

25 { return str_end_; }
uint16_t str_end_

Member Data Documentation

uint16_t TotemRPCluster::str_beg_
private

Definition at line 33 of file TotemRPCluster.h.

Referenced by centerStripPosition(), numberOfStrips(), setStripBegin(), and stripBegin().

uint16_t TotemRPCluster::str_end_
private

Definition at line 34 of file TotemRPCluster.h.

Referenced by centerStripPosition(), numberOfStrips(), setStripEnd(), and stripEnd().