CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CTPPSDiamondDigi Class Reference

#include <CTPPSDiamondDigi.h>

Public Member Functions

 CTPPSDiamondDigi (unsigned int ledgt_, unsigned int tedgt_, unsigned int threvolt, bool mhit_, unsigned short hptdcerror_)
 
 CTPPSDiamondDigi ()
 
HPTDCErrorFlags getHPTDCErrorFlags () const
 
unsigned int getLeadingEdge () const
 Return digi values number. More...
 
bool getMultipleHit () const
 
unsigned int getThresholdVoltage () const
 
unsigned int getTrailingEdge () const
 
bool operator== (const CTPPSDiamondDigi &digi) const
 Digis are equal if they are have same ledt and tedt, threshold voltage, multihit flag, hptdcerror flags. More...
 
void setHPTDCErrorFlags (const HPTDCErrorFlags &hptdcerror_)
 
void setLeadingEdge (unsigned int ledgt_)
 Set digi values. More...
 
void setMultipleHit (bool mhit_)
 
void setThresholdVoltage (unsigned int threvolt_)
 
void setTrailingEdge (unsigned int tedgt_)
 
 ~CTPPSDiamondDigi ()
 

Private Attributes

HPTDCErrorFlags hptdcerror
 
unsigned int ledgt
 
bool mhit
 
unsigned int tedgt
 
unsigned int threvolt
 

Detailed Description

Digi Class for CTPPS Timing Detector

Author
Seyed Mohsen Etesami March 2016

Definition at line 16 of file CTPPSDiamondDigi.h.

Constructor & Destructor Documentation

CTPPSDiamondDigi::CTPPSDiamondDigi ( unsigned int  ledgt_,
unsigned int  tedgt_,
unsigned int  threvolt,
bool  mhit_,
unsigned short  hptdcerror_ 
)

Definition at line 11 of file CTPPSDiamondDigi.cc.

11  :
12  ledgt(ledgt_), tedgt(tedgt_), threvolt(threvolt_), mhit(mhit_), hptdcerror(HPTDCErrorFlags(hptdcerror_))
13 {}
unsigned int ledgt
unsigned int tedgt
unsigned int threvolt
HPTDCErrorFlags hptdcerror
CTPPSDiamondDigi::CTPPSDiamondDigi ( )

Definition at line 15 of file CTPPSDiamondDigi.cc.

15  :
16  ledgt(0), tedgt(0), threvolt(0), mhit(false), hptdcerror(HPTDCErrorFlags(0))
17 {}
unsigned int ledgt
unsigned int tedgt
unsigned int threvolt
HPTDCErrorFlags hptdcerror
CTPPSDiamondDigi::~CTPPSDiamondDigi ( )
inline

Definition at line 22 of file CTPPSDiamondDigi.h.

22 {};

Member Function Documentation

HPTDCErrorFlags CTPPSDiamondDigi::getHPTDCErrorFlags ( ) const
inline

Definition at line 49 of file CTPPSDiamondDigi.h.

References hptdcerror.

Referenced by operator<(), operator<<(), and operator==().

50  {
51  return hptdcerror;
52  }
HPTDCErrorFlags hptdcerror
unsigned int CTPPSDiamondDigi::getLeadingEdge ( ) const
inline

Return digi values number.

Definition at line 29 of file CTPPSDiamondDigi.h.

References ledgt.

Referenced by operator<(), operator<<(), and operator==().

30  {
31  return ledgt;
32  }
unsigned int ledgt
bool CTPPSDiamondDigi::getMultipleHit ( ) const
inline

Definition at line 44 of file CTPPSDiamondDigi.h.

References mhit.

Referenced by operator<(), operator<<(), and operator==().

45  {
46  return mhit;
47  }
unsigned int CTPPSDiamondDigi::getThresholdVoltage ( ) const
inline

Definition at line 39 of file CTPPSDiamondDigi.h.

References threvolt.

Referenced by operator<(), operator<<(), and operator==().

