CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
EcalMGPAGainRatio Class Reference

#include <EcalMGPAGainRatio.h>

Public Member Functions

 EcalMGPAGainRatio ()
 
 EcalMGPAGainRatio (const EcalMGPAGainRatio &ratio)
 
float gain12Over6 () const
 
float gain6Over1 () const
 
EcalMGPAGainRatiooperator= (const EcalMGPAGainRatio &rhs)
 
void print (std::ostream &s) const
 
void setGain12Over6 (const float &g)
 
void setGain6Over1 (const float &g)
 
 ~EcalMGPAGainRatio ()
 

Private Member Functions

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

Private Attributes

float gain12Over6_
 
float gain6Over1_
 

Friends

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

Detailed Description

Author: Shahram Rahatlou, University of Rome & INFN Created: 22 Feb 2006

Id

Definition at line 13 of file EcalMGPAGainRatio.h.

Constructor & Destructor Documentation

◆ EcalMGPAGainRatio() [1/2]

EcalMGPAGainRatio::EcalMGPAGainRatio ( )

Author: Shahram Rahatlou, University of Rome & INFN Created: 22 Feb 2006

Id

Definition at line 8 of file EcalMGPAGainRatio.cc.

References gain12Over6_, and gain6Over1_.

8  {
9  gain12Over6_ = 2.;
10  gain6Over1_ = 6.;
11 }

◆ EcalMGPAGainRatio() [2/2]

EcalMGPAGainRatio::EcalMGPAGainRatio ( const EcalMGPAGainRatio ratio)

Definition at line 13 of file EcalMGPAGainRatio.cc.

References gain12Over6_, and gain6Over1_.

13  {
14  gain12Over6_ = ratio.gain12Over6_;
15  gain6Over1_ = ratio.gain6Over1_;
16 }

◆ ~EcalMGPAGainRatio()

EcalMGPAGainRatio::~EcalMGPAGainRatio ( )

Definition at line 18 of file EcalMGPAGainRatio.cc.

18 {}

Member Function Documentation

◆ gain12Over6()

float EcalMGPAGainRatio::gain12Over6 ( ) const
inline

◆ gain6Over1()

float EcalMGPAGainRatio::gain6Over1 ( ) const
inline

◆ operator=()

EcalMGPAGainRatio & EcalMGPAGainRatio::operator= ( const EcalMGPAGainRatio rhs)

Definition at line 20 of file EcalMGPAGainRatio.cc.

References gain12Over6_, and gain6Over1_.

20  {
23  return *this;
24 }

◆ print()

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

Definition at line 25 of file EcalMGPAGainRatio.h.

References gain12Over6_, gain6Over1_, and alignCSCRings::s.

25 { s << "gain 12/6: " << gain12Over6_ << " gain 6/1: " << gain6Over1_; }

◆ serialize()

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

◆ setGain12Over6()

void EcalMGPAGainRatio::setGain12Over6 ( const float &  g)
inline

Definition at line 22 of file EcalMGPAGainRatio.h.

References g, and gain12Over6_.

Referenced by EcalTestDevDB::generateEcalGainRatios(), EcalTrivialConditionRetriever::produceEcalGainRatios(), and StoreEcalCondition::readEcalGainRatiosFromFile().

22 { gain12Over6_ = g; }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4

◆ setGain6Over1()

void EcalMGPAGainRatio::setGain6Over1 ( const float &  g)
inline

Definition at line 23 of file EcalMGPAGainRatio.h.

References g, and gain6Over1_.

Referenced by EcalTestDevDB::generateEcalGainRatios(), and StoreEcalCondition::readEcalGainRatiosFromFile().

23 { gain6Over1_ = g; }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 33 of file EcalMGPAGainRatio.h.

◆ cond::serialization::access

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

Definition at line 33 of file EcalMGPAGainRatio.h.

Member Data Documentation

◆ gain12Over6_

float EcalMGPAGainRatio::gain12Over6_
private

Definition at line 30 of file EcalMGPAGainRatio.h.

Referenced by EcalMGPAGainRatio(), gain12Over6(), operator=(), print(), and setGain12Over6().

◆ gain6Over1_

float EcalMGPAGainRatio::gain6Over1_
private

Definition at line 31 of file EcalMGPAGainRatio.h.

Referenced by EcalMGPAGainRatio(), gain6Over1(), operator=(), print(), and setGain6Over1().