EcalMGPAGainRatio

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#ifndef CondFormats_EcalObjects_EcalMGPAGainRatio_H
#define CondFormats_EcalObjects_EcalMGPAGainRatio_H
/**
 * Author: Shahram Rahatlou, University of Rome & INFN
 * Created: 22 Feb 2006
 * $Id: $
 **/

#include "CondFormats/Serialization/interface/Serializable.h"

#include <iostream>

class EcalMGPAGainRatio {
public:
  EcalMGPAGainRatio();
  EcalMGPAGainRatio(const EcalMGPAGainRatio& ratio);
  ~EcalMGPAGainRatio();

  float gain12Over6() const { return gain12Over6_; }
  float gain6Over1() const { return gain6Over1_; }

  void setGain12Over6(const float& g) { gain12Over6_ = g; }
  void setGain6Over1(const float& g) { gain6Over1_ = g; }

  void print(std::ostream& s) const { s << "gain 12/6: " << gain12Over6_ << " gain 6/1: " << gain6Over1_; }

  EcalMGPAGainRatio& operator=(const EcalMGPAGainRatio& rhs);

private:
  float gain12Over6_;
  float gain6Over1_;

  COND_SERIALIZABLE;
};
#endif