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

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

Definition at line 335 of file ElectronicsQuantity.h.

Referenced by makeCopy().

335 {}
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) {}
type
Definition: HCALResponse.h:21
virtual bool isLog()
Definition: Quantity.h:35
const std::map< ElectronicsQuantityType, std::string > name_eid
hcaldqm::quantity::ElectronicsQuantity::~ElectronicsQuantity ( )
inlineoverride

Definition at line 338 of file ElectronicsQuantity.h.

338 {}

Member Function Documentation

uint32_t hcaldqm::quantity::ElectronicsQuantity::getBin ( HcalElectronicsId const &  eid)
inlineoverridevirtual
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.

Referenced by hcaldqm::quantity::FEDQuantity::max(), and hcaldqm::quantity::CrateQuantity::max().

349 { return getLabels_functions_eid.at(_type)(); }
const std::map< ElectronicsQuantityType, getLabels_eid > getLabels_functions_eid
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, and runTauDisplay::eid.

Referenced by hcaldqm::quantity::CrateQuantity::~CrateQuantity(), and hcaldqm::quantity::FEDQuantity::~FEDQuantity().

341 { return getValue_functions_eid.at(_type)(eid); }
const std::map< ElectronicsQuantityType, getValueType_eid > getValue_functions_eid
bool hcaldqm::quantity::ElectronicsQuantity::isCoordinate ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 348 of file ElectronicsQuantity.h.

348 { return true; }
ElectronicsQuantity* hcaldqm::quantity::ElectronicsQuantity::makeCopy ( )
inlineoverridevirtual
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.

347 { return max_eid.at(_type); }
const std::map< ElectronicsQuantityType, double > max_eid
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.

346 { return min_eid.at(_type); }
const std::map< ElectronicsQuantityType, double > min_eid
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.

345 { return nbins_eid.at(_type); }
const std::map< ElectronicsQuantityType, double > nbins_eid
QuantityType hcaldqm::quantity::ElectronicsQuantity::type ( )
inlineoverridevirtual

Member Data Documentation

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