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

Constructor & Destructor Documentation

◆ TotemRPCluster()

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

Definition at line 25 of file TotemRPCluster.h.

25 { return str_end_; }

References str_end_.

Member Function Documentation

◆ centerStripPosition()

double TotemRPCluster::centerStripPosition ( ) const
inline

Definition at line 35 of file TotemRPCluster.h.

39 {

◆ numberOfStrips()

int TotemRPCluster::numberOfStrips ( ) const
inline

Definition at line 33 of file TotemRPCluster.h.

39 {

◆ setStripBegin()

void TotemRPCluster::setStripBegin ( unsigned short  str_beg)
inline

Definition at line 28 of file TotemRPCluster.h.

28 { return str_end_ - str_beg_ + 1; }

References str_beg_, and str_end_.

◆ setStripEnd()

void TotemRPCluster::setStripEnd ( unsigned short  str_end)
inline

Definition at line 31 of file TotemRPCluster.h.

32 :
33  uint16_t str_beg_;

◆ stripBegin()

uint16_t TotemRPCluster::stripBegin ( ) const
inline

Definition at line 27 of file TotemRPCluster.h.

28 { return str_end_ - str_beg_ + 1; }

◆ stripEnd()

uint16_t TotemRPCluster::stripEnd ( ) const
inline

Definition at line 30 of file TotemRPCluster.h.

30 { return (str_beg_ + str_end_) / 2.; }

References str_beg_, and str_end_.

Member Data Documentation

◆ str_beg_

uint16_t TotemRPCluster::str_beg_
private

Definition at line 38 of file TotemRPCluster.h.

Referenced by setStripBegin(), and stripEnd().

◆ str_end_

uint16_t TotemRPCluster::str_end_
private

Definition at line 39 of file TotemRPCluster.h.

Referenced by setStripBegin(), stripEnd(), and TotemRPCluster().

TotemRPCluster::str_beg_
uint16_t str_beg_
Definition: TotemRPCluster.h:38
TotemRPCluster::str_end_
uint16_t str_end_
Definition: TotemRPCluster.h:39