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>

Inheritance diagram for CTPPSDiamondRecHit:
CTPPSTimingRecHit

Public Member Functions

 CTPPSDiamondRecHit ()
 
 CTPPSDiamondRecHit (float x, float xWidth, float y, float yWidth, float z, float zWidth, float t, float tot, float tPrecision, int ootIdx, const HPTDCErrorFlags &hptdcErr, const bool mh)
 
HPTDCErrorFlags getHPTDCErrorFlags () const
 
bool getMultipleHits () const
 
int getOOTIndex () const
 
float getToT () const
 
float getTPrecision () const
 
void setHPTDCErrorFlags (const HPTDCErrorFlags &err)
 
void setMultipleHits (bool mh)
 
void setOOTIndex (int i)
 
void setToT (float tot)
 
void setTPrecision (float tPrecision)
 
- Public Member Functions inherited from CTPPSTimingRecHit
 CTPPSTimingRecHit ()
 
 CTPPSTimingRecHit (float x, float xWidth, float y, float yWidth, float z, float zWidth, float t)
 
float getT () const
 
float getX () const
 
float getXWidth () const
 
float getY () const
 
float getYWidth () const
 
float getZ () const
 
float getZWidth () const
 
void setT (float t)
 
void setX (float x)
 
void setXWidth (float xWidth)
 
void setY (float y)
 
void setYWidth (float yWidth)
 
void setZ (float z)
 
void setZWidth (float zWidth)
 

Static Public Attributes

static constexpr int TIMESLICE_WITHOUT_LEADING = -10
 

Private Attributes

HPTDCErrorFlags hptdcErr_
 List of error flags encountered by the HPTDC. More...
 
bool mh_
 Multiple hits detected. More...
 
float tot_
 Time over threshold. More...
 
float tPrecision_
 Expected timing precision. More...
 
int tsIndex_
 Time slice index. More...
 

Additional Inherited Members

- Protected Attributes inherited from CTPPSTimingRecHit
float t_
 
float x_
 
float xWidth_
 
float y_
 
float yWidth_
 
float z_
 
float zWidth_
 

Detailed Description

Reconstructed hit in diamond detectors.

Definition at line 17 of file CTPPSDiamondRecHit.h.

Constructor & Destructor Documentation

CTPPSDiamondRecHit::CTPPSDiamondRecHit ( )
inline

Definition at line 20 of file CTPPSDiamondRecHit.h.

20  :
22  tot_( 0 ), tPrecision_( 0 ), tsIndex_( 0 ), hptdcErr_( 0 ), mh_( false ) {}
float tot_
Time over threshold.
float tPrecision_
Expected timing precision.
bool mh_
Multiple hits detected.
HPTDCErrorFlags hptdcErr_
List of error flags encountered by the HPTDC.
int tsIndex_
Time slice index.
CTPPSDiamondRecHit::CTPPSDiamondRecHit ( float  x,
float  xWidth,
float  y,
float  yWidth,
float  z,
float  zWidth,
float  t,
float  tot,
float  tPrecision,
int  ootIdx,
const HPTDCErrorFlags hptdcErr,
const bool  mh 
)
inline

Definition at line 23 of file CTPPSDiamondRecHit.h.

25  :
26  CTPPSTimingRecHit( x, xWidth, y, yWidth, z, zWidth, t ),
27  tot_( tot ), tPrecision_( tPrecision ), tsIndex_( ootIdx ),
28  hptdcErr_( hptdcErr ), mh_( mh ) {}
float tot_
Time over threshold.
float tPrecision_
Expected timing precision.
bool mh_
Multiple hits detected.
HPTDCErrorFlags hptdcErr_
List of error flags encountered by the HPTDC.
int tsIndex_
Time slice index.

Member Function Documentation

HPTDCErrorFlags CTPPSDiamondRecHit::getHPTDCErrorFlags ( ) const
inline

Definition at line 45 of file CTPPSDiamondRecHit.h.

References hptdcErr_.

45 { return hptdcErr_; }
HPTDCErrorFlags hptdcErr_
List of error flags encountered by the HPTDC.
bool CTPPSDiamondRecHit::getMultipleHits ( ) const
inline

Definition at line 42 of file CTPPSDiamondRecHit.h.

References mh_.

42 { return mh_; }
bool mh_
Multiple hits detected.
int CTPPSDiamondRecHit::getOOTIndex ( ) const
inline

Definition at line 39 of file CTPPSDiamondRecHit.h.

References tsIndex_.

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

39 { return tsIndex_; }
int tsIndex_
Time slice index.
float CTPPSDiamondRecHit::getToT ( ) const
inline

Definition at line 33 of file CTPPSDiamondRecHit.h.

References tot_.

33 { return tot_; }
float tot_
Time over threshold.
float CTPPSDiamondRecHit::getTPrecision ( ) const
inline

Definition at line 36 of file CTPPSDiamondRecHit.h.

References tPrecision_.

36 { return tPrecision_; }
float tPrecision_
Expected timing precision.
void CTPPSDiamondRecHit::setHPTDCErrorFlags ( const HPTDCErrorFlags err)
inline

Definition at line 44 of file CTPPSDiamondRecHit.h.

References hptdcErr_.

44 { hptdcErr_ = err; }
HPTDCErrorFlags hptdcErr_
List of error flags encountered by the HPTDC.
void CTPPSDiamondRecHit::setMultipleHits ( bool  mh)
inline

Definition at line 41 of file CTPPSDiamondRecHit.h.

References mh_.

41 { mh_ = mh; }
bool mh_
Multiple hits detected.
void CTPPSDiamondRecHit::setOOTIndex ( int  i)
inline

Definition at line 38 of file CTPPSDiamondRecHit.h.

References mps_fire::i, and tsIndex_.

38 { tsIndex_ = i; }
int tsIndex_
Time slice index.
void CTPPSDiamondRecHit::setToT ( float  tot)
inline

Definition at line 32 of file CTPPSDiamondRecHit.h.

References tot_.

32 { tot_ = tot; }
float tot_
Time over threshold.
void CTPPSDiamondRecHit::setTPrecision ( float  tPrecision)
inline

Definition at line 35 of file CTPPSDiamondRecHit.h.

References tPrecision_.

35 { tPrecision_ = tPrecision; }
float tPrecision_
Expected timing precision.

Member Data Documentation

HPTDCErrorFlags CTPPSDiamondRecHit::hptdcErr_
private

List of error flags encountered by the HPTDC.

Definition at line 55 of file CTPPSDiamondRecHit.h.

Referenced by getHPTDCErrorFlags(), and setHPTDCErrorFlags().

bool CTPPSDiamondRecHit::mh_
private

Multiple hits detected.

Definition at line 57 of file CTPPSDiamondRecHit.h.

Referenced by getMultipleHits(), and setMultipleHits().

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

Time over threshold.

Definition at line 49 of file CTPPSDiamondRecHit.h.

Referenced by getToT(), and setToT().

float CTPPSDiamondRecHit::tPrecision_
private

Expected timing precision.

Definition at line 51 of file CTPPSDiamondRecHit.h.

Referenced by getTPrecision(), and setTPrecision().

int CTPPSDiamondRecHit::tsIndex_
private

Time slice index.

Definition at line 53 of file CTPPSDiamondRecHit.h.

Referenced by getOOTIndex(), and setOOTIndex().