CMS 3D CMS Logo

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_.

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

Definition at line 9 of file ESThresholds.cc.

References ts2_, and zs_.

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

Definition at line 14 of file ESThresholds.cc.

14  {
15 
16 }

Member Function Documentation

float ESThresholds::getTS2Threshold ( ) const
inline

Definition at line 16 of file ESThresholds.h.

References ts2_.

Referenced by ESZeroSuppressionProducer::produce().

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

Definition at line 18 of file ESThresholds.h.

References zs_.

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

Definition at line 20 of file ESThresholds.h.

References ts2_, and zs_.

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

Definition at line 15 of file ESThresholds.h.

References ts2_, and relativeConstraints::value.

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

Definition at line 17 of file ESThresholds.h.

References relativeConstraints::value, and zs_.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 29 of file ESThresholds.h.

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

Definition at line 29 of file ESThresholds.h.

Member Data Documentation

float ESThresholds::ts2_
private

Definition at line 26 of file ESThresholds.h.

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

float ESThresholds::zs_
private

Definition at line 27 of file ESThresholds.h.

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