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
36
|
#ifndef CondFormats_ESObjects_ESWeightSet_HH
#define CondFormats_ESObjects_ESWeightSet_HH
#include "CondFormats/Serialization/interface/Serializable.h"
#include "CondFormats/ESObjects/interface/ESWeight.h"
#include "DataFormats/Math/interface/Matrix.h"
#include <iostream>
class ESWeightSet {
public:
typedef math::Matrix<2, 3>::type ESWeightMatrix;
ESWeightSet();
ESWeightSet(const ESWeightSet& aset);
ESWeightSet(ESWeightMatrix& amat);
~ESWeightSet();
ESWeightMatrix& getWeights() { return wgtBeforeSwitch_; }
const ESWeightMatrix& getWeights() const { return wgtBeforeSwitch_; }
ESWeightSet& operator=(const ESWeightSet& rhs);
void print(std::ostream& o) const {
using namespace std;
o << "wgtBeforeSwitch_.: " << wgtBeforeSwitch_ << endl;
}
private:
ESWeightMatrix wgtBeforeSwitch_;
COND_SERIALIZABLE;
};
#endif
|