CMS 3D CMS Logo

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

#include <Quantity.h>

Inheritance diagram for hcaldqm::quantity::Quantity:
hcaldqm::quantity::DetectorQuantity hcaldqm::quantity::ElectronicsQuantity hcaldqm::quantity::TrigTowerQuantity hcaldqm::quantity::ValueQuantity hcaldqm::quantity::CrateQuantity hcaldqm::quantity::FEDQuantity hcaldqm::quantity::EventNumber hcaldqm::quantity::EventType hcaldqm::quantity::FlagQuantity hcaldqm::quantity::LumiSection hcaldqm::quantity::RunNumber

Public Member Functions

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 int getValue (int x)
 
virtual double getValue (double x)
 
virtual bool isCoordinate ()
 
virtual bool isLog ()
 
virtual QuantitymakeCopy ()
 
virtual double max ()
 
virtual double min ()
 
virtual std::string name ()
 
virtual int nbins ()
 
 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 QuantityType type ()
 
virtual int wofnbins ()
 
virtual ~Quantity ()
 

Protected Attributes

AxisType _axistype
 
bool _isLog
 
std::string _name
 

Detailed Description

Definition at line 36 of file Quantity.h.

Constructor & Destructor Documentation

hcaldqm::quantity::Quantity::Quantity ( )
inline

Definition at line 39 of file Quantity.h.

Referenced by makeCopy().

39  : _name("Quantity"), _isLog(false)
40  {}
hcaldqm::quantity::Quantity::Quantity ( std::string const &  name,
bool  isLog 
)
inline

Definition at line 41 of file Quantity.h.

41  :
43  {}
virtual std::string name()
Definition: Quantity.h:47
virtual bool isLog()
Definition: Quantity.h:48
virtual hcaldqm::quantity::Quantity::~Quantity ( )
inlinevirtual

Definition at line 44 of file Quantity.h.

44 {}

Member Function Documentation

virtual uint32_t hcaldqm::quantity::Quantity::getBin ( HcalDetId const &  )
inlinevirtual
virtual uint32_t hcaldqm::quantity::Quantity::getBin ( HcalElectronicsId const &  )
inlinevirtual
virtual uint32_t hcaldqm::quantity::Quantity::getBin ( HcalTrigTowerDetId const &  )
inlinevirtual

Reimplemented in hcaldqm::quantity::TrigTowerQuantity.

Definition at line 55 of file Quantity.h.

Referenced by BTagWeightCalculator.BTagWeightCalculator::calcJetWeightImpl().

55 {return 1;}
virtual uint32_t hcaldqm::quantity::Quantity::getBin ( int  )
inlinevirtual
virtual uint32_t hcaldqm::quantity::Quantity::getBin ( double  )
inlinevirtual

Definition at line 57 of file Quantity.h.

Referenced by BTagWeightCalculator.BTagWeightCalculator::calcJetWeightImpl().

57 {return 1;}
virtual std::vector<std::string> hcaldqm::quantity::Quantity::getLabels ( )
inlinevirtual
virtual int hcaldqm::quantity::Quantity::getValue ( HcalDetId const &  )
inlinevirtual
virtual int hcaldqm::quantity::Quantity::getValue ( HcalElectronicsId const &  )
inlinevirtual
virtual int hcaldqm::quantity::Quantity::getValue ( HcalTrigTowerDetId const &  )
inlinevirtual

Reimplemented in hcaldqm::quantity::TrigTowerQuantity.

Definition at line 61 of file Quantity.h.

61 {return 0;}
virtual int hcaldqm::quantity::Quantity::getValue ( int  x)
inlinevirtual
virtual double hcaldqm::quantity::Quantity::getValue ( double  x)
inlinevirtual

Reimplemented in hcaldqm::quantity::ValueQuantity.

Definition at line 63 of file Quantity.h.

63 {return x;}
virtual bool hcaldqm::quantity::Quantity::isCoordinate ( )
inlinevirtual
virtual bool hcaldqm::quantity::Quantity::isLog ( )
inlinevirtual

Definition at line 48 of file Quantity.h.

