#include <SiStripThreshold.h>
Public Member Functions | |
void | encode (const uint16_t &strip, const float &lTh, const float &hTh) |
void | encode (const uint16_t &strip, const float &lTh, const float &hTh, const float &cTh) |
float | getClusth () const |
uint16_t | getFirstStrip () const |
float | getHth () const |
float | getLth () const |
bool | operator< (const Data &d) const |
bool | operator== (const Data &d) const |
void | print (std::stringstream &ss) const |
Public Attributes | |
uint8_t | clusTh |
uint16_t | FirstStrip_and_Hth |
uint8_t | lowTh |
Definition at line 42 of file SiStripThreshold.h.
void SiStripThreshold::Data::encode | ( | const uint16_t & | strip, |
const float & | lTh, | ||
const float & | hTh | ||
) | [inline] |
Definition at line 44 of file SiStripThreshold.h.
References clusTh, FirstStrip_and_Hth, sistrip::FirstThStripMask_, sistrip::FirstThStripShift_, sistrip::HighThStripMask_, lowTh, and sistrip::LowThStripMask_.
Referenced by encode(), and SiStripThreshold::setData().
{ FirstStrip_and_Hth = ((strip & sistrip::FirstThStripMask_)<<sistrip::FirstThStripShift_) | ((uint32_t)(hTh*5.0+0.5) & sistrip::HighThStripMask_); lowTh=((uint32_t)(lTh*5.0+0.5) & sistrip::LowThStripMask_); clusTh=0; //put as default; }
void SiStripThreshold::Data::encode | ( | const uint16_t & | strip, |
const float & | lTh, | ||
const float & | hTh, | ||
const float & | cTh | ||
) | [inline] |
float SiStripThreshold::Data::getClusth | ( | ) | const [inline] |
Definition at line 62 of file SiStripThreshold.h.
References clusTh.
Referenced by SiStripThresholdReader::analyze(), and print().
{return clusTh/10.0;}
uint16_t SiStripThreshold::Data::getFirstStrip | ( | ) | const [inline] |
Definition at line 59 of file SiStripThreshold.h.
References FirstStrip_and_Hth, and sistrip::FirstThStripShift_.
Referenced by SiStripThresholdReader::analyze(), and print().
{return (FirstStrip_and_Hth>>sistrip::FirstThStripShift_);}
float SiStripThreshold::Data::getHth | ( | ) | const [inline] |
Definition at line 60 of file SiStripThreshold.h.
References FirstStrip_and_Hth, and sistrip::HighThStripMask_.
Referenced by SiStripThresholdReader::analyze(), operator==(), print(), and SiStripFedZeroSuppression::suppress().
{return (FirstStrip_and_Hth& sistrip::HighThStripMask_)/5.0;}
float SiStripThreshold::Data::getLth | ( | ) | const [inline] |
Definition at line 61 of file SiStripThreshold.h.
References lowTh, and sistrip::LowThStripMask_.
Referenced by SiStripThresholdReader::analyze(), print(), and SiStripFedZeroSuppression::suppress().
{return (lowTh& sistrip::LowThStripMask_)/5.0;}
bool SiStripThreshold::Data::operator< | ( | const Data & | d | ) | const [inline] |
Definition at line 65 of file SiStripThreshold.h.
References FirstStrip_and_Hth.
{ return (FirstStrip_and_Hth < d.FirstStrip_and_Hth); }
bool SiStripThreshold::Data::operator== | ( | const Data & | d | ) | const [inline] |
void SiStripThreshold::Data::print | ( | std::stringstream & | ss | ) | const [inline] |
Definition at line 67 of file SiStripThreshold.h.
References getClusth(), getFirstStrip(), getHth(), and getLth().
Referenced by SiStripThresholdReader::analyze().
{ ss << "firstStrip: " << getFirstStrip() << " \t" << "lTh: " << " " << getLth() << " \t" << "hTh: " << " " << getHth() << " \t" << "cTh: " << " " << getClusth() << " \t";}
uint8_t SiStripThreshold::Data::clusTh |
Definition at line 74 of file SiStripThreshold.h.
Referenced by encode(), getClusth(), and operator==().
Definition at line 72 of file SiStripThreshold.h.
Referenced by SiStripThresholdReader::analyze(), encode(), getFirstStrip(), getHth(), SiStripThreshold::dataStrictWeakOrdering::operator()(), and operator<().
uint8_t SiStripThreshold::Data::lowTh |
Definition at line 73 of file SiStripThreshold.h.
Referenced by encode(), getLth(), and operator==().