CMS 3D CMS Logo

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

#include <ElectronicsQuantity.h>

Inheritance diagram for hcaldqm::quantity::ElectronicsQuantity:
hcaldqm::quantity::Quantity hcaldqm::quantity::CrateQuantity hcaldqm::quantity::FEDQuantity

Public Member Functions

 ElectronicsQuantity ()
 
 ElectronicsQuantity (ElectronicsQuantityType type, bool isLog=false)
 
uint32_t getBin (HcalElectronicsId const &eid) override
 
std::vector< std::string > getLabels () override
 
int getValue (HcalElectronicsId const &eid) override
 
bool isCoordinate () override
 
ElectronicsQuantitymakeCopy () override
 
double max () override
 
double min () override
 
int nbins () override
 
QuantityType type () override
 
 ~ElectronicsQuantity () override
 
- Public Member Functions inherited from hcaldqm::quantity::Quantity
virtual uint32_t getBin (HcalDetId const &)
 
virtual uint32_t getBin (HcalTrigTowerDetId const &)
 
virtual uint32_t getBin (int)
 
virtual uint32_t getBin (double)
 
virtual int getValue (HcalDetId const &)
 
virtual int getValue (HcalTrigTowerDetId const &)
 
virtual int getValue (int x)
 
virtual double getValue (double x)
 
virtual bool isLog ()
 
virtual std::string name ()
 
 Quantity ()
 
 Quantity (std::string const &name, bool isLog)
 
virtual void setAxisType (AxisType at)
 
virtual void setBits (TH1 *o)
 
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

ElectronicsQuantityType _type
 
- Protected Attributes inherited from hcaldqm::quantity::Quantity
AxisType _axistype
 
bool _isLog
 
std::string _name
 
bool _showOverflow
 

Detailed Description

Definition at line 333 of file ElectronicsQuantity.h.

Constructor & Destructor Documentation

◆ ElectronicsQuantity() [1/2]

hcaldqm::quantity::ElectronicsQuantity::ElectronicsQuantity ( )
inline

Definition at line 335 of file ElectronicsQuantity.h.

Referenced by makeCopy().

335 {}

◆ ElectronicsQuantity() [2/2]

hcaldqm::quantity::ElectronicsQuantity::ElectronicsQuantity ( ElectronicsQuantityType  type,
bool  isLog = false 
)
inline

Definition at line 336 of file ElectronicsQuantity.h.

337  : Quantity(name_eid.at(type), isLog), _type(type) {}
virtual bool isLog()
Definition: Quantity.h:35
const std::map< ElectronicsQuantityType, std::string > name_eid

◆ ~ElectronicsQuantity()

hcaldqm::quantity::ElectronicsQuantity::~ElectronicsQuantity ( )
inlineoverride

Definition at line 338 of file ElectronicsQuantity.h.

338 {}

Member Function Documentation

◆ getBin()

uint32_t hcaldqm::quantity::ElectronicsQuantity::getBin ( HcalElectronicsId const &  eid)
inlineoverridevirtual

◆ getLabels()

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

Reimplemented from hcaldqm::quantity::Quantity.

Reimplemented in hcaldqm::quantity::CrateQuantity, and hcaldqm::quantity::FEDQuantity.

Definition at line 349 of file ElectronicsQuantity.h.

References _type, and hcaldqm::quantity::getLabels_functions_eid.

349 { return getLabels_functions_eid.at(_type)(); }
const std::map< ElectronicsQuantityType, getLabels_eid > getLabels_functions_eid

◆ getValue()

int hcaldqm::quantity::ElectronicsQuantity::getValue ( HcalElectronicsId const &  eid)
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Reimplemented in hcaldqm::quantity::CrateQuantity, and hcaldqm::quantity::FEDQuantity.

Definition at line 341 of file ElectronicsQuantity.h.

References _type, runTauDisplay::eid, and hcaldqm::quantity::getValue_functions_eid.

341 { return getValue_functions_eid.at(_type)(eid); }
const std::map< ElectronicsQuantityType, getValueType_eid > getValue_functions_eid

◆ isCoordinate()

bool hcaldqm::quantity::ElectronicsQuantity::isCoordinate ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 348 of file ElectronicsQuantity.h.

348 { return true; }

◆ makeCopy()

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

◆ max()

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

Reimplemented from hcaldqm::quantity::Quantity.

Reimplemented in hcaldqm::quantity::CrateQuantity, and hcaldqm::quantity::FEDQuantity.

Definition at line 347 of file ElectronicsQuantity.h.

References _type, and hcaldqm::quantity::max_eid.

347 { return max_eid.at(_type); }
const std::map< ElectronicsQuantityType, double > max_eid

◆ min()

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

Reimplemented from hcaldqm::quantity::Quantity.

Reimplemented in hcaldqm::quantity::CrateQuantity, and hcaldqm::quantity::FEDQuantity.

Definition at line 346 of file ElectronicsQuantity.h.

References _type, and hcaldqm::quantity::min_eid.

346 { return min_eid.at(_type); }
const std::map< ElectronicsQuantityType, double > min_eid

◆ nbins()

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

Reimplemented from hcaldqm::quantity::Quantity.

Reimplemented in hcaldqm::quantity::CrateQuantity, and hcaldqm::quantity::FEDQuantity.

Definition at line 345 of file ElectronicsQuantity.h.

References _type, and hcaldqm::quantity::nbins_eid.

345 { return nbins_eid.at(_type); }
const std::map< ElectronicsQuantityType, double > nbins_eid

◆ type()

QuantityType hcaldqm::quantity::ElectronicsQuantity::type ( )
inlineoverridevirtual

Member Data Documentation

◆ _type

ElectronicsQuantityType hcaldqm::quantity::ElectronicsQuantity::_type
protected