References _isLog.

48 {return _isLog;}
virtual Quantity* hcaldqm::quantity::Quantity::makeCopy ( )
inlinevirtual
virtual double hcaldqm::quantity::Quantity::max ( )
inlinevirtual
virtual double hcaldqm::quantity::Quantity::min ( )
inlinevirtual
virtual std::string hcaldqm::quantity::Quantity::name ( void  )
inlinevirtual
virtual int hcaldqm::quantity::Quantity::nbins ( )
inlinevirtual
virtual void hcaldqm::quantity::Quantity::setAxisType ( AxisType  at)
inlinevirtual
virtual void hcaldqm::quantity::Quantity::setBits ( TH1 *  o)
inlinevirtual
virtual void hcaldqm::quantity::Quantity::setLog ( TH1 *  o)
inlinevirtual

Definition at line 67 of file Quantity.h.

References _axistype, _isLog, and hcaldqm::constants::BIT_OFFSET.

Referenced by setBits().

68  {
69  if (_isLog)
70  o->SetBit(BIT(BIT_OFFSET+_axistype));
71  }
int const BIT_OFFSET
Definition: Constants.h:314
virtual void hcaldqm::quantity::Quantity::setMax ( double  )
inlinevirtual
virtual void hcaldqm::quantity::Quantity::setMin ( double  )
inlinevirtual

Definition at line 82 of file Quantity.h.

82 {}
virtual void hcaldqm::quantity::Quantity::setNbins ( int  )
inlinevirtual

Definition at line 83 of file Quantity.h.

83 {}
virtual QuantityType hcaldqm::quantity::Quantity::type ( )
inlinevirtual
virtual int hcaldqm::quantity::Quantity::wofnbins ( )
inlinevirtual

Definition at line 74 of file Quantity.h.

References nbins().

Referenced by hcaldqm::Container2D::getBinEntries(), and hcaldqm::ContainerSingle2D::getBinEntries().

74 {return nbins()+2;}

Member Data Documentation

AxisType hcaldqm::quantity::Quantity::_axistype
protected

Definition at line 88 of file Quantity.h.

Referenced by setAxisType(), and setLog().

bool hcaldqm::quantity::Quantity::_isLog
protected
std::string hcaldqm::quantity::Quantity::_name
protected

Definition at line 86 of file Quantity.h.

Referenced by plotting.Subtract::__str__(), plotting.Transform::__str__(), plotting.FakeDuplicate::__str__(), plotting.CutEfficiency::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), trackingPlots.TimePerEventPlot::__str__(), trackingPlots.TimePerTrackPlot::__str__(), SequenceTypes.SequencePlaceholder::_clonesequence(), trackingPlots.TimePerEventPlot::_create(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), SequenceTypes.SequencePlaceholder::copy(), SequenceTypes.TaskPlaceholder::copy(), plotting.Subtract::create(), plotting.Transform::create(), plotting.FakeDuplicate::create(), plotting.CutEfficiency::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::create(), trackingPlots.TimePerTrackPlot::create(), plotting.Plot::create(), plotting.PlotGroup::draw(), SequenceTypes.SequencePlaceholder::dumpPython(), SequenceTypes.TaskPlaceholder::dumpPython(), SequenceTypes.SequencePlaceholder::dumpSequenceConfig(), SequenceTypes.SequencePlaceholder::dumpSequencePython(), SequenceTypes.TaskPlaceholder::dumpSequencePython(), plotting.Plot::getName(), plotting.PlotGroup::getName(), plotting.PlotterFolder::getName(), plotting.PlotterItem::getName(), plotting.PlotterFolder::getSelectionNameIterator(), SequenceTypes.SequencePlaceholder::insertInto(), SequenceTypes.TaskPlaceholder::insertInto(), makeCopy(), name(), Vispa.Views.PropertyView.Property::name(), validation.SimpleSample::name(), trackingPlots.Iteration::name(), plotting.PlotterItem::readDirs(), plotting.PlotGroup::remove(), SequenceTypes.SequencePlaceholder::resolve(), and SequenceTypes.TaskPlaceholder::resolve().