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 | Private Member Functions | Friends
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
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 44 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 46 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().

46  {
49  ((uint32_t)(hTh*5.0+0.5) & sistrip::HighThStripMask_);
50 
51  lowTh=((uint32_t)(lTh*5.0+0.5) & sistrip::LowThStripMask_);
52  clusTh=0; //put as default;
53  }
static const uint32_t FirstThStripShift_
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 56 of file SiStripThreshold.h.

References clusTh, and encode().

56  {
57  encode (strip,lTh,hTh);
58  clusTh=(uint8_t)(cTh*10+.5);
59  }
void encode(const uint16_t &strip, const float &lTh, const float &hTh)
float SiStripThreshold::Data::getClusth ( ) const
inline

Definition at line 64 of file SiStripThreshold.h.

References clusTh.

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

64 {return clusTh/10.0;}
uint16_t SiStripThreshold::Data::getFirstStrip ( ) const
inline

Definition at line 61 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 63 of file SiStripThreshold.h.

References lowTh, and sistrip::LowThStripMask_.

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

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

Definition at line 67 of file SiStripThreshold.h.

References FirstStrip_and_Hth.

67 { return (FirstStrip_and_Hth < d.FirstStrip_and_Hth); }
tuple d
Definition: ztail.py:151
bool SiStripThreshold::Data::operator== ( const Data d) const
inline

Definition at line 66 of file SiStripThreshold.h.

References clusTh, getHth(), and lowTh.

66 { return (getHth() == d.getHth()) && (lowTh == d.lowTh) && (clusTh == d.clusTh); }
tuple d
Definition: ztail.py:151
void SiStripThreshold::Data::print ( std::stringstream &  ss) const
inline

Definition at line 69 of file SiStripThreshold.h.

References getClusth(), getFirstStrip(), getHth(), and getLth().

Referenced by SiStripThresholdReader::analyze().

69  { ss << "firstStrip: " << getFirstStrip() << " \t"
70  << "lTh: " << " " << getLth() << " \t"
71  << "hTh: " << " " << getHth() << " \t"
72  << "cTh: " << " " << getClusth() << " \t";}
uint16_t getFirstStrip() const
float getClusth() const
template<class Archive >
void SiStripThreshold::Data::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 78 of file SiStripThreshold.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 78 of file SiStripThreshold.h.

Member Data Documentation

uint8_t SiStripThreshold::Data::clusTh

Definition at line 76 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 75 of file SiStripThreshold.h.

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