CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::FlagQuantity hcaldqm::quantity::LumiSection hcaldqm::quantity::RunNumber

Public Member Functions

virtual int getValue (int x)
 
virtual double getValue (double x)
 
virtual ValueQuantitymakeCopy ()
 
virtual double max ()
 
virtual double min ()
 
virtual int nbins ()
 
virtual void setBits (TH1 *o)
 
virtual void setLS (TH1 *o)
 
virtual QuantityType type ()
 
 ValueQuantity ()
 
 ValueQuantity (ValueQuantityType type, bool isLog=false)
 
virtual ~ValueQuantity ()
 
- 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 80 of file ValueQuantity.h.

Constructor & Destructor Documentation

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

Definition at line 83 of file ValueQuantity.h.

Referenced by makeCopy().

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

Definition at line 84 of file ValueQuantity.h.

84  :
86  {}
type
Definition: HCALResponse.h:21
std::string const name_value[nValueQuantityType]
Definition: ValueQuantity.h:54
virtual bool isLog()
Definition: Quantity.h:48
virtual hcaldqm::quantity::ValueQuantity::~ValueQuantity ( )
inlinevirtual

Definition at line 87 of file ValueQuantity.h.

87 {}

Member Function Documentation

virtual int hcaldqm::quantity::ValueQuantity::getValue ( int  x)
inlinevirtual

Reimplemented from hcaldqm::quantity::Quantity.

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

Definition at line 93 of file ValueQuantity.h.

94  {return x;}
virtual double hcaldqm::quantity::ValueQuantity::getValue ( double  x)
inlinevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 95 of file ValueQuantity.h.

96  {return x;}
virtual ValueQuantity* hcaldqm::quantity::ValueQuantity::makeCopy ( )
inlinevirtual
virtual double hcaldqm::quantity::ValueQuantity::max ( )
inlinevirtual
virtual double hcaldqm::quantity::ValueQuantity::min ( )
inlinevirtual
virtual int hcaldqm::quantity::ValueQuantity::nbins ( )
inlinevirtual
virtual void hcaldqm::quantity::ValueQuantity::setBits ( TH1 *  o)
inlinevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 104 of file ValueQuantity.h.

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

virtual void setBits(TH1 *o)
Definition: Quantity.h:65
virtual void hcaldqm::quantity::ValueQuantity::setLS ( TH1 *  o)
inlinevirtual

Definition at line 106 of file ValueQuantity.h.

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

Referenced by setBits().

107  {
108  if (_type==fLS)
109  {
110  // for LS axis - set the bit
111  // set extendable axes.
112  o->SetBit(BIT(BIT_OFFSET+BIT_AXIS_LS));
113  // o->SetCanExtend(TH1::kXaxis);
114  }
115  }
int const BIT_OFFSET
Definition: Constants.h:224
int const BIT_AXIS_LS
Definition: Constants.h:228
virtual QuantityType hcaldqm::quantity::ValueQuantity::type ( )
inlinevirtual

Member Data Documentation

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