src
Calibration
EcalCalibAlgos
interface
EcalPhiSymInfo.h
Go to the documentation of this file.
1
#ifndef Calibration_EcalCalibAlgos_EcalPhiSymInfo_h
2
#define Calibration_EcalCalibAlgos_EcalPhiSymInfo_h
3
11
#include <vector>
12
#include <cstdint>
13
#include <cassert>
14
15
class
EcalPhiSymInfo
{
16
public
:
17
//---ctors---
18
EcalPhiSymInfo
()
19
:
totHitsEB_
(0),
20
totHitsEE_
(0),
21
nEvents_
(0),
22
nLumis_
(0),
23
fillNumber_
(0),
24
delivLumi_
(0),
25
recLumi_
(0),
26
nMis_
(0),
27
minMisEB_
(0),
28
maxMisEB_
(0),
29
minMisEE_
(0),
30
maxMisEE_
(0) {}
31
32
EcalPhiSymInfo
(
33
uint64_t
hitsEB
,
uint64_t
hitsEE
,
uint64_t
nEvents
, uint32_t
nLumis
, uint16_t
fill
,
float
delivLumi
,
float
recLumi
)
34
:
totHitsEB_
(
hitsEB
),
35
totHitsEE_
(
hitsEE
),
36
nEvents_
(
nEvents
),
37
nLumis_
(
nLumis
),
38
fillNumber_
(
fill
),
39
delivLumi_
(
delivLumi
),
40
recLumi_
(
recLumi
),
41
nMis_
(0),
42
minMisEB_
(0),
43
maxMisEB_
(0),
44
minMisEE_
(0),
45
maxMisEE_
(0) {}
46
47
//---dtor---
48
~EcalPhiSymInfo
() =
default
;
49
50
//---setters---
51
inline
void
setMiscalibInfo
(
52
const
int
&
nmis
,
const
float
& minEB,
const
float
& maxEB,
const
float
& minEE,
const
float
& maxEE) {
53
nMis_
=
nmis
;
54
minMisEB_
= minEB;
55
maxMisEB_
= maxEB;
56
minMisEE_
= minEE;
57
maxMisEE_
= maxEE;
58
};
59
60
//---getters---
61
inline
uint64_t
totHits
()
const
{
return
totHitsEB_
+
totHitsEE_
; };
62
inline
uint64_t
totHitsEB
()
const
{
return
totHitsEB_
; };
63
inline
uint64_t
totHitsEE
()
const
{
return
totHitsEE_
; };
64
inline
uint32_t
nEvents
()
const
{
return
nEvents_
; };
65
inline
uint16_t
nLumis
()
const
{
return
nLumis_
; };
66
inline
uint16_t
fillNumber
()
const
{
return
fillNumber_
; };
67
inline
float
delivLumi
()
const
{
return
delivLumi_
; };
68
inline
float
recLumi
()
const
{
return
recLumi_
; };
69
inline
uint8_t
nMis
()
const
{
return
nMis_
; };
70
inline
float
minMisEB
()
const
{
return
minMisEB_
; };
71
inline
float
maxMisEB
()
const
{
return
maxMisEB_
; };
72
inline
float
minMisEE
()
const
{
return
minMisEE_
; };
73
inline
float
maxMisEE
()
const
{
return
maxMisEE_
; };
74
75
//---operators---
76
EcalPhiSymInfo
&
operator+=
(
const
EcalPhiSymInfo
& rhs) {
77
// The class at the moment is designed to
78
// hold at most data from a single run.
79
// This implies fillNumber has to be the same,
80
// unless it was not set, in that case it is 0.
81
if
(
fillNumber_
!= 0 && rhs.
fillNumber
() != 0)
82
assert
(
fillNumber_
== rhs.
fillNumber
());
83
else
84
fillNumber_
=
std::max
(
fillNumber_
, rhs.
fillNumber
());
85
totHitsEB_
+= rhs.
totHitsEB
();
86
totHitsEE_
+= rhs.
totHitsEE
();
87
nEvents_
+= rhs.
nEvents
();
88
nLumis_
+= rhs.
nLumis
();
89
delivLumi_
+= rhs.
delivLumi
();
90
recLumi_
+= rhs.
recLumi
();
91
92
return
*
this
;
93
}
94
95
private
:
96
uint64_t
totHitsEB_
;
97
uint64_t
totHitsEE_
;
98
uint32_t
nEvents_
;
99
uint16_t
nLumis_
;
100
uint16_t
fillNumber_
;
101
float
delivLumi_
;
102
float
recLumi_
;
103
uint8_t
nMis_
;
104
float
minMisEB_
;
105
float
maxMisEB_
;
106
float
minMisEE_
;
107
float
maxMisEE_
;
108
};
109
110
#endif
EcalPhiSymInfo::nMis_
uint8_t nMis_
Definition:
EcalPhiSymInfo.h:103
EcalPhiSymInfo::maxMisEB
float maxMisEB() const
Definition:
EcalPhiSymInfo.h:71
EcalPhiSymInfo::nEvents
uint32_t nEvents() const
Definition:
EcalPhiSymInfo.h:64
EcalPhiSymInfo::totHitsEE_
uint64_t totHitsEE_
Definition:
EcalPhiSymInfo.h:97
EcalPhiSymInfo::EcalPhiSymInfo
EcalPhiSymInfo(uint64_t hitsEB, uint64_t hitsEE, uint64_t nEvents, uint32_t nLumis, uint16_t fill, float delivLumi, float recLumi)
Definition:
EcalPhiSymInfo.h:32
EcalPhiSymInfo::maxMisEE_
float maxMisEE_
Definition:
EcalPhiSymInfo.h:107
WZElectronSkims53X_cff.max
max
Definition:
WZElectronSkims53X_cff.py:197
EcalPhiSymInfo::minMisEE_
float minMisEE_
Definition:
EcalPhiSymInfo.h:106
EcalPhiSymInfo::delivLumi
float delivLumi() const
Definition:
EcalPhiSymInfo.h:67
EcalPhiSymInfo::setMiscalibInfo
void setMiscalibInfo(const int &nmis, const float &minEB, const float &maxEB, const float &minEE, const float &maxEE)
Definition:
EcalPhiSymInfo.h:51
EcalPhiSymInfo::fillNumber_
uint16_t fillNumber_
Definition:
EcalPhiSymInfo.h:100
EcalPhiSymInfo::nLumis_
uint16_t nLumis_
Definition:
EcalPhiSymInfo.h:99
EcalPhiSymInfo::maxMisEE
float maxMisEE() const
Definition:
EcalPhiSymInfo.h:73
cms::cuda::assert
assert(be >=bs)
EcalPhiSymInfo::nMis
uint8_t nMis() const
Definition:
EcalPhiSymInfo.h:69
EcalPhiSymInfo::delivLumi_
float delivLumi_
Definition:
EcalPhiSymInfo.h:101
EcalPhiSymInfo::minMisEB
float minMisEB() const
Definition:
EcalPhiSymInfo.h:70
EcalPhiSymInfo::~EcalPhiSymInfo
~EcalPhiSymInfo()=default
EcalPhiSymInfo::recLumi
float recLumi() const
Definition:
EcalPhiSymInfo.h:68
EcalPhiSymFlatTableProducers_cfi.hitsEB
hitsEB
Definition:
EcalPhiSymFlatTableProducers_cfi.py:34
EcalPhiSymInfo::fillNumber
uint16_t fillNumber() const
Definition:
EcalPhiSymInfo.h:66
EcalPhiSymInfo
Definition:
EcalPhiSymInfo.h:15
EcalPhiSymInfo::totHitsEB_
uint64_t totHitsEB_
Definition:
EcalPhiSymInfo.h:96
EcalPhiSymFlatTableProducers_cfi.fill
fill
Definition:
EcalPhiSymFlatTableProducers_cfi.py:38
EcalPhiSymInfo::nLumis
uint16_t nLumis() const
Definition:
EcalPhiSymInfo.h:65
EcalPhiSymFlatTableProducers_cfi.hitsEE
hitsEE
Definition:
EcalPhiSymFlatTableProducers_cfi.py:35
EcalPhiSymInfo::minMisEB_
float minMisEB_
Definition:
EcalPhiSymInfo.h:104
EcalPhiSymInfo::operator+=
EcalPhiSymInfo & operator+=(const EcalPhiSymInfo &rhs)
Definition:
EcalPhiSymInfo.h:76
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:13
EcalPhiSymInfo::minMisEE
float minMisEE() const
Definition:
EcalPhiSymInfo.h:72
EcalPhiSymInfo::totHitsEB
uint64_t totHitsEB() const
Definition:
EcalPhiSymInfo.h:62
EcalPhiSymInfo::nEvents_
uint32_t nEvents_
Definition:
EcalPhiSymInfo.h:98
EcalPhiSymInfo::recLumi_
float recLumi_
Definition:
EcalPhiSymInfo.h:102
EcalPhiSymInfo::EcalPhiSymInfo
EcalPhiSymInfo()
Definition:
EcalPhiSymInfo.h:18
EcalPhiSymInfo::totHitsEE
uint64_t totHitsEE() const
Definition:
EcalPhiSymInfo.h:63
EcalPhiSymInfo::maxMisEB_
float maxMisEB_
Definition:
EcalPhiSymInfo.h:105
ALCARECOEcalPhiSym_cff.nmis
nmis
Definition:
ALCARECOEcalPhiSym_cff.py:27
EcalPhiSymInfo::totHits
uint64_t totHits() const
Definition:
EcalPhiSymInfo.h:61
Generated for CMSSW Reference Manual by
1.8.14