CMS 3D CMS Logo

Public Member Functions | Private Attributes

EcalMGPAGainRatio Class Reference

#include <EcalMGPAGainRatio.h>

List of all members.

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 Attributes

float gain12Over6_
float gain6Over1_

Detailed Description

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

Id:
EcalMGPAGainRatio.h,v 1.3 2006/02/23 16:56:34 rahatlou Exp

Definition at line 12 of file EcalMGPAGainRatio.h.


Constructor & Destructor Documentation

EcalMGPAGainRatio::EcalMGPAGainRatio ( )

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

Id:
EcalMGPAGainRatio.cc,v 1.3 2006/02/23 16:56:35 rahatlou Exp

Definition at line 8 of file EcalMGPAGainRatio.cc.

References gain12Over6_, and gain6Over1_.

                                     {
  gain12Over6_ = 2.;
  gain6Over1_  = 6.;
}
EcalMGPAGainRatio::EcalMGPAGainRatio ( const EcalMGPAGainRatio ratio)

Definition at line 13 of file EcalMGPAGainRatio.cc.

References gain12Over6_, and gain6Over1_.

EcalMGPAGainRatio::~EcalMGPAGainRatio ( )

Definition at line 18 of file EcalMGPAGainRatio.cc.

                                      {

}

Member Function Documentation

float EcalMGPAGainRatio::gain12Over6 ( ) const [inline]
float EcalMGPAGainRatio::gain6Over1 ( ) const [inline]
EcalMGPAGainRatio & EcalMGPAGainRatio::operator= ( const EcalMGPAGainRatio rhs)

Definition at line 22 of file EcalMGPAGainRatio.cc.

References gain12Over6_, and gain6Over1_.

                                                                            {
  gain12Over6_ = rhs.gain12Over6_;
  gain6Over1_ = rhs.gain6Over1_;
  return *this;
}
void EcalMGPAGainRatio::print ( std::ostream &  s) const [inline]

Definition at line 24 of file EcalMGPAGainRatio.h.

References gain12Over6_, and gain6Over1_.

{ s << "gain 12/6: " << gain12Over6_ << " gain 6/1: " << gain6Over1_; }
void EcalMGPAGainRatio::setGain12Over6 ( const float &  g) [inline]
void EcalMGPAGainRatio::setGain6Over1 ( const float &  g) [inline]

Member Data Documentation

Definition at line 29 of file EcalMGPAGainRatio.h.

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

Definition at line 30 of file EcalMGPAGainRatio.h.

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