CMS 3D CMS Logo

CTPPSDiamondDigi.cc
Go to the documentation of this file.
1 
8 
9 using namespace std;
10 
11 CTPPSDiamondDigi::CTPPSDiamondDigi(unsigned int ledgt_, unsigned int tedgt_, unsigned int threvolt_, bool mhit_, unsigned short hptdcerror_) :
12  ledgt(ledgt_), tedgt(tedgt_), threvolt(threvolt_), mhit(mhit_), hptdcerror(HPTDCErrorFlags(hptdcerror_))
13 {}
14 
17 {}
18 
19 // Comparison
20 bool
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 }
31 
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
bool operator==(const CTPPSDiamondDigi &digi) const
Digis are equal if they are have same ledt and tedt, threshold voltage, multihit flag, hptdcerror flags.
HPTDCErrorFlags hptdcerror
bool getMultipleHit() const
unsigned int getTrailingEdge() const