1 #ifndef CTPPSDigi_CTPPSDiamondDigi_h 2 #define CTPPSDigi_CTPPSDiamondDigi_h 20 CTPPSDiamondDigi(
unsigned int ledgt_,
unsigned int tedgt_,
unsigned int threvolt,
bool mhit_,
unsigned short hptdcerror_);
unsigned short getErrorFlag() const
bool operator<(const CTPPSDiamondDigi &one, const CTPPSDiamondDigi &other)
void setTrailingEdge(unsigned int tedgt_)
unsigned int getThresholdVoltage() const
HPTDCErrorFlags getHPTDCErrorFlags() const
void setMultipleHit(bool mhit_)
unsigned int getLeadingEdge() const
Return digi values number.
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
std::ostream & operator<<(std::ostream &o, const CTPPSDiamondDigi &digi)
void setHPTDCErrorFlags(const HPTDCErrorFlags &hptdcerror_)
bool getMultipleHit() const
unsigned int getTrailingEdge() const
void setThresholdVoltage(unsigned int threvolt_)
void setLeadingEdge(unsigned int ledgt_)
Set digi values.