CMS 3D CMS Logo

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

#include <TrigTowerQuantity.h>

Inheritance diagram for hcaldqm::quantity::TrigTowerQuantity:
hcaldqm::quantity::Quantity

Public Member Functions

uint32_t getBin (HcalTrigTowerDetId const &tid) override
 
std::vector< std::string > getLabels () override
 
int getValue (HcalTrigTowerDetId const &tid) override
 
bool isCoordinate () override
 
TrigTowerQuantitymakeCopy () override
 
double max () override
 
double min () override
 
int nbins () override
 
 TrigTowerQuantity ()
 
 TrigTowerQuantity (TrigTowerQuantityType type, bool isLog=false)
 
QuantityType type () override
 
 ~TrigTowerQuantity () override
 
- Public Member Functions inherited from hcaldqm::quantity::Quantity
virtual uint32_t getBin (double)
 
virtual uint32_t getBin (HcalDetId const &)
 
virtual uint32_t getBin (HcalElectronicsId const &)
 
virtual uint32_t getBin (int)
 
virtual double getValue (double x)
 
virtual int getValue (HcalDetId const &)
 
virtual int getValue (HcalElectronicsId 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

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

Detailed Description

Definition at line 70 of file TrigTowerQuantity.h.

Constructor & Destructor Documentation

◆ TrigTowerQuantity() [1/2]

hcaldqm::quantity::TrigTowerQuantity::TrigTowerQuantity ( )
inline

Definition at line 72 of file TrigTowerQuantity.h.

72 {}

Referenced by makeCopy().

◆ TrigTowerQuantity() [2/2]

hcaldqm::quantity::TrigTowerQuantity::TrigTowerQuantity ( TrigTowerQuantityType  type,
bool  isLog = false 
)
inline

Definition at line 73 of file TrigTowerQuantity.h.

◆ ~TrigTowerQuantity()

hcaldqm::quantity::TrigTowerQuantity::~TrigTowerQuantity ( )
inlineoverride

Definition at line 75 of file TrigTowerQuantity.h.

75 {}

Member Function Documentation

◆ getBin()

uint32_t hcaldqm::quantity::TrigTowerQuantity::getBin ( HcalTrigTowerDetId const &  tid)
inlineoverridevirtual

◆ getLabels()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 86 of file TrigTowerQuantity.h.

86 { return getLabels_functions_tid[_type](); }

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

◆ getValue()

int hcaldqm::quantity::TrigTowerQuantity::getValue ( HcalTrigTowerDetId const &  tid)
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 78 of file TrigTowerQuantity.h.

78 { return getValue_functions_tid[_type](tid); }

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

◆ isCoordinate()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 85 of file TrigTowerQuantity.h.

85 { return true; }

◆ makeCopy()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 76 of file TrigTowerQuantity.h.

76 { return new TrigTowerQuantity(_type, _isLog); }

References hcaldqm::quantity::Quantity::_isLog, _type, and TrigTowerQuantity().

◆ max()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 84 of file TrigTowerQuantity.h.

84 { return max_tid[_type]; }

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

◆ min()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 83 of file TrigTowerQuantity.h.

83 { return min_tid[_type]; }

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

◆ nbins()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 82 of file TrigTowerQuantity.h.

82 { return nbins_tid[_type]; }

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

◆ type()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 81 of file TrigTowerQuantity.h.

81 { return fTrigTowerQuantity; }

References hcaldqm::quantity::fTrigTowerQuantity.

Member Data Documentation

◆ _type

TrigTowerQuantityType hcaldqm::quantity::TrigTowerQuantity::_type
protected
hcaldqm::quantity::getBin_functions_tid
const getBinType_tid getBin_functions_tid[nTrigTowerQuantityType]
Definition: TrigTowerQuantity.h:54
hcaldqm::quantity::getValue_functions_tid
const getValueType_tid getValue_functions_tid[nTrigTowerQuantityType]
Definition: TrigTowerQuantity.h:52
hcaldqm::quantity::TrigTowerQuantity::_type
TrigTowerQuantityType _type
Definition: TrigTowerQuantity.h:89
hcaldqm::quantity::name_tid
const std::string name_tid[nTrigTowerQuantityType]
Definition: TrigTowerQuantity.h:64
hcaldqm::quantity::Quantity::isLog
virtual bool isLog()
Definition: Quantity.h:35
hcaldqm::quantity::getLabels_functions_tid
const getLabels_tid getLabels_functions_tid[nTrigTowerQuantityType]
Definition: TrigTowerQuantity.h:58
hcaldqm::quantity::TrigTowerQuantity::TrigTowerQuantity
TrigTowerQuantity()
Definition: TrigTowerQuantity.h:72
hcaldqm::quantity::max_tid
const double max_tid[nTrigTowerQuantityType]
Definition: TrigTowerQuantity.h:67
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
hcaldqm::quantity::min_tid
const double min_tid[nTrigTowerQuantityType]
Definition: TrigTowerQuantity.h:66
hcaldqm::quantity::Quantity::Quantity
Quantity()
Definition: Quantity.h:29
hcaldqm::quantity::fTrigTowerQuantity
Definition: Quantity.h:18
hcaldqm::quantity::Quantity::_isLog
bool _isLog
Definition: Quantity.h:72
hcaldqm::quantity::nbins_tid
const int nbins_tid[nTrigTowerQuantityType]
Definition: TrigTowerQuantity.h:68