CondFormats
ESObjects
interface
ESWeightSet.h
Go to the documentation of this file.
1
#ifndef CondFormats_ESObjects_ESWeightSet_HH
2
#define CondFormats_ESObjects_ESWeightSet_HH
3
4
#include "
CondFormats/Serialization/interface/Serializable.h
"
5
6
#include "
CondFormats/ESObjects/interface/ESWeight.h
"
7
#include "
DataFormats/Math/interface/Matrix.h
"
8
#include <iostream>
9
10
class
ESWeightSet
{
11
public
:
12
typedef
math::Matrix<2, 3>::type
ESWeightMatrix
;
13
14
ESWeightSet
();
15
ESWeightSet
(
const
ESWeightSet
& aset);
16
ESWeightSet
(
ESWeightMatrix
& amat);
17
~ESWeightSet
();
18
19
ESWeightMatrix
&
getWeights
() {
return
wgtBeforeSwitch_
; }
20
21
const
ESWeightMatrix
&
getWeights
()
const
{
return
wgtBeforeSwitch_
; }
22
23
ESWeightSet
&
operator=
(
const
ESWeightSet
& rhs);
24
25
void
print
(std::ostream&
o
)
const
{
26
using namespace
std
;
27
o
<<
"wgtBeforeSwitch_.: "
<<
wgtBeforeSwitch_
<< endl;
28
}
29
30
private
:
31
ESWeightMatrix
wgtBeforeSwitch_
;
32
33
COND_SERIALIZABLE
;
34
};
35
36
#endif
ESWeightSet::ESWeightSet
ESWeightSet()
Definition:
ESWeightSet.cc:2
ESWeight.h
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
ESWeightSet::~ESWeightSet
~ESWeightSet()
Definition:
ESWeightSet.cc:13
ESWeightSet::operator=
ESWeightSet & operator=(const ESWeightSet &rhs)
Definition:
ESWeightSet.cc:8
ESWeightSet::getWeights
const ESWeightMatrix & getWeights() const
Definition:
ESWeightSet.h:21
ESWeightSet::getWeights
ESWeightMatrix & getWeights()
Definition:
ESWeightSet.h:19
Matrix.h
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:42
math::Matrix::type
ROOT::Math::SMatrix< double, N, M > type
Definition:
Matrix.h:9
ESWeightSet::wgtBeforeSwitch_
ESWeightMatrix wgtBeforeSwitch_
Definition:
ESWeightSet.h:31
ESWeightSet::print
void print(std::ostream &o) const
Definition:
ESWeightSet.h:25
Serializable.h
ESWeightSet
Definition:
ESWeightSet.h:10
ESWeightSet::ESWeightMatrix
math::Matrix< 2, 3 >::type ESWeightMatrix
Definition:
ESWeightSet.h:12
std
Definition:
JetResolutionObject.h:76
Generated for CMSSW Reference Manual by
1.8.16