CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EcalPhiSymInfo Class Reference

#include <EcalPhiSymInfo.h>

Public Member Functions

float delivLumi () const
 
 EcalPhiSymInfo ()
 
 EcalPhiSymInfo (uint64_t hitsEB, uint64_t hitsEE, uint64_t nEvents, uint32_t nLumis, uint16_t fill, float delivLumi, float recLumi)
 
uint16_t fillNumber () const
 
float maxMisEB () const
 
float maxMisEE () const
 
float minMisEB () const
 
float minMisEE () const
 
uint32_t nEvents () const
 
uint16_t nLumis () const
 
uint8_t nMis () const
 
EcalPhiSymInfooperator+= (const EcalPhiSymInfo &rhs)
 
float recLumi () const
 
void setMiscalibInfo (const int &nmis, const float &minEB, const float &maxEB, const float &minEE, const float &maxEE)
 
uint64_t totHits () const
 
uint64_t totHitsEB () const
 
uint64_t totHitsEE () const
 
 ~EcalPhiSymInfo ()=default
 

Private Attributes

float delivLumi_
 
uint16_t fillNumber_
 
float maxMisEB_
 
float maxMisEE_
 
float minMisEB_
 
float minMisEE_
 
uint32_t nEvents_
 
uint16_t nLumis_
 
uint8_t nMis_
 
float recLumi_
 
uint64_t totHitsEB_
 
uint64_t totHitsEE_
 

Detailed Description

EcalPhiSym calibration lumi/run based information

Original Author: Simone Pigazzini (2022)

Definition at line 15 of file EcalPhiSymInfo.h.

Constructor & Destructor Documentation

◆ EcalPhiSymInfo() [1/2]

EcalPhiSymInfo::EcalPhiSymInfo ( )
inline

Definition at line 18 of file EcalPhiSymInfo.h.

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) {}
uint64_t totHitsEE_
uint16_t fillNumber_
uint16_t nLumis_
uint64_t totHitsEB_
uint32_t nEvents_

◆ EcalPhiSymInfo() [2/2]

EcalPhiSymInfo::EcalPhiSymInfo ( uint64_t  hitsEB,
uint64_t  hitsEE,
uint64_t  nEvents,
uint32_t  nLumis,
uint16_t  fill,
float  delivLumi,
float  recLumi 
)
inline

Definition at line 32 of file EcalPhiSymInfo.h.

34  : totHitsEB_(hitsEB),
37  nLumis_(nLumis),
41  nMis_(0),
42  minMisEB_(0),
43  maxMisEB_(0),
44  minMisEE_(0),
45  maxMisEE_(0) {}
uint32_t nEvents() const
uint64_t totHitsEE_
float delivLumi() const
uint16_t fillNumber_
uint16_t nLumis_
float recLumi() const
uint64_t totHitsEB_
uint16_t nLumis() const
uint32_t nEvents_

◆ ~EcalPhiSymInfo()

EcalPhiSymInfo::~EcalPhiSymInfo ( )
default

Member Function Documentation

◆ delivLumi()

float EcalPhiSymInfo::delivLumi ( ) const
inline

Definition at line 67 of file EcalPhiSymInfo.h.

References delivLumi_.

Referenced by operator+=().

67 { return delivLumi_; };

◆ fillNumber()

uint16_t EcalPhiSymInfo::fillNumber ( ) const
inline

Definition at line 66 of file EcalPhiSymInfo.h.

References fillNumber_.

Referenced by operator+=().

66 { return fillNumber_; };
uint16_t fillNumber_

◆ maxMisEB()

float EcalPhiSymInfo::maxMisEB ( ) const
inline

Definition at line 71 of file EcalPhiSymInfo.h.

References maxMisEB_.

71 { return maxMisEB_; };

◆ maxMisEE()

float EcalPhiSymInfo::maxMisEE ( ) const
inline

Definition at line 73 of file EcalPhiSymInfo.h.

References maxMisEE_.

73 { return maxMisEE_; };

◆ minMisEB()

float EcalPhiSymInfo::minMisEB ( ) const
inline

Definition at line 70 of file EcalPhiSymInfo.h.

References minMisEB_.

70 { return minMisEB_; };

◆ minMisEE()

float EcalPhiSymInfo::minMisEE ( ) const
inline

Definition at line 72 of file EcalPhiSymInfo.h.

References minMisEE_.

72 { return minMisEE_; };

◆ nEvents()

uint32_t EcalPhiSymInfo::nEvents ( ) const
inline

Definition at line 64 of file EcalPhiSymInfo.h.

References nEvents_.

Referenced by operator+=().

64 { return nEvents_; };
uint32_t nEvents_

◆ nLumis()

uint16_t EcalPhiSymInfo::nLumis ( ) const
inline

Definition at line 65 of file EcalPhiSymInfo.h.

References nLumis_.

Referenced by operator+=().

65 { return nLumis_; };
uint16_t nLumis_

◆ nMis()

uint8_t EcalPhiSymInfo::nMis ( ) const
inline

Definition at line 69 of file EcalPhiSymInfo.h.

References nMis_.

69 { return nMis_; };

◆ operator+=()

