CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
hcaldqm::quantity::LumiSectionCoarse Class Reference

#include <ValueQuantity.h>

Inheritance diagram for hcaldqm::quantity::LumiSectionCoarse:
hcaldqm::quantity::ValueQuantity hcaldqm::quantity::Quantity

Public Member Functions

uint32_t getBin (int l) override
 
int getValue (int l) override
 
 LumiSectionCoarse ()
 
 LumiSectionCoarse (int n, int binning)
 
LumiSectionCoarsemakeCopy () override
 
double max () override
 
double min () override
 
std::string name () override
 
int nbins () override
 
void setMax (double x) override
 
 ~LumiSectionCoarse () override
 
- Public Member Functions inherited from hcaldqm::quantity::ValueQuantity
double getValue (double x) override
 
void setBits (TH1 *o) override
 
virtual void setLS (TH1 *o)
 
QuantityType type () override
 
 ValueQuantity ()
 
 ValueQuantity (ValueQuantityType type, bool isLog=false)
 
 ~ValueQuantity () override
 
- Public Member Functions inherited from hcaldqm::quantity::Quantity
virtual uint32_t getBin (double)
 
virtual uint32_t getBin (HcalDetId const &)
 
virtual uint32_t getBin (HcalElectronicsId const &)
 
virtual uint32_t getBin (HcalTrigTowerDetId const &)
 
virtual std::vector< std::string > getLabels ()
 
virtual int getValue (HcalDetId const &)
 
virtual int getValue (HcalElectronicsId const &)
 
virtual int getValue (HcalTrigTowerDetId const &)
 
virtual bool isCoordinate ()
 
virtual bool isLog ()
 
 Quantity ()
 
 Quantity (std::string const &name, bool isLog)
 
virtual void setAxisType (AxisType at)
 
virtual void setLog (TH1 *o)
 
virtual void setMin (double)
 
virtual void setNbins (int)
 
virtual void showOverflow (bool showOverflow)
 
virtual int wofnbins ()
 
virtual ~Quantity ()
 

Protected Attributes

int _binning
 
int _n
 
- Protected Attributes inherited from hcaldqm::quantity::ValueQuantity
ValueQuantityType _type
 
- Protected Attributes inherited from hcaldqm::quantity::Quantity
AxisType _axistype
 
bool _isLog
 
std::string _name
 
bool _showOverflow
 

Detailed Description

Coarse LumiSection axis. Specify binning (default=10 LS)

Definition at line 423 of file ValueQuantity.h.

Constructor & Destructor Documentation

◆ LumiSectionCoarse() [1/2]

hcaldqm::quantity::LumiSectionCoarse::LumiSectionCoarse ( )
inline

Definition at line 425 of file ValueQuantity.h.

425 : ValueQuantity(fLS), _n(4000), _binning(10) {}

Referenced by makeCopy().

◆ LumiSectionCoarse() [2/2]

hcaldqm::quantity::LumiSectionCoarse::LumiSectionCoarse ( int  n,
int  binning 
)
inline

Definition at line 426 of file ValueQuantity.h.

◆ ~LumiSectionCoarse()

hcaldqm::quantity::LumiSectionCoarse::~LumiSectionCoarse ( )
inlineoverride

Definition at line 427 of file ValueQuantity.h.

427 {}

Member Function Documentation

◆ getBin()

uint32_t hcaldqm::quantity::LumiSectionCoarse::getBin ( int  l)
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 436 of file ValueQuantity.h.

436 { return (l + _binning - 1) / _binning; }

References _binning, and cmsLHEtoEOSManager::l.

Referenced by BTagWeightCalculator.BTagWeightCalculator::calcJetWeightImpl().

◆ getValue()

int hcaldqm::quantity::LumiSectionCoarse::getValue ( int  l)
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 435 of file ValueQuantity.h.

435 { return l; }

References cmsLHEtoEOSManager::l.

◆ makeCopy()

LumiSectionCoarse* hcaldqm::quantity::LumiSectionCoarse::makeCopy ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 429 of file ValueQuantity.h.

429 { return new LumiSectionCoarse(_n, _binning); }

References _binning, _n, and LumiSectionCoarse().

◆ max()

double hcaldqm::quantity::LumiSectionCoarse::max ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 434 of file ValueQuantity.h.

434 { return _n + 1; }

References _n.

◆ min()

double hcaldqm::quantity::LumiSectionCoarse::min ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 433 of file ValueQuantity.h.

433 { return 1; }

◆ name()

std::string hcaldqm::quantity::LumiSectionCoarse::name ( void  )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 431 of file ValueQuantity.h.

431 { return "LS"; }

Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().

◆ nbins()

int hcaldqm::quantity::LumiSectionCoarse::nbins ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 432 of file ValueQuantity.h.

432 { return (_n + _binning - 1) / _binning; }

References _binning, and _n.

◆ setMax()

void hcaldqm::quantity::LumiSectionCoarse::setMax ( double  x)
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 437 of file ValueQuantity.h.

437 { _n = x; }

References _n.

Member Data Documentation

◆ _binning

int hcaldqm::quantity::LumiSectionCoarse::_binning
protected

Definition at line 441 of file ValueQuantity.h.

Referenced by getBin(), makeCopy(), and nbins().

◆ _n

int hcaldqm::quantity::LumiSectionCoarse::_n
protected

Definition at line 440 of file ValueQuantity.h.

Referenced by makeCopy(), max(), nbins(), and setMax().

hcaldqm::quantity::LumiSectionCoarse::_binning
int _binning
Definition: ValueQuantity.h:441
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
hcaldqm::quantity::LumiSectionCoarse::_n
int _n
Definition: ValueQuantity.h:440
DDAxes::x
hcaldqm::quantity::LumiSectionCoarse::LumiSectionCoarse
LumiSectionCoarse()
Definition: ValueQuantity.h:425
listHistos.binning
binning
Definition: listHistos.py:43
hcaldqm::quantity::ValueQuantity::ValueQuantity
ValueQuantity()
Definition: ValueQuantity.h:321
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
hcaldqm::quantity::fLS
Definition: ValueQuantity.h:23