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 hptdcErrorFlags () const
 
bool multipleHits () const
 
int ootIndex () const
 
void setHPTDCErrorFlags (const HPTDCErrorFlags &err)
 
void setMultipleHits (bool mh)
 
void setOOTIndex (int i)
 
void setToT (float tot)
 
void setTPrecision (float tPrecision)
 
float toT () const
 
float tPrecision () const
 
- Public Member Functions inherited from CTPPSTimingRecHit
 CTPPSTimingRecHit ()
 
 CTPPSTimingRecHit (float x, float xWidth, float y, float yWidth, float z, float zWidth, float t)
 
void setTime (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)
 
float time () const
 
float x () const
 
float xWidth () const
 
float y () const
 
float yWidth () const
 
float z () const
 
float zWidth () const
 

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() [1/2]

CTPPSDiamondRecHit::CTPPSDiamondRecHit ( )
inline

Definition at line 19 of file CTPPSDiamondRecHit.h.

19 : CTPPSTimingRecHit(), 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() [2/2]

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 20 of file CTPPSDiamondRecHit.h.

33  tot_(tot),
35  tsIndex_(ootIdx),
36  hptdcErr_(hptdcErr),
37  mh_(mh) {}
float tot_
Time over threshold.
float tPrecision_
Expected timing precision.
bool mh_
Multiple hits detected.
float tPrecision() const
float xWidth() const
float yWidth() const
HPTDCErrorFlags hptdcErr_
List of error flags encountered by the HPTDC.
int tsIndex_
Time slice index.
float zWidth() const

Member Function Documentation

◆ hptdcErrorFlags()

HPTDCErrorFlags CTPPSDiamondRecHit::hptdcErrorFlags ( ) const
inline

Definition at line 54 of file CTPPSDiamondRecHit.h.

References hptdcErr_.

54 { return hptdcErr_; }
HPTDCErrorFlags hptdcErr_
List of error flags encountered by the HPTDC.

◆ multipleHits()

bool CTPPSDiamondRecHit::multipleHits ( ) const
inline

Definition at line 51 of file CTPPSDiamondRecHit.h.

References mh_.

51 { return mh_; }
bool mh_
Multiple hits detected.

◆ ootIndex()

int CTPPSDiamondRecHit::ootIndex ( ) const
inline

Definition at line 48 of file CTPPSDiamondRecHit.h.

References tsIndex_.

48 { return tsIndex_; }
int tsIndex_
Time slice index.

◆ setHPTDCErrorFlags()

void CTPPSDiamondRecHit::setHPTDCErrorFlags ( const HPTDCErrorFlags err)
inline

Definition at line 53 of file CTPPSDiamondRecHit.h.

References submitPVResolutionJobs::err, and hptdcErr_.

53 { hptdcErr_ = err; }
HPTDCErrorFlags hptdcErr_
List of error flags encountered by the HPTDC.

◆ setMultipleHits()

void CTPPSDiamondRecHit::setMultipleHits ( bool  mh)
inline

Definition at line 50 of file CTPPSDiamondRecHit.h.

References mh_.

50 { mh_ = mh; }
bool mh_
Multiple hits detected.

◆ setOOTIndex()

void CTPPSDiamondRecHit::setOOTIndex ( int  i)
inline

Definition at line 47 of file CTPPSDiamondRecHit.h.

References mps_fire::i, and tsIndex_.

47 { tsIndex_ = i; }
int tsIndex_
Time slice index.

◆ setToT()

void CTPPSDiamondRecHit::setToT ( float  tot)
inline

Definition at line 41 of file CTPPSDiamondRecHit.h.

References compareTotals::tot, and tot_.

41 { tot_ = tot; }
float tot_
Time over threshold.

◆ setTPrecision()

void CTPPSDiamondRecHit::setTPrecision ( float  tPrecision)
inline

Definition at line 44 of file CTPPSDiamondRecHit.h.

References tPrecision(), and tPrecision_.

float tPrecision_
Expected timing precision.
float tPrecision() const

◆ toT()

float CTPPSDiamondRecHit::toT ( ) const
inline

Definition at line 42 of file CTPPSDiamondRecHit.h.

References tot_.

42 { return tot_; }
float tot_
Time over threshold.

◆ tPrecision()

float CTPPSDiamondRecHit::tPrecision ( ) const
inline

Definition at line 45 of file CTPPSDiamondRecHit.h.

References tPrecision_.

Referenced by setTPrecision().

45 { return tPrecision_; }
float tPrecision_
Expected timing precision.

Member Data Documentation

◆ hptdcErr_

HPTDCErrorFlags CTPPSDiamondRecHit::hptdcErr_
private

List of error flags encountered by the HPTDC.

Definition at line 64 of file CTPPSDiamondRecHit.h.

Referenced by hptdcErrorFlags(), and setHPTDCErrorFlags().

◆ mh_

bool CTPPSDiamondRecHit::mh_
private

Multiple hits detected.

Definition at line 66 of file CTPPSDiamondRecHit.h.

Referenced by multipleHits(), and setMultipleHits().

◆ TIMESLICE_WITHOUT_LEADING

constexpr int CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING = -10
static

◆ tot_

float CTPPSDiamondRecHit::tot_
private

Time over threshold.

Definition at line 58 of file CTPPSDiamondRecHit.h.

Referenced by setToT(), and toT().

◆ tPrecision_

float CTPPSDiamondRecHit::tPrecision_
private

Expected timing precision.

Definition at line 60 of file CTPPSDiamondRecHit.h.

Referenced by setTPrecision(), and tPrecision().

◆ tsIndex_

int CTPPSDiamondRecHit::tsIndex_
private

Time slice index.

Definition at line 62 of file CTPPSDiamondRecHit.h.

Referenced by ootIndex(), and setOOTIndex().