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

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.

Referenced by makeCopy().

72 {}

◆ TrigTowerQuantity() [2/2]

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

Definition at line 73 of file TrigTowerQuantity.h.

std::string const name_tid[nTrigTowerQuantityType]
virtual bool isLog()
Definition: Quantity.h:35

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 79 of file TrigTowerQuantity.h.

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

Referenced by BTagWeightCalculator.BTagWeightCalculator::calcJetWeightImpl().

79 { return getBin_functions_tid[_type](tid); }
getBinType_tid const getBin_functions_tid[nTrigTowerQuantityType]

◆ getLabels()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 86 of file TrigTowerQuantity.h.

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

86 { return getLabels_functions_tid[_type](); }
getLabels_tid const getLabels_functions_tid[nTrigTowerQuantityType]

◆ getValue()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 78 of file TrigTowerQuantity.h.

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

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

◆ 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

◆ max()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 84 of file TrigTowerQuantity.h.

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

84 { return max_tid[_type]; }
double const max_tid[nTrigTowerQuantityType]

◆ min()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 83 of file TrigTowerQuantity.h.

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

83 { return min_tid[_type]; }
double const min_tid[nTrigTowerQuantityType]

◆ nbins()

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

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 82 of file TrigTowerQuantity.h.

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

82 { return nbins_tid[_type]; }
int const nbins_tid[nTrigTowerQuantityType]

◆ type()

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

Member Data Documentation

◆ _type

TrigTowerQuantityType hcaldqm::quantity::TrigTowerQuantity::_type
protected