CMS 3D CMS Logo

Public Member Functions | Public Attributes

SiStripThreshold::Data Struct Reference

#include <SiStripThreshold.h>

List of all members.

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]
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().

                                                                                                    {        
      encode (strip,lTh,hTh);
      clusTh=(uint8_t)(cTh*10+.5);
    }
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]
float SiStripThreshold::Data::getHth ( ) const [inline]
float SiStripThreshold::Data::getLth ( ) const [inline]
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]

Definition at line 64 of file SiStripThreshold.h.

References clusTh, getHth(), and lowTh.

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

                                         { ss << "firstStrip: " << getFirstStrip() << " \t"
                                          << "lTh: " << " " << getLth() << " \t"
                                          << "hTh: " << " " << getHth() << " \t"
                                          << "cTh: " << " " << getClusth() << " \t";}

Member Data Documentation

Definition at line 74 of file SiStripThreshold.h.

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

Definition at line 73 of file SiStripThreshold.h.

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