CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
SiStripThreshold Class Reference

#include <SiStripThreshold.h>

Classes

struct  Data
 
class  dataStrictWeakOrdering
 
struct  DetRegistry
 
class  StrictWeakOrdering
 

Public Types

typedef std::vector< DataContainer
 
typedef Container::const_iterator ContainerIterator
 
typedef Container InputVector
 
typedef std::pair
< ContainerIterator,
ContainerIterator
Range
 
typedef std::vector< DetRegistryRegistry
 
typedef Registry::const_iterator RegistryIterator
 

Public Member Functions

void allThresholds (std::vector< float > &lowThs, std::vector< float > &highThs, const Range &range) const
 
SiStripThreshold::Data getData (const uint16_t &strip, const Range &range) const
 
ContainerIterator getDataVectorBegin () const
 
ContainerIterator getDataVectorEnd () const
 
void getDetIds (std::vector< uint32_t > &DetIds_) const
 
const Range getRange (const uint32_t &detID) const
 
RegistryIterator getRegistryVectorBegin () const
 
RegistryIterator getRegistryVectorEnd () const
 
void printDebug (std::stringstream &ss) const
 Prints all the thresholds for all DetIds. More...
 
void printSummary (std::stringstream &ss) const
 Prints mean, rms, min and max threshold values for each DetId. More...
 
bool put (const uint32_t &detID, const InputVector &vect)
 
void setData (const uint16_t &strip, const float &lTh, const float &hTh, Container &vthr)
 
void setData (const uint16_t &strip, const float &lTh, const float &hTh, const float &cTh, Container &vthr)
 
 SiStripThreshold ()
 
 SiStripThreshold (const SiStripThreshold &orig)
 
virtual ~SiStripThreshold ()
 

Private Member Functions

void addToStat (float value, uint16_t &range, float &sum, float &sum2, float &min, float &max) const
 
Container::iterator compact (Container &input)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

Registry indexes
 
Container v_threshold
 

Friends

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

Detailed Description

Holds the thresholds:

Definition at line 40 of file SiStripThreshold.h.

Member Typedef Documentation

typedef std::vector<Data> SiStripThreshold::Container

Definition at line 101 of file SiStripThreshold.h.

typedef Container::const_iterator SiStripThreshold::ContainerIterator

Definition at line 102 of file SiStripThreshold.h.

Definition at line 106 of file SiStripThreshold.h.

Definition at line 103 of file SiStripThreshold.h.

Definition at line 104 of file SiStripThreshold.h.

typedef Registry::const_iterator SiStripThreshold::RegistryIterator

Definition at line 105 of file SiStripThreshold.h.

Constructor & Destructor Documentation

SiStripThreshold::SiStripThreshold ( )
inline

Definition at line 108 of file SiStripThreshold.h.

108 {};
SiStripThreshold::SiStripThreshold ( const SiStripThreshold orig)
inline

Definition at line 109 of file SiStripThreshold.h.

References indexes, and v_threshold.

109  {
110  v_threshold=orig.v_threshold;
111  indexes=orig.indexes;
112  }
virtual SiStripThreshold::~SiStripThreshold ( )
inlinevirtual

Definition at line 113 of file SiStripThreshold.h.

113 {};

Member Function Documentation

void SiStripThreshold::addToStat ( float  value,
uint16_t &  range,
float &  sum,
float &  sum2,
float &  min,
float &  max 
) const
private

Definition at line 160 of file SiStripThreshold.cc.

void SiStripThreshold::allThresholds ( std::vector< float > &  lowThs,
std::vector< float > &  highThs,
const Range range 
) const

Definition at line 80 of file SiStripThreshold.cc.

SiStripThreshold::Container::iterator SiStripThreshold::compact ( Container input)
private

Definition at line 31 of file SiStripThreshold.cc.

SiStripThreshold::Data SiStripThreshold::getData ( const uint16_t &  strip,
const Range range 
) const

Definition at line 68 of file SiStripThreshold.cc.

ContainerIterator SiStripThreshold::getDataVectorBegin ( ) const
inline

Definition at line 120 of file SiStripThreshold.h.

References v_threshold.

120 {return v_threshold.begin();}
ContainerIterator SiStripThreshold::getDataVectorEnd ( ) const
inline

Definition at line 121 of file SiStripThreshold.h.

References v_threshold.

121 {return v_threshold.end();}
void SiStripThreshold::getDetIds ( std::vector< uint32_t > &  DetIds_) const

Definition at line 47 of file SiStripThreshold.cc.

const SiStripThreshold::Range SiStripThreshold::getRange ( const uint32_t &  detID) const

Definition at line 36 of file SiStripThreshold.cc.

RegistryIterator SiStripThreshold::getRegistryVectorBegin ( ) const
inline

Definition at line 122 of file SiStripThreshold.h.

References indexes.

122 {return indexes.begin();}
RegistryIterator SiStripThreshold::getRegistryVectorEnd ( ) const
inline

Definition at line 123 of file SiStripThreshold.h.

References indexes.

123 {return indexes.end();}
void SiStripThreshold::printDebug ( std::stringstream &  ss) const

Prints all the thresholds for all DetIds.

Definition at line 101 of file SiStripThreshold.cc.

Referenced by SiStripThresholdGenerator::createObject().

void SiStripThreshold::printSummary ( std::stringstream &  ss) const

Prints mean, rms, min and max threshold values for each DetId.

Definition at line 115 of file SiStripThreshold.cc.

bool SiStripThreshold::put ( const uint32_t &  detID,
const InputVector vect 
)
template<class Archive >
void SiStripThreshold::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void SiStripThreshold::setData ( const uint16_t &  strip,
const float &  lTh,
const float &  hTh,
Container vthr 
)
void SiStripThreshold::setData ( const uint16_t &  strip,
const float &  lTh,
const float &  hTh,
const float &  cTh,
Container vthr 
)

Definition at line 62 of file SiStripThreshold.cc.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 145 of file SiStripThreshold.h.

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

Definition at line 145 of file SiStripThreshold.h.

Member Data Documentation

Registry SiStripThreshold::indexes
private
Container SiStripThreshold::v_threshold
private

Definition at line 142 of file SiStripThreshold.h.

Referenced by getDataVectorBegin(), getDataVectorEnd(), and SiStripThreshold().