CMS 3D CMS Logo

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

#include <ESThresholds.h>

Public Member Functions

 ESThresholds ()
 
 ESThresholds (const float &ts2, const float &zs)
 
float getTS2Threshold () const
 
float getZSThreshold () const
 
void print (std::ostream &s) const
 
void setTS2Threshold (const float &value)
 
void setZSThreshold (const float &value)
 
 ~ESThresholds ()
 

Private Member Functions

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

Private Attributes

float ts2_
 
float zs_
 

Friends

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

Detailed Description

Definition at line 7 of file ESThresholds.h.

Constructor & Destructor Documentation

ESThresholds::ESThresholds ( )

Definition at line 3 of file ESThresholds.cc.

References ts2_, and zs_.

3  {
4  ts2_ = 0.;
5  zs_ = 0.;
6 }
ESThresholds::ESThresholds ( const float &  ts2,
const float &  zs 
)

Definition at line 8 of file ESThresholds.cc.

References ts2_, and zs_.

8  {
9  ts2_ = ts2;
10  zs_ = zs;
11 }
ESThresholds::~ESThresholds ( )

Definition at line 13 of file ESThresholds.cc.

13 {}

Member Function Documentation

float ESThresholds::getTS2Threshold ( ) const
inline

Definition at line 14 of file ESThresholds.h.

References ts2_.

Referenced by ESZeroSuppressionProducer::produce().

14 { return ts2_; }
float ESThresholds::getZSThreshold ( ) const
inline

Definition at line 16 of file ESThresholds.h.

References zs_.

16 { return zs_; }
void ESThresholds::print ( std::ostream &  s) const
inline

Definition at line 18 of file ESThresholds.h.

References ts2_, and zs_.

18  {
19  s << "ESThresholds: 2nd time sample / ZS threshold" << ts2_ << " / " << zs_ << " [ADC count]";
20  }
template<class Archive >
void ESThresholds::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void ESThresholds::setTS2Threshold ( const float &  value)
inline

Definition at line 13 of file ESThresholds.h.

References ts2_, and relativeConstraints::value.

void ESThresholds::setZSThreshold ( const float &  value)
inline

Definition at line 15 of file ESThresholds.h.

References relativeConstraints::value, and zs_.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 26 of file ESThresholds.h.

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

Definition at line 26 of file ESThresholds.h.

Member Data Documentation

float ESThresholds::ts2_
private

Definition at line 23 of file ESThresholds.h.

Referenced by ESThresholds(), getTS2Threshold(), print(), and setTS2Threshold().

float ESThresholds::zs_
private

Definition at line 24 of file ESThresholds.h.

Referenced by ESThresholds(), getZSThreshold(), print(), and setZSThreshold().