Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:05

0001 #ifndef CondFormats_EcalObjects_EcalMGPAGainRatio_H
0002 #define CondFormats_EcalObjects_EcalMGPAGainRatio_H
0003 /**
0004  * Author: Shahram Rahatlou, University of Rome & INFN
0005  * Created: 22 Feb 2006
0006  * $Id: $
0007  **/
0008 
0009 #include "CondFormats/Serialization/interface/Serializable.h"
0010 
0011 #include <iostream>
0012 
0013 class EcalMGPAGainRatio {
0014 public:
0015   EcalMGPAGainRatio();
0016   EcalMGPAGainRatio(const EcalMGPAGainRatio& ratio);
0017   ~EcalMGPAGainRatio();
0018 
0019   float gain12Over6() const { return gain12Over6_; }
0020   float gain6Over1() const { return gain6Over1_; }
0021 
0022   void setGain12Over6(const float& g) { gain12Over6_ = g; }
0023   void setGain6Over1(const float& g) { gain6Over1_ = g; }
0024 
0025   void print(std::ostream& s) const { s << "gain 12/6: " << gain12Over6_ << " gain 6/1: " << gain6Over1_; }
0026 
0027   EcalMGPAGainRatio& operator=(const EcalMGPAGainRatio& rhs);
0028 
0029 private:
0030   float gain12Over6_;
0031   float gain6Over1_;
0032 
0033   COND_SERIALIZABLE;
0034 };
0035 #endif