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

Constructor & Destructor Documentation

◆ CTPPSDiamondRecHit() [1/2]

CTPPSDiamondRecHit::CTPPSDiamondRecHit ( )
inline

Definition at line 24 of file CTPPSDiamondRecHit.h.

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

33  tot_(tot),
35  tsIndex_(ootIdx),
36  hptdcErr_(hptdcErr),
37  mh_(mh) {}
38 
39  static constexpr int TIMESLICE_WITHOUT_LEADING = -10;
40 
41  inline void setToT(float tot) { tot_ = tot; }
42  inline float toT() const { return tot_; }

Member Function Documentation

◆ hptdcErrorFlags()

HPTDCErrorFlags CTPPSDiamondRecHit::hptdcErrorFlags ( ) const
inline

Definition at line 59 of file CTPPSDiamondRecHit.h.

◆ multipleHits()

bool CTPPSDiamondRecHit::multipleHits ( ) const
inline

Definition at line 56 of file CTPPSDiamondRecHit.h.

56 :

◆ ootIndex()

int CTPPSDiamondRecHit::ootIndex ( ) const
inline

Definition at line 53 of file CTPPSDiamondRecHit.h.

53 { hptdcErr_ = err; }

References runTheMatrix::err, and hptdcErr_.

◆ setHPTDCErrorFlags()

void CTPPSDiamondRecHit::setHPTDCErrorFlags ( const HPTDCErrorFlags err)
inline

Definition at line 58 of file CTPPSDiamondRecHit.h.

◆ setMultipleHits()

void CTPPSDiamondRecHit::setMultipleHits ( bool  mh)
inline

Definition at line 55 of file CTPPSDiamondRecHit.h.

56 :

◆ setOOTIndex()

void CTPPSDiamondRecHit::setOOTIndex ( int  i)
inline

Definition at line 52 of file CTPPSDiamondRecHit.h.

53 { hptdcErr_ = err; }

◆ setToT()

void CTPPSDiamondRecHit::setToT ( float  tot)
inline

Definition at line 46 of file CTPPSDiamondRecHit.h.

47 { tsIndex_ = i; }

◆ setTPrecision()

void CTPPSDiamondRecHit::setTPrecision ( float  tPrecision)
inline

Definition at line 49 of file CTPPSDiamondRecHit.h.

50 { mh_ = mh; }

◆ toT()

float CTPPSDiamondRecHit::toT ( ) const
inline

Definition at line 47 of file CTPPSDiamondRecHit.h.

47 { tsIndex_ = i; }

References mps_fire::i, and tsIndex_.

◆ tPrecision()

float CTPPSDiamondRecHit::tPrecision ( ) const
inline

Definition at line 50 of file CTPPSDiamondRecHit.h.

50 { mh_ = mh; }

References mh_.

Member Data Documentation

◆ hptdcErr_

HPTDCErrorFlags CTPPSDiamondRecHit::hptdcErr_
private

List of error flags encountered by the HPTDC.

Definition at line 69 of file CTPPSDiamondRecHit.h.

Referenced by ootIndex().

◆ mh_

bool CTPPSDiamondRecHit::mh_
private

Multiple hits detected.

Definition at line 71 of file CTPPSDiamondRecHit.h.

Referenced by tPrecision().

◆ TIMESLICE_WITHOUT_LEADING

constexpr int CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING = -10
staticconstexpr

◆ tot_

float CTPPSDiamondRecHit::tot_
private

Time over threshold.

Definition at line 63 of file CTPPSDiamondRecHit.h.

◆ tPrecision_

float CTPPSDiamondRecHit::tPrecision_
private

Expected timing precision.

Definition at line 65 of file CTPPSDiamondRecHit.h.

◆ tsIndex_

int CTPPSDiamondRecHit::tsIndex_
private

Time slice index.

Definition at line 67 of file CTPPSDiamondRecHit.h.

Referenced by toT().

CTPPSDiamondRecHit::mh_
bool mh_
Multiple hits detected.
Definition: CTPPSDiamondRecHit.h:71
CTPPSTimingRecHit::CTPPSTimingRecHit
CTPPSTimingRecHit()
Definition: CTPPSTimingRecHit.h:21
mps_fire.i
i
Definition: mps_fire.py:355
CTPPSTimingRecHit::z
float z() const
Definition: CTPPSTimingRecHit.h:32
CTPPSTimingRecHit::zWidth
float zWidth() const
Definition: CTPPSTimingRecHit.h:41
CTPPSDiamondRecHit::tsIndex_
int tsIndex_
Time slice index.
Definition: CTPPSDiamondRecHit.h:67
CTPPSDiamondRecHit::tot_
float tot_
Time over threshold.
Definition: CTPPSDiamondRecHit.h:63
CTPPSDiamondRecHit::tPrecision
float tPrecision() const
Definition: CTPPSDiamondRecHit.h:50
CTPPSTimingRecHit::yWidth
float yWidth() const
Definition: CTPPSTimingRecHit.h:38
OrderedSet.t
t
Definition: OrderedSet.py:90
CTPPSTimingRecHit::xWidth
float xWidth() const
Definition: CTPPSTimingRecHit.h:35
CTPPSDiamondRecHit::setToT
void setToT(float tot)
Definition: CTPPSDiamondRecHit.h:46
CTPPSTimingRecHit::x
float x() const
Definition: CTPPSTimingRecHit.h:26
CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING
static constexpr int TIMESLICE_WITHOUT_LEADING
Definition: CTPPSDiamondRecHit.h:44
runTheMatrix.err
err
Definition: runTheMatrix.py:288
CTPPSDiamondRecHit::hptdcErr_
HPTDCErrorFlags hptdcErr_
List of error flags encountered by the HPTDC.
Definition: CTPPSDiamondRecHit.h:69
CTPPSDiamondRecHit::toT
float toT() const
Definition: CTPPSDiamondRecHit.h:47
CTPPSTimingRecHit::y
float y() const
Definition: CTPPSTimingRecHit.h:29
CTPPSDiamondRecHit::tPrecision_
float tPrecision_
Expected timing precision.
Definition: CTPPSDiamondRecHit.h:65