CMS 3D CMS Logo

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 46 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 48 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().

48  {
51  ((uint32_t)(hTh*5.0+0.5) & sistrip::HighThStripMask_);
52 
53  lowTh=((uint32_t)(lTh*5.0+0.5) & sistrip::LowThStripMask_);
54  clusTh=0; //put as default;
55  }
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 58 of file SiStripThreshold.h.

References clusTh, and encode().

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

Definition at line 66 of file SiStripThreshold.h.

References clusTh.

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

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

Definition at line 63 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
bool SiStripThreshold::Data::operator< ( const Data d) const
inline

Definition at line 69 of file SiStripThreshold.h.

References FirstStrip_and_Hth.

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

Definition at line 68 of file SiStripThreshold.h.

References clusTh, getHth(), and lowTh.

68 { return (getHth() == d.getHth()) && (lowTh == d.lowTh) && (clusTh == d.clusTh); }
void SiStripThreshold::Data::print ( std::stringstream &  ss) const
inline

Definition at line 71 of file SiStripThreshold.h.

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

Referenced by SiStripThresholdReader::analyze().

71  { ss << "firstStrip: " << getFirstStrip() << " \t"
72  << "lTh: " << " " << getLth() << " \t"
73  << "hTh: " << " " << getHth() << " \t"
74  << "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 80 of file SiStripThreshold.h.

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

Definition at line 80 of file SiStripThreshold.h.

Member Data Documentation

uint8_t SiStripThreshold::Data::clusTh

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

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