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.

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

References w0_, w1_, and w2_.

◆ ESTimeSampleWeights() [2/2]

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

Definition at line 9 of file ESTimeSampleWeights.cc.

9  {
10  w0_ = w0;
11  w1_ = w1;
12  w2_ = w2;
13 }

References w0_, w1_, w2, and w2_.

◆ ~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.

14 { return w0_; }

References w0_.

Referenced by ESRecHitWorker::set().

◆ getWeightForTS1()

float ESTimeSampleWeights::getWeightForTS1 ( ) const
inline

Definition at line 16 of file ESTimeSampleWeights.h.

16 { return w1_; }

References w1_.

Referenced by ESRecHitWorker::set().

◆ getWeightForTS2()

float ESTimeSampleWeights::getWeightForTS2 ( ) const
inline

Definition at line 18 of file ESTimeSampleWeights.h.

18 { return w2_; }

References w2_.

Referenced by ESRecHitWorker::set().

◆ print()

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

Definition at line 20 of file ESTimeSampleWeights.h.

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

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

◆ serialize()

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

◆ setWeightForTS0()

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

Definition at line 13 of file ESTimeSampleWeights.h.

13 { w0_ = value; }

References relativeConstraints::value, and w0_.

◆ setWeightForTS1()

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

Definition at line 15 of file ESTimeSampleWeights.h.

15 { w1_ = value; }

References relativeConstraints::value, and w1_.

◆ setWeightForTS2()

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

Definition at line 17 of file ESTimeSampleWeights.h.

17 { w2_ = value; }

References relativeConstraints::value, and w2_.

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().

ESTimeSampleWeights::w2_
float w2_
Definition: ESTimeSampleWeights.h:25
w2
common ppss p3p6s2 common epss epspn46 common const1 w2
Definition: inclppp.h:1
ESTimeSampleWeights::w0_
float w0_
Definition: ESTimeSampleWeights.h:23
ESTimeSampleWeights::w1_
float w1_
Definition: ESTimeSampleWeights.h:24
alignCSCRings.s
s
Definition: alignCSCRings.py:92
relativeConstraints.value
value
Definition: relativeConstraints.py:53