CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
SiStripThreshold::Data Struct Reference

#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
 

Detailed Description

Definition at line 42 of file SiStripThreshold.h.

Member Function Documentation

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 BeautifulSoup.Tag::_invert(), encode(), and SiStripThreshold::setData().

44  {
47  ((uint32_t)(hTh*5.0+0.5) & sistrip::HighThStripMask_);
48 
49  lowTh=((uint32_t)(lTh*5.0+0.5) & sistrip::LowThStripMask_);
50  clusTh=0; //put as default;
51  }
static const uint32_t FirstThStripShift_
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16
static const uint32_t HighThStripMask_
static const uint32_t LowThStripMask_
static const uint32_t FirstThStripMask_
void SiStripThreshold::Data::encode ( const uint16_t &  strip,
const float &  lTh,
const float &  hTh,
const float &  cTh 
)
inline

Definition at line 54 of file SiStripThreshold.h.

References clusTh, and encode().

Referenced by BeautifulSoup.Tag::_invert().

54  {
55  encode (strip,lTh,hTh);
56  clusTh=(uint8_t)(cTh*10+.5);
57  }
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16
void encode(const uint16_t &strip, const float &lTh, const float &hTh)
float SiStripThreshold::Data::getClusth ( ) const
inline

Definition at line 62 of file SiStripThreshold.h.

References clusTh.

Referenced by SiStripThresholdReader::analyze(), and print().

62 {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().

static const uint32_t FirstThStripShift_
float SiStripThreshold::Data::getHth ( ) const
inline
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().

61 {return (lowTh& sistrip::LowThStripMask_)/5.0;}
static const uint32_t LowThStripMask_
bool SiStripThreshold::Data::operator< ( const Data d) const
inline

Definition at line 65 of file SiStripThreshold.h.

References FirstStrip_and_Hth.

65 { return (FirstStrip_and_Hth < d.FirstStrip_and_Hth); }
bool SiStripThreshold::Data::operator== ( const Data d) const
inline

Definition at line 64 of file SiStripThreshold.h.

References clusTh, getHth(), and lowTh.

64 { return (getHth() == d.getHth()) && (lowTh == d.lowTh) && (clusTh == d.clusTh); }
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().

67  { ss << "firstStrip: " << getFirstStrip() << " \t"
68  << "lTh: " << " " << getLth() << " \t"
69  << "hTh: " << " " << getHth() << " \t"
70  << "cTh: " << " " << getClusth() << " \t";}
uint16_t getFirstStrip() const
float getClusth() const

Member Data Documentation

uint8_t SiStripThreshold::Data::clusTh

Definition at line 74 of file SiStripThreshold.h.

Referenced by encode(), getClusth(), and operator==().

uint16_t SiStripThreshold::Data::FirstStrip_and_Hth
uint8_t SiStripThreshold::Data::lowTh

Definition at line 73 of file SiStripThreshold.h.

Referenced by encode(), getLth(), and operator==().