40  {
41  return threvolt;
42  }
unsigned int threvolt
unsigned int CTPPSDiamondDigi::getTrailingEdge ( ) const
inline

Definition at line 34 of file CTPPSDiamondDigi.h.

References tedgt.

Referenced by operator<(), operator<<(), and operator==().

35  {
36  return tedgt;
37  }
unsigned int tedgt
bool CTPPSDiamondDigi::operator== ( const CTPPSDiamondDigi digi) const

Digis are equal if they are have same ledt and tedt, threshold voltage, multihit flag, hptdcerror flags.

Definition at line 21 of file CTPPSDiamondDigi.cc.

References HPTDCErrorFlags::getErrorFlag(), getHPTDCErrorFlags(), getLeadingEdge(), getMultipleHit(), getThresholdVoltage(), getTrailingEdge(), hptdcerror, ledgt, mhit, tedgt, and threvolt.

22 {
23  if ( ledgt != digi.getLeadingEdge()
24  || tedgt != digi.getTrailingEdge()
25  || threvolt != digi.getThresholdVoltage()
26  || mhit != digi.getMultipleHit()
27  || hptdcerror.getErrorFlag() != digi.getHPTDCErrorFlags().getErrorFlag()) return false;
28  else
29  return true;
30 }
unsigned short getErrorFlag() const
unsigned int getThresholdVoltage() const
unsigned int ledgt
HPTDCErrorFlags getHPTDCErrorFlags() const
unsigned int getLeadingEdge() const
Return digi values number.
unsigned int tedgt
unsigned int threvolt
HPTDCErrorFlags hptdcerror
bool getMultipleHit() const
unsigned int getTrailingEdge() const
void CTPPSDiamondDigi::setHPTDCErrorFlags ( const HPTDCErrorFlags hptdcerror_)
inline

Definition at line 71 of file CTPPSDiamondDigi.h.

References hptdcerror.

72  {
73  hptdcerror = hptdcerror_;
74  }
HPTDCErrorFlags hptdcerror
void CTPPSDiamondDigi::setLeadingEdge ( unsigned int  ledgt_)
inline

Set digi values.

Definition at line 55 of file CTPPSDiamondDigi.h.

References ledgt.

56  {
57  ledgt = ledgt_;
58  }
unsigned int ledgt
void CTPPSDiamondDigi::setMultipleHit ( bool  mhit_)
inline

Definition at line 67 of file CTPPSDiamondDigi.h.

References mhit.

68  {
69  mhit = mhit_;
70  }
void CTPPSDiamondDigi::setThresholdVoltage ( unsigned int  threvolt_)
inline

Definition at line 63 of file CTPPSDiamondDigi.h.

64  {
65  threvolt = threvolt_;
66  }
unsigned int threvolt
void CTPPSDiamondDigi::setTrailingEdge ( unsigned int  tedgt_)
inline

Definition at line 59 of file CTPPSDiamondDigi.h.

References tedgt.

60  {
61  tedgt = tedgt_;
62  }
unsigned int tedgt

Member Data Documentation

HPTDCErrorFlags CTPPSDiamondDigi::hptdcerror
private

Definition at line 86 of file CTPPSDiamondDigi.h.

Referenced by getHPTDCErrorFlags(), operator==(), and setHPTDCErrorFlags().

unsigned int CTPPSDiamondDigi::ledgt
private

Definition at line 79 of file CTPPSDiamondDigi.h.

Referenced by getLeadingEdge(), operator==(), and setLeadingEdge().

bool CTPPSDiamondDigi::mhit
private

Definition at line 85 of file CTPPSDiamondDigi.h.

Referenced by getMultipleHit(), operator==(), and setMultipleHit().

unsigned int CTPPSDiamondDigi::tedgt
private

Definition at line 81 of file CTPPSDiamondDigi.h.

Referenced by getTrailingEdge(), operator==(), and setTrailingEdge().

unsigned int CTPPSDiamondDigi::threvolt
private

Definition at line 83 of file CTPPSDiamondDigi.h.

Referenced by getThresholdVoltage(), and operator==().