CMS 3D CMS Logo

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

#include <ValueQuantity.h>

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

Public Member Functions

 FlagQuantity ()
 
 FlagQuantity (std::vector< flag::Flag > const &flags)
 
uint32_t getBin (int f) override
 
std::vector< std::string > getLabels () override
 
int getValue (int f) override
 
FlagQuantitymakeCopy () override
 
double max () override
 
double min () override
 
std::string name () override
 
int nbins () override
 
 ~FlagQuantity () 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 (HcalDetId const &)
 
virtual uint32_t getBin (HcalElectronicsId const &)
 
virtual uint32_t getBin (HcalTrigTowerDetId const &)
 
virtual uint32_t getBin (double)
 
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

std::vector< flag::Flag_flags
 
- 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 394 of file ValueQuantity.h.

Constructor & Destructor Documentation

◆ FlagQuantity() [1/2]

hcaldqm::quantity::FlagQuantity::FlagQuantity ( )
inline

Definition at line 396 of file ValueQuantity.h.

Referenced by makeCopy().

396 {}

◆ FlagQuantity() [2/2]

hcaldqm::quantity::FlagQuantity::FlagQuantity ( std::vector< flag::Flag > const &  flags)
inline

Definition at line 397 of file ValueQuantity.h.

397 : _flags(flags) {}
std::vector< flag::Flag > _flags

◆ ~FlagQuantity()

hcaldqm::quantity::FlagQuantity::~FlagQuantity ( )
inlineoverride

Definition at line 398 of file ValueQuantity.h.

398 {}

Member Function Documentation

◆ getBin()

uint32_t hcaldqm::quantity::FlagQuantity::getBin ( int  f)
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 407 of file ValueQuantity.h.

References f.

Referenced by BTagWeightCalculator.BTagWeightCalculator::calcJetWeightImpl().

407 { return f + 1; }
double f[11][100]

◆ getLabels()

std::vector<std::string> hcaldqm::quantity::FlagQuantity::getLabels ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 408 of file ValueQuantity.h.

References _flags, and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it.

408  {
409  std::vector<std::string> vnames;
410  for (std::vector<flag::Flag>::const_iterator it = _flags.begin(); it != _flags.end(); ++it)
411  vnames.push_back(it->_name);
412 
413  return vnames;
414  }
std::vector< flag::Flag > _flags

◆ getValue()

int hcaldqm::quantity::FlagQuantity::getValue ( int  f)
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 406 of file ValueQuantity.h.

References f.

406 { return f; }
double f[11][100]

◆ makeCopy()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 400 of file ValueQuantity.h.

References _flags, and FlagQuantity().

400 { return new FlagQuantity(_flags); }
std::vector< flag::Flag > _flags

◆ max()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 405 of file ValueQuantity.h.

References _flags.

405 { return _flags.size(); }
std::vector< flag::Flag > _flags

◆ min()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 404 of file ValueQuantity.h.

404 { return 0; }

◆ name()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 402 of file ValueQuantity.h.

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

402 { return "Flag"; }

◆ nbins()

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

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 403 of file ValueQuantity.h.

References _flags.

403 { return _flags.size(); }
std::vector< flag::Flag > _flags

Member Data Documentation

◆ _flags

std::vector<flag::Flag> hcaldqm::quantity::FlagQuantity::_flags
protected

Definition at line 417 of file ValueQuantity.h.

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