CMS 3D CMS Logo

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

#include <ESTimeSampleWeights.h>

Public Member Functions

 ESTimeSampleWeights ()
 
 ESTimeSampleWeights (const float &w0, const float &w1, const float &w2)
 
float getWeightForTS0 () const
 
float getWeightForTS1 () const
 
float getWeightForTS2 () const
 
void print (std::ostream &s) const
 
void setWeightForTS0 (const float &value)
 
void setWeightForTS1 (const float &value)
 
void setWeightForTS2 (const float &value)
 
 ~ESTimeSampleWeights ()
 

Private Member Functions

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

Private Attributes

float w0_
 
float w1_
 
float w2_
 

Friends

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

Detailed Description

Definition at line 7 of file ESTimeSampleWeights.h.

Constructor & Destructor Documentation

ESTimeSampleWeights::ESTimeSampleWeights ( )

Definition at line 3 of file ESTimeSampleWeights.cc.

References w0_, w1_, and w2_.

4 {
5  w0_ = 0.;
6  w1_ = 0.;
7  w2_ = 0.;
8 }
ESTimeSampleWeights::ESTimeSampleWeights ( const float &  w0,
const float &  w1,
const float &  w2 
)

Definition at line 10 of file ESTimeSampleWeights.cc.

References w0_, w1_, w2, and w2_.

10  {
11  w0_ = w0;
12  w1_ = w1;
13  w2_ = w2;
14 }
common ppss p3p6s2 common epss epspn46 common const1 w2
Definition: inclppp.h:1
ESTimeSampleWeights::~ESTimeSampleWeights ( )

Definition at line 16 of file ESTimeSampleWeights.cc.

16  {
17 
18 }

Member Function Documentation

float ESTimeSampleWeights::getWeightForTS0 ( ) const
inline

Definition at line 16 of file ESTimeSampleWeights.h.

References w0_.

Referenced by ESRecHitWorker::set().

16 { return w0_; }
float ESTimeSampleWeights::getWeightForTS1 ( ) const
inline

Definition at line 18 of file ESTimeSampleWeights.h.

References w1_.

Referenced by ESRecHitWorker::set().

18 { return w1_; }
float ESTimeSampleWeights::getWeightForTS2 ( ) const
inline

Definition at line 20 of file ESTimeSampleWeights.h.

References w2_.

Referenced by ESRecHitWorker::set().

20 { return w2_; }
void ESTimeSampleWeights::print ( std::ostream &  s) const
inline

Definition at line 22 of file ESTimeSampleWeights.h.

References w0_, w1_, and w2_.

22  {
23  s<<"ESTimeSampleWeights: "<<w0_<<" "<<w1_<<" "<<w2_;
24  }
template<class Archive >
void ESTimeSampleWeights::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void ESTimeSampleWeights::setWeightForTS0 ( const float &  value)
inline

Definition at line 15 of file ESTimeSampleWeights.h.

References relativeConstraints::value, and w0_.

void ESTimeSampleWeights::setWeightForTS1 ( const float &  value)
inline

Definition at line 17 of file ESTimeSampleWeights.h.

References relativeConstraints::value, and w1_.

void ESTimeSampleWeights::setWeightForTS2 ( const float &  value)
inline

Definition at line 19 of file ESTimeSampleWeights.h.

References relativeConstraints::value, and w2_.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 32 of file ESTimeSampleWeights.h.

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

Definition at line 32 of file ESTimeSampleWeights.h.

Member Data Documentation

float ESTimeSampleWeights::w0_
private

Definition at line 28 of file ESTimeSampleWeights.h.

Referenced by ESTimeSampleWeights(), getWeightForTS0(), print(), and setWeightForTS0().

float ESTimeSampleWeights::w1_
private

Definition at line 29 of file ESTimeSampleWeights.h.

Referenced by ESTimeSampleWeights(), getWeightForTS1(), print(), and setWeightForTS1().

float ESTimeSampleWeights::w2_
private

Definition at line 30 of file ESTimeSampleWeights.h.

Referenced by ESTimeSampleWeights(), getWeightForTS2(), print(), and setWeightForTS2().