CMS 3D CMS Logo

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() [1/2]

ESTimeSampleWeights::ESTimeSampleWeights ( )

Definition at line 3 of file ESTimeSampleWeights.cc.

References w0_, w1_, and w2_.

3  {
4  w0_ = 0.;
5  w1_ = 0.;
6  w2_ = 0.;
7 }

◆ ESTimeSampleWeights() [2/2]

ESTimeSampleWeights::ESTimeSampleWeights ( const float &  w0,
const float &  w1,
const float &  w2 
)

Definition at line 9 of file ESTimeSampleWeights.cc.

References w0_, w1_, w2, and w2_.

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

◆ ~ESTimeSampleWeights()

ESTimeSampleWeights::~ESTimeSampleWeights ( )

Definition at line 15 of file ESTimeSampleWeights.cc.

15 {}

Member Function Documentation

◆ getWeightForTS0()

float ESTimeSampleWeights::getWeightForTS0 ( ) const
inline

Definition at line 14 of file ESTimeSampleWeights.h.

References w0_.

Referenced by ESRecHitWorker::set().

14 { return w0_; }

◆ getWeightForTS1()

float ESTimeSampleWeights::getWeightForTS1 ( ) const
inline

Definition at line 16 of file ESTimeSampleWeights.h.

References w1_.

Referenced by ESRecHitWorker::set().

16 { return w1_; }

◆ getWeightForTS2()

float ESTimeSampleWeights::getWeightForTS2 ( ) const
inline

Definition at line 18 of file ESTimeSampleWeights.h.

References w2_.

Referenced by ESRecHitWorker::set().

18 { return w2_; }

◆ print()

void ESTimeSampleWeights::print ( std::ostream &  s) const
inline

Definition at line 20 of file ESTimeSampleWeights.h.

References alignCSCRings::s, w0_, w1_, and w2_.

20 { s << "ESTimeSampleWeights: " << w0_ << " " << w1_ << " " << w2_; }

◆ serialize()

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

◆ setWeightForTS0()

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

◆ setWeightForTS1()

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

◆ setWeightForTS2()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 27 of file ESTimeSampleWeights.h.

◆ cond::serialization::access

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

Definition at line 27 of file ESTimeSampleWeights.h.

Member Data Documentation

◆ w0_

float ESTimeSampleWeights::w0_
private

Definition at line 23 of file ESTimeSampleWeights.h.

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

◆ w1_

float ESTimeSampleWeights::w1_
private

Definition at line 24 of file ESTimeSampleWeights.h.

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

◆ w2_

float ESTimeSampleWeights::w2_
private

Definition at line 25 of file ESTimeSampleWeights.h.

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