CMS 3D CMS Logo

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

Reconstructed hit in diamond detectors. More...

#include <CTPPSDiamondRecHit.h>

Public Member Functions

 CTPPSDiamondRecHit ()
 
 CTPPSDiamondRecHit (float x, float x_width, float y, float y_width, float z, float z_width, float t, float tot, float t_precision, int oot_idx, const HPTDCErrorFlags &hptdc_err, const bool mh)
 
HPTDCErrorFlags getHPTDCErrorFlags () const
 
bool getMultipleHits () const
 
int getOOTIndex () const
 
float getT () const
 
float getToT () const
 
float getTPrecision () const
 
float getX () const
 
float getXWidth () const
 
float getY () const
 
float getYWidth () const
 
float getZ () const
 
float getZWidth () const
 
void setHPTDCErrorFlags (const HPTDCErrorFlags &err)
 
void setMultipleHits (const bool mh)
 
void setOOTIndex (const int &i)
 
void setT (const float &t)
 
void setToT (const float &tot)
 
void setTPrecision (const float &t_precision)
 
void setX (const float &x)
 
void setXWidth (const float &xwidth)
 
void setY (const float &y)
 
void setYWidth (const float &ywidth)
 
void setZ (const float &z)
 
void setZWidth (const float &zwidth)
 

Static Public Attributes

static constexpr int TIMESLICE_WITHOUT_LEADING = -10
 

Private Attributes

HPTDCErrorFlags hptdc_err_
 
bool mh_
 
float t_
 
float t_precision_
 
float tot_
 
int ts_index_
 Time slice index. More...
 
float x_
 
float x_width_
 
float y_
 
float y_width_
 
float z_
 
float z_width_
 

Detailed Description

Reconstructed hit in diamond detectors.

Definition at line 16 of file CTPPSDiamondRecHit.h.

Constructor & Destructor Documentation

CTPPSDiamondRecHit::CTPPSDiamondRecHit ( )
inline

Definition at line 19 of file CTPPSDiamondRecHit.h.

19  :
20  x_( 0. ), x_width_( 0. ), y_( 0. ), y_width_( 0. ), z_( 0. ), z_width_( 0. ),
21  t_( 0. ), tot_( 0. ), t_precision_( 0. ),
22  ts_index_( 0 ), hptdc_err_( 0 ), mh_( false )
23  {}
HPTDCErrorFlags hptdc_err_
int ts_index_
Time slice index.
CTPPSDiamondRecHit::CTPPSDiamondRecHit ( float  x,
float  x_width,
float  y,
float  y_width,
float  z,
float  z_width,
float  t,
float  tot,
float  t_precision,
int  oot_idx,
const HPTDCErrorFlags hptdc_err,
const bool  mh 
)
inline

Definition at line 24 of file CTPPSDiamondRecHit.h.

24  :
25  x_( x ), x_width_( x_width ), y_( y ), y_width_( y_width ), z_( z ), z_width_( z_width ),
26  t_( t ), tot_( tot ), t_precision_( t_precision ),
27  ts_index_( oot_idx ), hptdc_err_( hptdc_err ), mh_( mh )
28  {}
HPTDCErrorFlags hptdc_err_
int ts_index_
Time slice index.

Member Function Documentation

HPTDCErrorFlags CTPPSDiamondRecHit::getHPTDCErrorFlags ( ) const
inline

Definition at line 66 of file CTPPSDiamondRecHit.h.

References hptdc_err_.

66 { return hptdc_err_; }
HPTDCErrorFlags hptdc_err_
bool CTPPSDiamondRecHit::getMultipleHits ( ) const
inline

Definition at line 63 of file CTPPSDiamondRecHit.h.

References mh_.

63 { return mh_; }
int CTPPSDiamondRecHit::getOOTIndex ( ) const
inline

Definition at line 60 of file CTPPSDiamondRecHit.h.

References ts_index_.

Referenced by CTPPSDiamondTrackRecognition::addHit(), and CTPPSDiamondLocalTrack::containsHit().

60 { return ts_index_; }
int ts_index_
Time slice index.
float CTPPSDiamondRecHit::getT ( ) const
inline

Definition at line 51 of file CTPPSDiamondRecHit.h.

References t_.

Referenced by operator<().

51 { return t_; }
float CTPPSDiamondRecHit::getToT ( ) const
inline

Definition at line 54 of file CTPPSDiamondRecHit.h.

References tot_.

54 { return tot_; }
float CTPPSDiamondRecHit::getTPrecision ( ) const
inline

Definition at line 57 of file CTPPSDiamondRecHit.h.

References t_precision_.

57 { return t_precision_; }
float CTPPSDiamondRecHit::getX ( ) const
inline

Definition at line 33 of file CTPPSDiamondRecHit.h.

References x_.

Referenced by CTPPSDiamondTrackRecognition::addHit(), and CTPPSDiamondLocalTrack::containsHit().

33 { return x_; }
float CTPPSDiamondRecHit::getXWidth ( ) const
inline
float CTPPSDiamondRecHit::getY ( ) const
inline

Definition at line 36 of file CTPPSDiamondRecHit.h.

References y_.

Referenced by CTPPSDiamondTrackRecognition::addHit().

36 { return y_; }
float CTPPSDiamondRecHit::getYWidth ( ) const
inline

Definition at line 45 of file CTPPSDiamondRecHit.h.

