Main Page
Namespaces
Classes
Package Documentation
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
Definition:
Histogram.h:36
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
QGLikelihoodCategory::QGIndex
int QGIndex
Definition:
QGLikelihoodObject.h:11
QGLikelihoodObject
QGLikelihoodObject containing valid range and entries with category and histogram (mean is not used a...
Definition:
QGLikelihoodObject.h:22
operator==
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
Definition:
QGLikelihoodObject.h:49
QGLikelihoodCategory::RhoMax
float RhoMax
Definition:
QGLikelihoodObject.h:10
reco::tau::disc::Eta
double Eta(Tau tau)
Definition:
RecoTauDiscriminantFunctions.cc:72
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
QGLikelihoodObject::Entry::mean
float mean
Definition:
QGLikelihoodObject.h:28
b
double b
Definition:
hdecay.h:120
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:38
QGLikelihoodCategory::PtMax
float PtMax
Definition:
QGLikelihoodObject.h:10
QGLikelihoodObject::data
std::vector< Entry > data
Definition:
QGLikelihoodObject.h:33
a
double a
Definition:
hdecay.h:121
reco::tau::disc::Pt
double Pt(Tau tau)
Definition:
RecoTauDiscriminantFunctions.cc:71
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.11