CMS 3D CMS Logo

CTPPSDiamondDigi.cc
Go to the documentation of this file.
1 
8 
9 using namespace std;
10 
12  unsigned int ledgt_, unsigned int tedgt_, unsigned int threvolt_, bool mhit_, unsigned short hptdcerror_)
13  : ledgt(ledgt_), tedgt(tedgt_), threvolt(threvolt_), mhit(mhit_), hptdcerror(HPTDCErrorFlags(hptdcerror_)) {}
14 
15 CTPPSDiamondDigi::CTPPSDiamondDigi() : ledgt(0), tedgt(0), threvolt(0), mhit(false), hptdcerror(HPTDCErrorFlags(0)) {}
16 
17 // Comparison
19  if (ledgt != digi.leadingEdge() || tedgt != digi.trailingEdge() || threvolt != digi.thresholdVoltage() ||
20  mhit != digi.multipleHit() || hptdcerror.errorFlag() != digi.hptdcErrorFlags().errorFlag())
21  return false;
22  else
23  return true;
24 }
CTPPSDiamondDigi::tedgt
unsigned int tedgt
Definition: CTPPSDiamondDigi.h:49
funct::false
false
Definition: Factorize.h:34
CTPPSDiamondDigi::mhit
bool mhit
Definition: CTPPSDiamondDigi.h:53
HPTDCErrorFlags::errorFlag
unsigned short errorFlag() const
Definition: HPTDCErrorFlags.h:72
CTPPSDiamondDigi::threvolt
unsigned int threvolt
Definition: CTPPSDiamondDigi.h:51
CTPPSDiamondDigi::CTPPSDiamondDigi
CTPPSDiamondDigi()
Definition: CTPPSDiamondDigi.cc:15
CTPPSDiamondDigi
Definition: CTPPSDiamondDigi.h:16
CTPPSDiamondDigi::multipleHit
bool multipleHit() const
Definition: CTPPSDiamondDigi.h:34
HPTDCErrorFlags
Definition: HPTDCErrorFlags.h:15
CTPPSDiamondDigi.h
CTPPSDiamondDigi::thresholdVoltage
unsigned int thresholdVoltage() const
Definition: CTPPSDiamondDigi.h:32
CTPPSDiamondDigi::leadingEdge
unsigned int leadingEdge() const
Return digi values number.
Definition: CTPPSDiamondDigi.h:28
CTPPSDiamondDigi::ledgt
unsigned int ledgt
Definition: CTPPSDiamondDigi.h:47
std
Definition: JetResolutionObject.h:76
CTPPSDiamondDigi::operator==
bool operator==(const CTPPSDiamondDigi &digi) const
Digis are equal if they are have same ledt and tedt, threshold voltage, multihit flag,...
Definition: CTPPSDiamondDigi.cc:18
CTPPSDiamondDigi::trailingEdge
unsigned int trailingEdge() const
Definition: CTPPSDiamondDigi.h:30
CTPPSDiamondDigi::hptdcerror
HPTDCErrorFlags hptdcerror
Definition: CTPPSDiamondDigi.h:54
CTPPSDiamondDigi::hptdcErrorFlags
HPTDCErrorFlags hptdcErrorFlags() const
Definition: CTPPSDiamondDigi.h:36