Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:37:05

0001 #ifndef CondFormats_ESObjects_ESWeightSet_HH
0002 #define CondFormats_ESObjects_ESWeightSet_HH
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include "CondFormats/ESObjects/interface/ESWeight.h"
0007 #include "DataFormats/Math/interface/Matrix.h"
0008 #include <iostream>
0009 
0010 class ESWeightSet {
0011 public:
0012   typedef math::Matrix<2, 3>::type ESWeightMatrix;
0013 
0014   ESWeightSet();
0015   ESWeightSet(const ESWeightSet& aset);
0016   ESWeightSet(ESWeightMatrix& amat);
0017   ~ESWeightSet();
0018 
0019   ESWeightMatrix& getWeights() { return wgtBeforeSwitch_; }
0020 
0021   const ESWeightMatrix& getWeights() const { return wgtBeforeSwitch_; }
0022 
0023   ESWeightSet& operator=(const ESWeightSet& rhs);
0024 
0025   void print(std::ostream& o) const {
0026     using namespace std;
0027     o << "wgtBeforeSwitch_.: " << wgtBeforeSwitch_ << endl;
0028   }
0029 
0030 private:
0031   ESWeightMatrix wgtBeforeSwitch_;
0032 
0033   COND_SERIALIZABLE;
0034 };
0035 
0036 #endif