Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondFormats
JetMETObjects
interface
QGLikelihoodObject.h
Go to the documentation of this file.
1
#ifndef QGLikelihoodObject_h
2
#define QGLikelihoodObject_h
3
4
#include "
CondFormats/PhysicsToolsObjects/interface/Histogram.h
"
5
#include "
CondFormats/Serialization/interface/Serializable.h
"
6
#include <vector>
7
9
struct
QGLikelihoodCategory
{
10
float
RhoMin
,
RhoMax
,
PtMin
,
PtMax
,
EtaMin
,
EtaMax
;
11
int
QGIndex
,
VarIndex
;
12
COND_SERIALIZABLE
;
13
};
14
16
struct
QGLikelihoodParameters
{
17
float
Rho
,
Pt
,
Eta
;
18
int
QGIndex
,
VarIndex
;
19
};
20
22
struct
QGLikelihoodObject
{
23
typedef
PhysicsTools::Calibration::HistogramF
Histogram
;
24
25
struct
Entry
{
26
QGLikelihoodCategory
category
;
27
Histogram
histogram
;
28
float
mean
;
29
COND_SERIALIZABLE
;
30
};
31
32
QGLikelihoodCategory
qgValidRange
;
33
std::vector<Entry>
data
;
34
COND_SERIALIZABLE
;
35
};
36
38
struct
QGLikelihoodSystematicsObject
{
39
struct
Entry
{
40
QGLikelihoodCategory
systCategory
;
41
float
a
,
b
,
lmin
,
lmax
;
42
COND_SERIALIZABLE
;
43
};
44
std::vector<Entry>
data
;
45
COND_SERIALIZABLE
;
46
};
47
49
inline
bool
operator==
(
const
QGLikelihoodParameters
& lhs,
const
QGLikelihoodCategory
& rhs){
50
if
(lhs.
QGIndex
!= rhs.
QGIndex
)
return
false
;
51
if
(lhs.
VarIndex
!= rhs.
VarIndex
)
return
false
;
52
if
(lhs.
Eta
< rhs.
EtaMin
)
return
false
;
53
if
(lhs.
Eta
> rhs.
EtaMax
)
return
false
;
54
if
(lhs.
Rho
< rhs.
RhoMin
)
return
false
;
55
if
(lhs.
Rho
> rhs.
RhoMax
)
return
false
;
56
if
(lhs.
Pt
< rhs.
PtMin
)
return
false
;
57
if
(lhs.
Pt
> rhs.
PtMax
)
return
false
;
58
return
true
;
59
}
60
61
#endif
QGLikelihoodParameters
Parameters structure.
Definition:
QGLikelihoodObject.h:16
QGLikelihoodCategory::EtaMin
float EtaMin
Definition:
QGLikelihoodObject.h:10
QGLikelihoodCategory::VarIndex
int VarIndex
Definition:
QGLikelihoodObject.h:11
QGLikelihoodObject::Entry::category
QGLikelihoodCategory category
Definition:
QGLikelihoodObject.h:26
QGLikelihoodCategory::RhoMin
float RhoMin
Definition:
QGLikelihoodObject.h:10
PhysicsTools::Calibration::Histogram< float >
QGLikelihoodObject::qgValidRange
QGLikelihoodCategory qgValidRange
Definition:
QGLikelihoodObject.h:32
QGLikelihoodSystematicsObject::Entry
Definition:
QGLikelihoodObject.h:39
QGLikelihoodObject::Histogram
PhysicsTools::Calibration::HistogramF Histogram
Definition:
QGLikelihoodObject.h:23
QGLikelihoodSystematicsObject::Entry::lmin
float lmin
Definition:
QGLikelihoodObject.h:41
Histogram.h
QGLikelihoodCategory::EtaMax
float EtaMax
Definition:
QGLikelihoodObject.h:10
QGLikelihoodSystematicsObject::data
std::vector< Entry > data
Definition:
QGLikelihoodObject.h:44
QGLikelihoodSystematicsObject::Entry::a
float a
Definition:
QGLikelihoodObject.h:41
QGLikelihoodCategory::QGIndex
int QGIndex
Definition:
QGLikelihoodObject.h:11
QGLikelihoodObject
QGLikelihoodObject containing valid range and entries with category, histogram and mean...
Definition:
QGLikelihoodObject.h:22
operator==
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
Definition:
QGLikelihoodObject.h:49
QGLikelihoodSystematicsObject::Entry::lmax
float lmax
Definition:
QGLikelihoodObject.h:41
QGLikelihoodCategory::RhoMax
float RhoMax
Definition:
QGLikelihoodObject.h:10
QGLikelihoodCategory::PtMin
float PtMin
Definition:
QGLikelihoodObject.h:10
QGLikelihoodParameters::QGIndex
int QGIndex
Definition:
QGLikelihoodObject.h:18
QGLikelihoodObject::Entry
Definition:
QGLikelihoodObject.h:25
QGLikelihoodCategory
Category structure: ranges associated with QGLikelihood histograms.
Definition:
QGLikelihoodObject.h:9
QGLikelihoodSystematicsObject::Entry::systCategory
QGLikelihoodCategory systCategory
Definition:
QGLikelihoodObject.h:40
QGLikelihoodSystematicsObject::Entry::b
float b
Definition:
QGLikelihoodObject.h:41
QGLikelihoodObject::Entry::mean
float mean
Definition:
QGLikelihoodObject.h:28
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:37
QGLikelihoodCategory::PtMax
float PtMax
Definition:
QGLikelihoodObject.h:10
QGLikelihoodObject::data
std::vector< Entry > data
Definition:
QGLikelihoodObject.h:33
QGLikelihoodSystematicsObject
QGLikelihoodSystematicsObject containing the parameters for the systematic smearing.
Definition:
QGLikelihoodObject.h:38
QGLikelihoodObject::Entry::histogram
Histogram histogram
Definition:
QGLikelihoodObject.h:27
QGLikelihoodParameters::Eta
float Eta
Definition:
QGLikelihoodObject.h:17
Serializable.h
QGLikelihoodParameters::Rho
float Rho
Definition:
QGLikelihoodObject.h:17
QGLikelihoodParameters::Pt
float Pt
Definition:
QGLikelihoodObject.h:17
QGLikelihoodParameters::VarIndex
int VarIndex
Definition:
QGLikelihoodObject.h:18
Generated for CMSSW Reference Manual by
1.8.5