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 (double)
 
virtual uint32_t getBin (HcalDetId const &)
 
virtual uint32_t getBin (HcalTrigTowerDetId const &)
 
virtual uint32_t getBin (int)
 
virtual double getValue (double x)
 
virtual int getValue (HcalDetId const &)
 
virtual int getValue (HcalTrigTowerDetId const &)
 
virtual int getValue (int 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.

335 {}

Referenced by makeCopy().

◆ 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) {}

◆ ~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

◆ getValue()

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

◆ 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.

347 { return max_eid.at(_type); }

References _type, and hcaldqm::quantity::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.

346 { return min_eid.at(_type); }

References _type, and hcaldqm::quantity::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.

345 { return nbins_eid.at(_type); }

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

◆ type()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 344 of file ElectronicsQuantity.h.

344 { return fElectronicsQuantity; }

References hcaldqm::quantity::fElectronicsQuantity.

Member Data Documentation

◆ _type

ElectronicsQuantityType hcaldqm::quantity::ElectronicsQuantity::_type
protected
hcaldqm::quantity::name_eid
const std::map< ElectronicsQuantityType, std::string > name_eid
Definition: ElectronicsQuantity.h:236
hcaldqm::quantity::fElectronicsQuantity
Definition: Quantity.h:17
hcaldqm::quantity::getValue_functions_eid
const std::map< ElectronicsQuantityType, getValueType_eid > getValue_functions_eid
Definition: ElectronicsQuantity.h:140
hcaldqm::quantity::Quantity::isLog
virtual bool isLog()
Definition: Quantity.h:35
hcaldqm::quantity::min_eid
const std::map< ElectronicsQuantityType, double > min_eid
Definition: ElectronicsQuantity.h:260
hcaldqm::quantity::nbins_eid
const std::map< ElectronicsQuantityType, double > nbins_eid
Definition: ElectronicsQuantity.h:308
hcaldqm::quantity::ElectronicsQuantity::ElectronicsQuantity
ElectronicsQuantity()
Definition: ElectronicsQuantity.h:335
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
hcaldqm::quantity::Quantity::Quantity
Quantity()
Definition: Quantity.h:29
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
hcaldqm::quantity::ElectronicsQuantity::_type
ElectronicsQuantityType _type
Definition: ElectronicsQuantity.h:352
hcaldqm::quantity::getBin_functions_eid
const std::map< ElectronicsQuantityType, getBinType_eid > getBin_functions_eid
Definition: ElectronicsQuantity.h:164
hcaldqm::quantity::Quantity::_isLog
bool _isLog
Definition: Quantity.h:72
hcaldqm::quantity::max_eid
const std::map< ElectronicsQuantityType, double > max_eid
Definition: ElectronicsQuantity.h:284
hcaldqm::quantity::getLabels_functions_eid
const std::map< ElectronicsQuantityType, getLabels_eid > getLabels_functions_eid
Definition: ElectronicsQuantity.h:212