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::FlagQuantity Class Reference

#include <ValueQuantity.h>

Inheritance diagram for hcaldqm::quantity::FlagQuantity:
hcaldqm::quantity::ValueQuantity hcaldqm::quantity::Quantity

Public Member Functions

 FlagQuantity ()
 
 FlagQuantity (std::vector< flag::Flag > const &flags)
 
virtual uint32_t getBin (int f)
 
virtual std::vector< std::string > getLabels ()
 
virtual int getValue (int f)
 
virtual FlagQuantitymakeCopy ()
 
virtual double max ()
 
virtual double min ()
 
virtual std::string name ()
 
virtual int nbins ()
 
virtual ~FlagQuantity ()
 
- Public Member Functions inherited from hcaldqm::quantity::ValueQuantity
virtual double getValue (double x)
 
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 (double)
 
virtual int getValue (HcalDetId const &)
 
virtual int getValue (HcalElectronicsId const &)
 
virtual int getValue (HcalTrigTowerDetId const &)
 
virtual bool isCoordinate ()
 
virtual bool isLog ()
 
 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

std::vector< flag::Flag_flags
 
- Protected Attributes inherited from hcaldqm::quantity::ValueQuantity
ValueQuantityType _type
 
- Protected Attributes inherited from hcaldqm::quantity::Quantity
AxisType _axistype
 
bool _isLog
 
std::string _name
 

Detailed Description

Definition at line 121 of file ValueQuantity.h.

Constructor & Destructor Documentation

hcaldqm::quantity::FlagQuantity::FlagQuantity ( )
inline

Definition at line 124 of file ValueQuantity.h.

Referenced by makeCopy().

124 {}
hcaldqm::quantity::FlagQuantity::FlagQuantity ( std::vector< flag::Flag > const &  flags)
inline

Definition at line 125 of file ValueQuantity.h.

125  :
126  _flags(flags) {}
std::vector< Variable::Flags > flags
Definition: MVATrainer.cc:135
std::vector< flag::Flag > _flags
virtual hcaldqm::quantity::FlagQuantity::~FlagQuantity ( )
inlinevirtual

Definition at line 127 of file ValueQuantity.h.

127 {}

Member Function Documentation

virtual uint32_t hcaldqm::quantity::FlagQuantity::getBin ( int  f)
inlinevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 137 of file ValueQuantity.h.

Referenced by BTagWeightCalculator.BTagWeightCalculator::calcJetWeightImpl().

137 {return f+1;}
double f[11][100]
virtual std::vector<std::string> hcaldqm::quantity::FlagQuantity::getLabels ( )
inlinevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 138 of file ValueQuantity.h.

References _flags.

139  {
140  std::vector<std::string> vnames;
141  for (std::vector<flag::Flag>::const_iterator
142  it=_flags.begin(); it!=_flags.end(); ++it)
143  vnames.push_back(it->_name);
144 
145  return vnames;
146  }
std::vector< flag::Flag > _flags
virtual int hcaldqm::quantity::FlagQuantity::getValue ( int  f)
inlinevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 136 of file ValueQuantity.h.

References f.

136 {return f;}
double f[11][100]
virtual FlagQuantity* hcaldqm::quantity::FlagQuantity::makeCopy ( )
inlinevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 129 of file ValueQuantity.h.

References _flags, and FlagQuantity().

130  {return new FlagQuantity(_flags);}
std::vector< flag::Flag > _flags
virtual double hcaldqm::quantity::FlagQuantity::max ( )
inlinevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 135 of file ValueQuantity.h.

References _flags.

135 {return _flags.size();}
std::vector< flag::Flag > _flags
virtual double hcaldqm::quantity::FlagQuantity::min ( )
inlinevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 134 of file ValueQuantity.h.

134 {return 0;}
virtual std::string hcaldqm::quantity::FlagQuantity::name ( void  )
inlinevirtual
virtual int hcaldqm::quantity::FlagQuantity::nbins ( )
inlinevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 133 of file ValueQuantity.h.

References _flags.

133 {return _flags.size();}
std::vector< flag::Flag > _flags

Member Data Documentation

std::vector<flag::Flag> hcaldqm::quantity::FlagQuantity::_flags
protected

Definition at line 149 of file ValueQuantity.h.

Referenced by getLabels(), makeCopy(), max(), and nbins().