CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::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::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),
35  totHitsEE_(hitsEE),
37  nLumis_(nLumis),
41  nMis_(0),
42  minMisEB_(0),
43  maxMisEB_(0),
44  minMisEE_(0),
45  maxMisEE_(0) {}
uint64_t totHitsEE_
uint16_t fillNumber_
uint16_t nLumis_
float recLumi() const
uint64_t totHitsEB_
uint32_t nEvents() const
void fill(std::map< std::string, TH1 * > &h, const std::string &s, double x)
uint32_t nEvents_
float delivLumi() const
uint16_t nLumis() const
EcalPhiSymInfo::~EcalPhiSymInfo ( )
default

Member Function Documentation

float EcalPhiSymInfo::delivLumi ( ) const
inline

Definition at line 67 of file EcalPhiSymInfo.h.

References delivLumi_.

Referenced by operator+=().

67 { return delivLumi_; };
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_
float EcalPhiSymInfo::maxMisEB ( ) const
inline

Definition at line 71 of file EcalPhiSymInfo.h.

References maxMisEB_.

71 { return maxMisEB_; };
float EcalPhiSymInfo::maxMisEE ( ) const
inline

Definition at line 73 of file EcalPhiSymInfo.h.

References maxMisEE_.

73 { return maxMisEE_; };
float EcalPhiSymInfo::minMisEB ( ) const
inline

Definition at line 70 of file EcalPhiSymInfo.h.

References minMisEB_.

70 { return minMisEB_; };
float EcalPhiSymInfo::minMisEE ( ) const
inline

Definition at line 72 of file EcalPhiSymInfo.h.

References minMisEE_.

72 { return minMisEE_; };
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_
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_
uint8_t EcalPhiSymInfo::nMis ( ) const
inline

Definition at line 69 of file EcalPhiSymInfo.h.

References nMis_.

69 { return nMis_; };
EcalPhiSymInfo& EcalPhiSymInfo::operator+= ( const EcalPhiSymInfo rhs)
inline

Definition at line 76 of file EcalPhiSymInfo.h.

References cms::cuda::assert(), delivLumi(), delivLumi_, fillNumber(), fillNumber_, SiStripPI::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  }
uint64_t totHitsEB() const
uint64_t totHitsEE_
uint16_t fillNumber_
uint16_t nLumis_
assert(be >=bs)
uint64_t totHitsEE() const
float recLumi() const
uint64_t totHitsEB_
uint32_t nEvents() const
uint32_t nEvents_
float delivLumi() const
uint16_t nLumis() const
uint16_t fillNumber() const
float EcalPhiSymInfo::recLumi ( ) const
inline

Definition at line 68 of file EcalPhiSymInfo.h.

References recLumi_.

Referenced by operator+=().

68 { return recLumi_; };
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  };
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_
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_
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

float EcalPhiSymInfo::delivLumi_
private

Definition at line 101 of file EcalPhiSymInfo.h.

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

uint16_t EcalPhiSymInfo::fillNumber_
private

Definition at line 100 of file EcalPhiSymInfo.h.

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

float EcalPhiSymInfo::maxMisEB_
private

Definition at line 105 of file EcalPhiSymInfo.h.

Referenced by maxMisEB(), and setMiscalibInfo().

float EcalPhiSymInfo::maxMisEE_
private

Definition at line 107 of file EcalPhiSymInfo.h.

Referenced by maxMisEE(), and setMiscalibInfo().

float EcalPhiSymInfo::minMisEB_
private

Definition at line 104 of file EcalPhiSymInfo.h.

Referenced by minMisEB(), and setMiscalibInfo().

float EcalPhiSymInfo::minMisEE_
private

Definition at line 106 of file EcalPhiSymInfo.h.

Referenced by minMisEE(), and setMiscalibInfo().

uint32_t EcalPhiSymInfo::nEvents_
private

Definition at line 98 of file EcalPhiSymInfo.h.

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

uint16_t EcalPhiSymInfo::nLumis_
private

Definition at line 99 of file EcalPhiSymInfo.h.

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

uint8_t EcalPhiSymInfo::nMis_
private

Definition at line 103 of file EcalPhiSymInfo.h.

Referenced by nMis(), and setMiscalibInfo().

float EcalPhiSymInfo::recLumi_
private

Definition at line 102 of file EcalPhiSymInfo.h.

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

uint64_t EcalPhiSymInfo::totHitsEB_
private

Definition at line 96 of file EcalPhiSymInfo.h.

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

uint64_t EcalPhiSymInfo::totHitsEE_
private

Definition at line 97 of file EcalPhiSymInfo.h.

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