References y_width_.

Referenced by CTPPSDiamondTrackRecognition::addHit().

45 { return y_width_; }
float CTPPSDiamondRecHit::getZ ( ) const
inline

Definition at line 39 of file CTPPSDiamondRecHit.h.

References z_.

Referenced by CTPPSDiamondTrackRecognition::addHit(), and CTPPSDiamondLocalTrack::containsHit().

39 { return z_; }
float CTPPSDiamondRecHit::getZWidth ( ) const
inline

Definition at line 48 of file CTPPSDiamondRecHit.h.

References z_width_.

Referenced by CTPPSDiamondTrackRecognition::addHit().

48 { return z_width_; }
void CTPPSDiamondRecHit::setHPTDCErrorFlags ( const HPTDCErrorFlags err)
inline

Definition at line 65 of file CTPPSDiamondRecHit.h.

References hptdc_err_.

65 { hptdc_err_ = err; }
HPTDCErrorFlags hptdc_err_
void CTPPSDiamondRecHit::setMultipleHits ( const bool  mh)
inline

Definition at line 62 of file CTPPSDiamondRecHit.h.

References mh_.

62 { mh_ = mh; }
void CTPPSDiamondRecHit::setOOTIndex ( const int &  i)
inline

Definition at line 59 of file CTPPSDiamondRecHit.h.

References mps_fire::i, and ts_index_.

59 { ts_index_ = i; }
int ts_index_
Time slice index.
void CTPPSDiamondRecHit::setT ( const float &  t)
inline

Definition at line 50 of file CTPPSDiamondRecHit.h.

References lumiQTWidget::t, and t_.

void CTPPSDiamondRecHit::setToT ( const float &  tot)
inline

Definition at line 53 of file CTPPSDiamondRecHit.h.

References tot_.

53 { tot_ = tot; }
void CTPPSDiamondRecHit::setTPrecision ( const float &  t_precision)
inline

Definition at line 56 of file CTPPSDiamondRecHit.h.

References t_precision_.

56 { t_precision_ = t_precision; }
void CTPPSDiamondRecHit::setX ( const float &  x)
inline

Definition at line 32 of file CTPPSDiamondRecHit.h.

References x, and x_.

void CTPPSDiamondRecHit::setXWidth ( const float &  xwidth)
inline

Definition at line 41 of file CTPPSDiamondRecHit.h.

References x_width_.

41 { x_width_ = xwidth; }
void CTPPSDiamondRecHit::setY ( const float &  y)
inline

Definition at line 35 of file CTPPSDiamondRecHit.h.

References y, and y_.

void CTPPSDiamondRecHit::setYWidth ( const float &  ywidth)
inline

Definition at line 44 of file CTPPSDiamondRecHit.h.

References y_width_.

44 { y_width_ = ywidth; }
void CTPPSDiamondRecHit::setZ ( const float &  z)
inline

Definition at line 38 of file CTPPSDiamondRecHit.h.

References z, and z_.

void CTPPSDiamondRecHit::setZWidth ( const float &  zwidth)
inline

Definition at line 47 of file CTPPSDiamondRecHit.h.

References z_width_.

47 { z_width_ = zwidth; }

Member Data Documentation

HPTDCErrorFlags CTPPSDiamondRecHit::hptdc_err_
private

Definition at line 75 of file CTPPSDiamondRecHit.h.

Referenced by getHPTDCErrorFlags(), and setHPTDCErrorFlags().

bool CTPPSDiamondRecHit::mh_
private

Definition at line 76 of file CTPPSDiamondRecHit.h.

Referenced by getMultipleHits(), and setMultipleHits().

float CTPPSDiamondRecHit::t_
private

Definition at line 72 of file CTPPSDiamondRecHit.h.

Referenced by getT(), and setT().

float CTPPSDiamondRecHit::t_precision_
private

Definition at line 72 of file CTPPSDiamondRecHit.h.

Referenced by getTPrecision(), and setTPrecision().

constexpr int CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING = -10
static
float CTPPSDiamondRecHit::tot_
private

Definition at line 72 of file CTPPSDiamondRecHit.h.

Referenced by getToT(), and setToT().

int CTPPSDiamondRecHit::ts_index_
private

Time slice index.

Definition at line 74 of file CTPPSDiamondRecHit.h.

Referenced by getOOTIndex(), and setOOTIndex().

float CTPPSDiamondRecHit::x_
private

Definition at line 69 of file CTPPSDiamondRecHit.h.

Referenced by getX(), and setX().

float CTPPSDiamondRecHit::x_width_
private

Definition at line 69 of file CTPPSDiamondRecHit.h.

Referenced by getXWidth(), and setXWidth().

float CTPPSDiamondRecHit::y_
private

Definition at line 70 of file CTPPSDiamondRecHit.h.

Referenced by getY(), and setY().

float CTPPSDiamondRecHit::y_width_
private

Definition at line 70 of file CTPPSDiamondRecHit.h.

Referenced by getYWidth(), and setYWidth().

float CTPPSDiamondRecHit::z_
private

Definition at line 71 of file CTPPSDiamondRecHit.h.

Referenced by getZ(), and setZ().

float CTPPSDiamondRecHit::z_width_
private

Definition at line 71 of file CTPPSDiamondRecHit.h.

Referenced by getZWidth(), and setZWidth().