EcalPhiSymInfo& EcalPhiSymInfo::operator+= ( const EcalPhiSymInfo rhs)
inline

Definition at line 76 of file EcalPhiSymInfo.h.

References cms::cuda::assert(), delivLumi(), delivLumi_, fillNumber(), fillNumber_, WZElectronSkims53X_cff::max, nEvents(), nEvents_, nLumis(), nLumis_, recLumi(), recLumi_, totHitsEB(), totHitsEB_, totHitsEE(), and totHitsEE_.

76  {
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
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  }
uint32_t nEvents() const
uint64_t totHitsEE_
float delivLumi() const
uint16_t fillNumber_
uint16_t nLumis_
assert(be >=bs)
float recLumi() const
uint16_t fillNumber() const
uint64_t totHitsEB_
uint16_t nLumis() const
uint64_t totHitsEB() const
uint32_t nEvents_
uint64_t totHitsEE() const

◆ recLumi()

float EcalPhiSymInfo::recLumi ( ) const
inline

Definition at line 68 of file EcalPhiSymInfo.h.

References recLumi_.

Referenced by operator+=().

68 { return recLumi_; };

◆ setMiscalibInfo()

void EcalPhiSymInfo::setMiscalibInfo ( const int &  nmis,
const float &  minEB,
const float &  maxEB,
const float &  minEE,
const float &  maxEE 
)
inline

Definition at line 51 of file EcalPhiSymInfo.h.

References maxMisEB_, maxMisEE_, minMisEB_, minMisEE_, ALCARECOEcalPhiSym_cff::nmis, and nMis_.

52  {
53  nMis_ = nmis;
54  minMisEB_ = minEB;
55  maxMisEB_ = maxEB;
56  minMisEE_ = minEE;
57  maxMisEE_ = maxEE;
58  };

◆ totHits()

uint64_t EcalPhiSymInfo::totHits ( ) const
inline

Definition at line 61 of file EcalPhiSymInfo.h.

References totHitsEB_, and totHitsEE_.

61 { return totHitsEB_ + totHitsEE_; };
uint64_t totHitsEE_
uint64_t totHitsEB_

◆ totHitsEB()

uint64_t EcalPhiSymInfo::totHitsEB ( ) const
inline

Definition at line 62 of file EcalPhiSymInfo.h.

References totHitsEB_.

Referenced by operator+=().

62 { return totHitsEB_; };
uint64_t totHitsEB_

◆ totHitsEE()

uint64_t EcalPhiSymInfo::totHitsEE ( ) const
inline

Definition at line 63 of file EcalPhiSymInfo.h.

References totHitsEE_.

Referenced by operator+=().

63 { return totHitsEE_; };
uint64_t totHitsEE_

Member Data Documentation

◆ delivLumi_

float EcalPhiSymInfo::delivLumi_
private

Definition at line 101 of file EcalPhiSymInfo.h.

Referenced by delivLumi(), and operator+=().

◆ fillNumber_

uint16_t EcalPhiSymInfo::fillNumber_
private

Definition at line 100 of file EcalPhiSymInfo.h.

Referenced by fillNumber(), and operator+=().

◆ maxMisEB_

float EcalPhiSymInfo::maxMisEB_
private

Definition at line 105 of file EcalPhiSymInfo.h.

Referenced by maxMisEB(), and setMiscalibInfo().

◆ maxMisEE_

float EcalPhiSymInfo::maxMisEE_
private

Definition at line 107 of file EcalPhiSymInfo.h.

Referenced by maxMisEE(), and setMiscalibInfo().

◆ minMisEB_

float EcalPhiSymInfo::minMisEB_
private

Definition at line 104 of file EcalPhiSymInfo.h.

Referenced by minMisEB(), and setMiscalibInfo().

◆ minMisEE_

float EcalPhiSymInfo::minMisEE_
private

Definition at line 106 of file EcalPhiSymInfo.h.

Referenced by minMisEE(), and setMiscalibInfo().

◆ nEvents_

uint32_t EcalPhiSymInfo::nEvents_
private

Definition at line 98 of file EcalPhiSymInfo.h.

Referenced by nEvents(), and operator+=().

◆ nLumis_

uint16_t EcalPhiSymInfo::nLumis_
private

Definition at line 99 of file EcalPhiSymInfo.h.

Referenced by nLumis(), and operator+=().

◆ nMis_

uint8_t EcalPhiSymInfo::nMis_
private

Definition at line 103 of file EcalPhiSymInfo.h.

Referenced by nMis(), and setMiscalibInfo().

◆ recLumi_

float EcalPhiSymInfo::recLumi_
private

Definition at line 102 of file EcalPhiSymInfo.h.

Referenced by operator+=(), and recLumi().

◆ totHitsEB_

uint64_t EcalPhiSymInfo::totHitsEB_
private

Definition at line 96 of file EcalPhiSymInfo.h.

Referenced by operator+=(), totHits(), and totHitsEB().

◆ totHitsEE_

uint64_t EcalPhiSymInfo::totHitsEE_
private

Definition at line 97 of file EcalPhiSymInfo.h.

Referenced by operator+=(), totHits(), and totHitsEE().