Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CondFormats_ESObjects_ESEEIntercalibConstants_H
0002 #define CondFormats_ESObjects_ESEEIntercalibConstants_H
0003 #include "CondFormats/Serialization/interface/Serializable.h"
0004 
0005 #include <iostream>
0006 
0007 class ESEEIntercalibConstants {
0008 public:
0009   ESEEIntercalibConstants();
0010   ESEEIntercalibConstants(const float& gammaLow0,
0011                           const float& alphaLow0,
0012                           const float& gammaHigh0,
0013                           const float& alphaHigh0,
0014                           const float& gammaLow1,
0015                           const float& alphaLow1,
0016                           const float& gammaHigh1,
0017                           const float& alphaHigh1,
0018                           const float& gammaLow2,
0019                           const float& alphaLow2,
0020                           const float& gammaHigh2,
0021                           const float& alphaHigh2,
0022                           const float& gammaLow3,
0023                           const float& alphaLow3,
0024                           const float& gammaHigh3,
0025                           const float& alphaHigh3);
0026   ~ESEEIntercalibConstants();
0027 
0028   void setGammaLow0(const float& value) { gammaLow0_ = value; }
0029   float getGammaLow0() const { return gammaLow0_; }
0030   void setAlphaLow0(const float& value) { alphaLow0_ = value; }
0031   float getAlphaLow0() const { return alphaLow0_; }
0032 
0033   void setGammaLow1(const float& value) { gammaLow1_ = value; }
0034   float getGammaLow1() const { return gammaLow1_; }
0035   void setAlphaLow1(const float& value) { alphaLow1_ = value; }
0036   float getAlphaLow1() const { return alphaLow1_; }
0037 
0038   void setGammaLow2(const float& value) { gammaLow2_ = value; }
0039   float getGammaLow2() const { return gammaLow2_; }
0040   void setAlphaLow2(const float& value) { alphaLow2_ = value; }
0041   float getAlphaLow2() const { return alphaLow2_; }
0042 
0043   void setGammaLow3(const float& value) { gammaLow3_ = value; }
0044   float getGammaLow3() const { return gammaLow3_; }
0045   void setAlphaLow3(const float& value) { alphaLow3_ = value; }
0046   float getAlphaLow3() const { return alphaLow3_; }
0047 
0048   void setGammaHigh0(const float& value) { gammaHigh0_ = value; }
0049   float getGammaHigh0() const { return gammaHigh0_; }
0050   void setAlphaHigh0(const float& value) { alphaHigh0_ = value; }
0051   float getAlphaHigh0() const { return alphaHigh0_; }
0052 
0053   void setGammaHigh1(const float& value) { gammaHigh1_ = value; }
0054   float getGammaHigh1() const { return gammaHigh1_; }
0055   void setAlphaHigh1(const float& value) { alphaHigh1_ = value; }
0056   float getAlphaHigh1() const { return alphaHigh1_; }
0057 
0058   void setGammaHigh2(const float& value) { gammaHigh2_ = value; }
0059   float getGammaHigh2() const { return gammaHigh2_; }
0060   void setAlphaHigh2(const float& value) { alphaHigh2_ = value; }
0061   float getAlphaHigh2() const { return alphaHigh2_; }
0062 
0063   void setGammaHigh3(const float& value) { gammaHigh3_ = value; }
0064   float getGammaHigh3() const { return gammaHigh3_; }
0065   void setAlphaHigh3(const float& value) { alphaHigh3_ = value; }
0066   float getAlphaHigh3() const { return alphaHigh3_; }
0067 
0068   void print(std::ostream& s) const {
0069     s << "ESEEIntercalibConstants: ES low gain (gamma, alpha) / high gain (gamma, alpha)" << gammaLow0_ << " "
0070       << alphaLow0_ << " / " << gammaHigh0_ << " " << alphaHigh0_;
0071   }
0072 
0073 private:
0074   // both planes work perfectly
0075   float gammaLow0_;
0076   float alphaLow0_;
0077   float gammaHigh0_;
0078   float alphaHigh0_;
0079 
0080   // both planes do not work at all
0081   float gammaLow1_;
0082   float alphaLow1_;
0083   float gammaHigh1_;
0084   float alphaHigh1_;
0085 
0086   // only the first plane works
0087   float gammaLow2_;
0088   float alphaLow2_;
0089   float gammaHigh2_;
0090   float alphaHigh2_;
0091 
0092   // only the second plane works
0093   float gammaLow3_;
0094   float alphaLow3_;
0095   float gammaHigh3_;
0096   float alphaHigh3_;
0097 
0098   COND_SERIALIZABLE;
0099 };
0100 
0101 #endif