CMS 3D CMS Logo

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

#include <ValueQuantity.h>

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

Public Member Functions

 EventNumber ()
 
 EventNumber (int nevents)
 
double max () override
 
double min () override
 
std::string name () override
 
int nbins () override
 
 ~EventNumber () override
 
- Public Member Functions inherited from hcaldqm::quantity::ValueQuantity
double getValue (double x) override
 
int getValue (int x) override
 
ValueQuantitymakeCopy () 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 uint32_t getBin (int)
 
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 setMax (double)
 
virtual void setMin (double)
 
virtual void setNbins (int)
 
virtual void showOverflow (bool showOverflow)
 
virtual int wofnbins ()
 
virtual ~Quantity ()
 

Protected Attributes

int _nevents
 
- 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 483 of file ValueQuantity.h.

Constructor & Destructor Documentation

◆ EventNumber() [1/2]

hcaldqm::quantity::EventNumber::EventNumber ( )
inline

Definition at line 485 of file ValueQuantity.h.

485 {}

◆ EventNumber() [2/2]

hcaldqm::quantity::EventNumber::EventNumber ( int  nevents)
inline

Definition at line 486 of file ValueQuantity.h.

◆ ~EventNumber()

hcaldqm::quantity::EventNumber::~EventNumber ( )
inlineoverride

Definition at line 487 of file ValueQuantity.h.

487 {}

Member Function Documentation

◆ max()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 492 of file ValueQuantity.h.

492 { return _nevents + 0.5; }

References _nevents.

◆ min()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 491 of file ValueQuantity.h.

491 { return 0.5; }

◆ name()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 489 of file ValueQuantity.h.

489 { return "Event"; }

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

◆ nbins()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 490 of file ValueQuantity.h.

490 { return _nevents; }

References _nevents.

Member Data Documentation

◆ _nevents

int hcaldqm::quantity::EventNumber::_nevents
protected

Definition at line 495 of file ValueQuantity.h.

Referenced by max(), and nbins().

cmsHarvester.nevents
nevents
Definition: cmsHarvester.py:3176
hcaldqm::quantity::EventNumber::_nevents
int _nevents
Definition: ValueQuantity.h:495
hcaldqm::quantity::fN
Definition: ValueQuantity.h:11
hcaldqm::quantity::ValueQuantity::ValueQuantity
ValueQuantity()
Definition: ValueQuantity.h:321