CMS 3D CMS Logo

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

#include <ValueQuantity.h>

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

Public Member Functions

 EventType ()
 
 EventType (std::vector< uint32_t > const &vtypes)
 
uint32_t getBin (int v) override
 
std::vector< std::string > getLabels () override
 
int getValue (int v) override
 
EventTypemakeCopy () override
 
double max () override
 
double min () override
 
std::string name () override
 
int nbins () override
 
virtual void setup (std::vector< uint32_t > const &vtypes)
 
 ~EventType () override
 
- Public Member Functions inherited from hcaldqm::quantity::ValueQuantity
double getValue (double x) 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 (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 void showOverflow (bool showOverflow)
 
virtual int wofnbins ()
 
virtual ~Quantity ()
 

Protected Types

typedef boost::unordered_map< uint32_t, int > TypeMap
 

Protected Attributes

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

Detailed Description

Definition at line 488 of file ValueQuantity.h.

Member Typedef Documentation

typedef boost::unordered_map<uint32_t, int> hcaldqm::quantity::EventType::TypeMap
protected

Definition at line 508 of file ValueQuantity.h.

Constructor & Destructor Documentation

hcaldqm::quantity::EventType::EventType ( )
inline

Definition at line 490 of file ValueQuantity.h.

490 {}
hcaldqm::quantity::EventType::EventType ( std::vector< uint32_t > const &  vtypes)
inline

Definition at line 491 of file ValueQuantity.h.

References GeneralSetup::setup().

491 : ValueQuantity(fN) { this->setup(vtypes); }
virtual void setup(std::vector< uint32_t > const &vtypes)
hcaldqm::quantity::EventType::~EventType ( )
inlineoverride

Definition at line 492 of file ValueQuantity.h.

492 {}

Member Function Documentation

uint32_t hcaldqm::quantity::EventType::getBin ( int  v)
inlineoverridevirtual
std::vector<std::string> hcaldqm::quantity::EventType::getLabels ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::Quantity.

Definition at line 512 of file ValueQuantity.h.

References gather_cfg::cout, tablePrinter::labels, hcaldqm::utilities::ogtype2string(), and findQualityFiles::v.

512  {
513  std::vector<std::string> labels(_types.size());
514  std::cout << "SIZE = " << _types.size() << std::endl;
515  for (auto const &v : _types) {
517  }
518  return labels;
519  }
std::string ogtype2string(constants::OrbitGapType type)
Definition: Utilities.cc:196
int hcaldqm::quantity::EventType::getValue ( int  v)
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 499 of file ValueQuantity.h.

499 { return _types[(uint32_t)v]; }
EventType* hcaldqm::quantity::EventType::makeCopy ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 520 of file ValueQuantity.h.

References GetRecoTauVFromDQM_MC_cff::EventType, AlCaHLTBitMon_ParallelJobs::p, and jetUpdater_cfi::sort.

520  {
521  std::vector<uint32_t> vtypes;
522  for (auto const &p : _types) {
523  vtypes.push_back(p.first);
524  }
525 
526  std::sort(vtypes.begin(), vtypes.end());
527  return new EventType(vtypes);
528  }
double hcaldqm::quantity::EventType::max ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 504 of file ValueQuantity.h.

504 { return _types.size(); }
double hcaldqm::quantity::EventType::min ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 503 of file ValueQuantity.h.

503 { return 0; }
std::string hcaldqm::quantity::EventType::name ( void  )
inlineoverridevirtual
int hcaldqm::quantity::EventType::nbins ( )
inlineoverridevirtual

Reimplemented from hcaldqm::quantity::ValueQuantity.

Definition at line 502 of file ValueQuantity.h.

502 { return _types.size(); }
virtual void hcaldqm::quantity::EventType::setup ( std::vector< uint32_t > const &  vtypes)
inlinevirtual

Definition at line 494 of file ValueQuantity.h.

References gather_cfg::cout, and mps_fire::i.

494  {
495  std::cout << "SIZE = " << vtypes.size() << std::endl;
496  for (uint32_t i = 0; i < vtypes.size(); i++)
497  _types.insert(std::make_pair((uint32_t)vtypes[i], i));
498  }

Member Data Documentation

TypeMap hcaldqm::quantity::EventType::_types
protected