CMS 3D CMS Logo

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

#include <ValueQuantity.h>

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

Public Member Functions

uint32_t getBin (int l) override
 
int getValue (int l) override
 
 LumiSection ()
 
 LumiSection (int n)
 
LumiSectionmakeCopy () override
 
double max () override
 
double min () override
 
std::string name () override
 
int nbins () override
 
void setMax (double x) override
 
 ~LumiSection () 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 _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

Definition at line 390 of file ValueQuantity.h.

Constructor & Destructor Documentation

◆ LumiSection() [1/2]

hcaldqm::quantity::LumiSection::LumiSection ( )
inline

Definition at line 392 of file ValueQuantity.h.

392 : ValueQuantity(fLS), _n(4000) {}

Referenced by makeCopy().

◆ LumiSection() [2/2]

hcaldqm::quantity::LumiSection::LumiSection ( int  n)
inline

Definition at line 393 of file ValueQuantity.h.

393 : ValueQuantity(fLS), _n(n) {}

◆ ~LumiSection()

hcaldqm::quantity::LumiSection::~LumiSection ( )
inlineoverride

Definition at line 394 of file ValueQuantity.h.

394 {}

Member Function Documentation

◆ getBin()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 403 of file ValueQuantity.h.

403 { return getValue(l); }

References getValue(), and cmsLHEtoEOSManager::l.

Referenced by BTagWeightCalculator.BTagWeightCalculator::calcJetWeightImpl().

◆ getValue()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 402 of file ValueQuantity.h.

402 { return l; }

References cmsLHEtoEOSManager::l.

Referenced by getBin().

◆ makeCopy()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 396 of file ValueQuantity.h.

396 { return new LumiSection(_n); }

References _n, and LumiSection().

◆ max()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 401 of file ValueQuantity.h.

401 { return _n + 1; }

References _n.

◆ min()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 400 of file ValueQuantity.h.

400 { return 1; }

◆ name()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 398 of file ValueQuantity.h.

398 { return "LS"; }

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

◆ nbins()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 399 of file ValueQuantity.h.

399 { return _n; }

References _n.

◆ setMax()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 404 of file ValueQuantity.h.

404 { _n = x; }

References _n.

Member Data Documentation

◆ _n

int hcaldqm::quantity::LumiSection::_n
protected

Definition at line 407 of file ValueQuantity.h.

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

hcaldqm::quantity::LumiSection::LumiSection
LumiSection()
Definition: ValueQuantity.h:392
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
DDAxes::x
hcaldqm::quantity::LumiSection::getValue
int getValue(int l) override
Definition: ValueQuantity.h:402
hcaldqm::quantity::ValueQuantity::ValueQuantity
ValueQuantity()
Definition: ValueQuantity.h:311
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:193
hcaldqm::quantity::fLS
Definition: ValueQuantity.h:23
hcaldqm::quantity::LumiSection::_n
int _n
Definition: ValueQuantity.h:407