CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/CondFormats/ESObjects/interface/ESWeightSet.h

Go to the documentation of this file.
00001 #ifndef CondFormats_ESObjects_ESWeightSet_HH
00002 #define CondFormats_ESObjects_ESWeightSet_HH
00003 
00004 #include "CondFormats/ESObjects/interface/ESWeight.h"
00005 #include "DataFormats/Math/interface/Matrix.h"
00006 #include <iostream>
00007 
00008 class ESWeightSet {
00009 
00010   public:
00011   
00012   typedef math::Matrix<2,3>::type ESWeightMatrix;
00013   
00014   ESWeightSet();
00015   ESWeightSet(const ESWeightSet& aset);
00016   ESWeightSet(ESWeightMatrix& amat);
00017   ~ESWeightSet();
00018   
00019   ESWeightMatrix& getWeights() { return wgtBeforeSwitch_; }
00020   
00021   const ESWeightMatrix& getWeights() const { return wgtBeforeSwitch_; }
00022   
00023   ESWeightSet& operator=(const ESWeightSet& rhs);
00024   
00025   void print(std::ostream& o) const {
00026     using namespace std;
00027     o << "wgtBeforeSwitch_.: " << wgtBeforeSwitch_
00028       << endl;
00029   }
00030   
00031   
00032  private:
00033   ESWeightMatrix wgtBeforeSwitch_;
00034 };
00035 
00036 #endif