1 #ifndef CTPPSDigi_CTPPSDiamondDigi_h 2 #define CTPPSDigi_CTPPSDiamondDigi_h 19 unsigned int ledgt_,
unsigned int tedgt_,
unsigned int threvolt,
bool mhit_,
unsigned short hptdcerror_);
60 if (
one.leadingEdge() <
other.leadingEdge())
62 if (
one.leadingEdge() >
other.leadingEdge())
64 if (
one.trailingEdge() <
other.trailingEdge())
66 if (
one.trailingEdge() >
other.trailingEdge())
68 if (
one.multipleHit() <
other.multipleHit())
70 if (
one.multipleHit() >
other.multipleHit())
72 if (
one.hptdcErrorFlags().errorFlag() <
other.hptdcErrorFlags().errorFlag())
74 if (
one.hptdcErrorFlags().errorFlag() >
other.hptdcErrorFlags().errorFlag())
76 if (
one.thresholdVoltage() <
other.thresholdVoltage())
78 if (
one.thresholdVoltage() >
other.thresholdVoltage())
unsigned int thresholdVoltage() const
bool operator<(const CTPPSDiamondDigi &one, const CTPPSDiamondDigi &other)
unsigned int leadingEdge() const
Return digi values number.
void setTrailingEdge(unsigned int tedgt_)
unsigned int trailingEdge() const
void setMultipleHit(bool mhit_)
unsigned short errorFlag() const
bool operator==(const CTPPSDiamondDigi &digi) const
Digis are equal if they are have same ledt and tedt, threshold voltage, multihit flag, hptdcerror flags.
HPTDCErrorFlags hptdcErrorFlags() const
HPTDCErrorFlags hptdcerror
std::ostream & operator<<(std::ostream &o, const CTPPSDiamondDigi &digi)
void setHPTDCErrorFlags(const HPTDCErrorFlags &hptdcerror_)
void setThresholdVoltage(unsigned int threvolt_)
void setLeadingEdge(unsigned int ledgt_)
Set digi values.