Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CondFormats_EcalObjects_EcalADCToGeVConstant_H
0002 #define CondFormats_EcalObjects_EcalADCToGeVConstant_H
0003 /**
0004  * Author: Shahram Rahatlou, University of Rome & INFN
0005  * Created: 22 Feb 2006
0006  * $Id: EcalADCToGeVConstant.h,v 1.3 2006/02/23 16:56:34 rahatlou Exp $
0007  **/
0008 
0009 #include "CondFormats/Serialization/interface/Serializable.h"
0010 
0011 #include <iostream>
0012 
0013 class EcalADCToGeVConstant {
0014 public:
0015   EcalADCToGeVConstant();
0016   EcalADCToGeVConstant(const float& EBvalue, const float& EEvalue);
0017   ~EcalADCToGeVConstant();
0018   void setEBValue(const float& value) { EBvalue_ = value; }
0019   void setEEValue(const float& value) { EEvalue_ = value; }
0020   float getEBValue() const { return EBvalue_; }
0021   float getEEValue() const { return EEvalue_; }
0022   void print(std::ostream& s) const {
0023     s << "EcalADCToGeVConstant: EB " << EBvalue_ << "; EE " << EEvalue_ << " [GeV/ADC count]";
0024   }
0025 
0026 private:
0027   float EBvalue_;
0028   float EEvalue_;
0029 
0030   COND_SERIALIZABLE;
0031 };
0032 
0033 /**
0034 std::ostream& operator<<(std::ostream& s, const EcalADCToGeVConstant& agc) {
0035   agc.print(s);
0036   return s;
0037 }
0038 **/
0039 
0040 #endif