File indexing completed on 2023-03-17 10:49:36
0001
0002
0003
0004
0005
0006
0007 #include <DataFormats/CTPPSDigi/interface/CTPPSDiamondDigi.h>
0008
0009 using namespace std;
0010
0011 CTPPSDiamondDigi::CTPPSDiamondDigi(
0012 unsigned int ledgt_, unsigned int tedgt_, unsigned int threvolt_, bool mhit_, unsigned short hptdcerror_)
0013 : ledgt(ledgt_), tedgt(tedgt_), threvolt(threvolt_), mhit(mhit_), hptdcerror(HPTDCErrorFlags(hptdcerror_)) {}
0014
0015 CTPPSDiamondDigi::CTPPSDiamondDigi() : ledgt(0), tedgt(0), threvolt(0), mhit(false), hptdcerror(HPTDCErrorFlags(0)) {}
0016
0017
0018 bool CTPPSDiamondDigi::operator==(const CTPPSDiamondDigi& digi) const {
0019 if (ledgt != digi.leadingEdge() || tedgt != digi.trailingEdge() || threvolt != digi.thresholdVoltage() ||
0020 mhit != digi.multipleHit() || hptdcerror.errorFlag() != digi.hptdcErrorFlags().errorFlag())
0021 return false;
0022 else
0023 return true;
0024 }