CMS 3D CMS Logo

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

#include <ValueQuantity.h>

Inheritance diagram for hcaldqm::quantity::ValueQuantity:
hcaldqm::quantity::Quantity hcaldqm::quantity::EventNumber hcaldqm::quantity::EventType hcaldqm::quantity::FlagQuantity hcaldqm::quantity::LumiSection hcaldqm::quantity::RunNumber

Public Member Functions

int getValue (int x) override
 
double getValue (double x) override
 
ValueQuantitymakeCopy () override
 
double max () override
 
double min () override
 
int nbins () override
 
void setBits (TH1 *o) override
 
virtual void setLS (TH1 *o)
 
QuantityType type () override
 
 ValueQuantity ()
 
 ValueQuantity (ValueQuantityType type, bool isLog=false)
 
 ~ValueQuantity () 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 (HcalTrigTowerDetId const &)
 
virtual uint32_t getBin (int)
 
virtual uint32_t getBin (double)
 
virtual std::vector< std::string > getLabels ()
 
virtual int getValue (HcalDetId const &)
 
virtual int getValue (HcalElectronicsId const &)
 
virtual int getValue (HcalTrigTowerDetId const &)
 
virtual bool isCoordinate ()
 
virtual bool isLog ()
 
virtual std::string name ()
 
 Quantity ()
 
 Quantity (std::string const &name, bool isLog)
 
virtual void setAxisType (AxisType at)
 
virtual void setLog (TH1 *o)
 
virtual void setMax (double)
 
virtual void setMin (double)
 
virtual void setNbins (int)
 
virtual int wofnbins ()
 
virtual ~Quantity ()
 

Protected Attributes

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

Detailed Description

Definition at line 269 of file ValueQuantity.h.

Constructor & Destructor Documentation

hcaldqm::quantity::ValueQuantity::ValueQuantity ( )
inline

Definition at line 272 of file ValueQuantity.h.

Referenced by makeCopy().

272 : _type(){}
hcaldqm::quantity::ValueQuantity::ValueQuantity ( ValueQuantityType  type,
bool  isLog = false 
)
inline

Definition at line 273 of file ValueQuantity.h.

273  :
275  {}
type
Definition: HCALResponse.h:21
const std::map< ValueQuantityType, std::string > name_value
Definition: ValueQuantity.h:66
virtual bool isLog()
Definition: Quantity.h:48
hcaldqm::quantity::ValueQuantity::~ValueQuantity ( )
inlineoverride

Definition at line 276 of file ValueQuantity.h.

276 {}

Member Function Documentation

int hcaldqm::quantity::ValueQuantity::getValue ( int  x)
inlineoverridevirtual
double hcaldqm::quantity::ValueQuantity::getValue ( double  x)
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 284 of file ValueQuantity.h.

285  {return x;}
ValueQuantity* hcaldqm::quantity::ValueQuantity::makeCopy ( )
inlineoverridevirtual
double hcaldqm::quantity::ValueQuantity::max ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Reimplemented in hcaldqm::quantity::EventType, hcaldqm::quantity::EventNumber, hcaldqm::quantity::RunNumber, hcaldqm::quantity::LumiSection, and hcaldqm::quantity::FlagQuantity.

Definition at line 291 of file ValueQuantity.h.

References _type.

Referenced by ZDCTask::bookHistograms().

291 {return max_value.at(_type);}
const std::map< ValueQuantityType, double > max_value
double hcaldqm::quantity::ValueQuantity::min ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Reimplemented in hcaldqm::quantity::EventType, hcaldqm::quantity::EventNumber, hcaldqm::quantity::RunNumber, hcaldqm::quantity::LumiSection, and hcaldqm::quantity::FlagQuantity.

Definition at line 290 of file ValueQuantity.h.

References _type.

Referenced by ZDCTask::bookHistograms().

290 {return min_value.at(_type);}
const std::map< ValueQuantityType, double > min_value
int hcaldqm::quantity::ValueQuantity::nbins ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Reimplemented in hcaldqm::quantity::EventType, hcaldqm::quantity::EventNumber, hcaldqm::quantity::RunNumber, hcaldqm::quantity::LumiSection, and hcaldqm::quantity::FlagQuantity.

Definition at line 289 of file ValueQuantity.h.

References _type.

Referenced by ZDCTask::bookHistograms().

289 {return nbins_value.at(_type);}
const std::map< ValueQuantityType, int > nbins_value
void hcaldqm::quantity::ValueQuantity::setBits ( TH1 *  o)
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 293 of file ValueQuantity.h.

References hcaldqm::quantity::Quantity::setBits(), and setLS().

virtual void hcaldqm::quantity::ValueQuantity::setLS ( TH1 *  o)
inlinevirtual

Definition at line 295 of file ValueQuantity.h.

References _type, hcaldqm::constants::BIT_AXIS_LS, hcaldqm::constants::BIT_OFFSET, and hcaldqm::quantity::fLS.

Referenced by setBits().

296  {
297  if (_type==fLS)
298  {
299  // for LS axis - set the bit
300  // set extendable axes.
301  o->SetBit(BIT(BIT_OFFSET+BIT_AXIS_LS));
302  // o->SetCanExtend(TH1::kXaxis);
303  }
304  }
int const BIT_OFFSET
Definition: Constants.h:314
int const BIT_AXIS_LS
Definition: Constants.h:318
QuantityType hcaldqm::quantity::ValueQuantity::type ( )
inlineoverridevirtual

Member Data Documentation

ValueQuantityType hcaldqm::quantity::ValueQuantity::_type
protected