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 int wofnbins ()
 
virtual ~Quantity ()
 

Protected Attributes

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

Detailed Description

Definition at line 338 of file ElectronicsQuantity.h.

Constructor & Destructor Documentation

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

Definition at line 341 of file ElectronicsQuantity.h.

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

Definition at line 342 of file ElectronicsQuantity.h.

343  :
345  {}
type
Definition: HCALResponse.h:21
virtual bool isLog()
Definition: Quantity.h:48
const std::map< ElectronicsQuantityType, std::string > name_eid
hcaldqm::quantity::ElectronicsQuantity::~ElectronicsQuantity ( )
inlineoverride

Definition at line 346 of file ElectronicsQuantity.h.

346 {}

Member Function Documentation

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

Reimplemented from hcaldqm::quantity::Quantity.

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

Definition at line 352 of file ElectronicsQuantity.h.

References runTauDisplay::eid.

Referenced by BTagWeightCalculator.BTagWeightCalculator::calcJetWeightImpl().

353  {return getBin_functions_eid.at(_type)(eid);}
const std::map< ElectronicsQuantityType, getBinType_eid > getBin_functions_eid
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 360 of file ElectronicsQuantity.h.

361  {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 350 of file ElectronicsQuantity.h.

References runTauDisplay::eid.

351  {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 359 of file ElectronicsQuantity.h.

359 {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 358 of file ElectronicsQuantity.h.

358 {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 357 of file ElectronicsQuantity.h.

357 {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 356 of file ElectronicsQuantity.h.

356 {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