CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
hcaldqm::mapper::HashMapper Class Reference

#include <HashMapper.h>

Inheritance diagram for hcaldqm::mapper::HashMapper:
hcaldqm::mapper::Mapper hcaldqm::filter::HashFilter

Public Member Functions

virtual uint32_t getHash (HcalDetId const &did) const
 
virtual uint32_t getHash (HcalElectronicsId const &eid) const
 
virtual uint32_t getHash (HcalTrigTowerDetId const &tid) const
 
virtual HashType getHashType () const
 
virtual std::string getHashTypeName () const
 
virtual int getLinearHashType (HashType htype) const
 
virtual std::string getName (HcalDetId const &did) const
 
virtual std::string getName (HcalElectronicsId const &eid) const
 
virtual std::string getName (HcalTrigTowerDetId const &tid) const
 
 HashMapper ()
 
 HashMapper (HashType htype)
 
virtual void initialize (HashType htype)
 
virtual bool isDHash () const
 
virtual bool isEHash () const
 
virtual bool isTHash () const
 
virtual ~HashMapper ()
 
- Public Member Functions inherited from hcaldqm::mapper::Mapper
 Mapper ()
 
virtual ~Mapper ()
 

Protected Attributes

HashType _htype
 

Detailed Description

Definition at line 20 of file HashMapper.h.

Constructor & Destructor Documentation

hcaldqm::mapper::HashMapper::HashMapper ( )
inline

Definition at line 24 of file HashMapper.h.

24 {}
hcaldqm::mapper::HashMapper::HashMapper ( HashType  htype)
inline

Definition at line 25 of file HashMapper.h.

25  : Mapper(), _htype(htype)
26  {}
virtual hcaldqm::mapper::HashMapper::~HashMapper ( )
inlinevirtual

Definition at line 27 of file HashMapper.h.

27 {}

Member Function Documentation

virtual uint32_t hcaldqm::mapper::HashMapper::getHash ( HcalDetId const &  did) const
inlinevirtual
virtual uint32_t hcaldqm::mapper::HashMapper::getHash ( HcalElectronicsId const &  eid) const
inlinevirtual
virtual uint32_t hcaldqm::mapper::HashMapper::getHash ( HcalTrigTowerDetId const &  tid) const
inlinevirtual
virtual HashType hcaldqm::mapper::HashMapper::getHashType ( ) const
inlinevirtual

Definition at line 53 of file HashMapper.h.

54  {return _htype;}
virtual std::string hcaldqm::mapper::HashMapper::getHashTypeName ( ) const
inlinevirtual
virtual int hcaldqm::mapper::HashMapper::getLinearHashType ( HashType  htype) const
inlinevirtual

Definition at line 71 of file HashMapper.h.

References checklumidiff::l, hcaldqm::hashfunctions::nHashType_did, and hcaldqm::hashfunctions::nHashType_eid.

72  {
73  int l = 0;
74  if (htype<nHashType_did)
75  l = htype;
76  else if (htype<nHashType_eid)
77  l = htype - 1;
78  else
79  l = htype - 2;
80  return l;
81  }
virtual std::string hcaldqm::mapper::HashMapper::getName ( HcalDetId const &  did) const
inlinevirtual
virtual std::string hcaldqm::mapper::HashMapper::getName ( HcalElectronicsId const &  eid) const
inlinevirtual
virtual std::string hcaldqm::mapper::HashMapper::getName ( HcalTrigTowerDetId const &  tid) const
inlinevirtual

Reimplemented from hcaldqm::mapper::Mapper.

Definition at line 47 of file HashMapper.h.

References hcaldqm::hashfunctions::name_tid, and hcaldqm::hashfunctions::nHashType_eid.

Referenced by plotting.Plot::draw().

name_function_tid const name_tid[nHashType_tid-nHashType_eid-1]
virtual void hcaldqm::mapper::HashMapper::initialize ( HashType  htype)
inlinevirtual
virtual bool hcaldqm::mapper::HashMapper::isDHash ( ) const
inlinevirtual
virtual bool hcaldqm::mapper::HashMapper::isEHash ( ) const
inlinevirtual
virtual bool hcaldqm::mapper::HashMapper::isTHash ( ) const
inlinevirtual

Member Data Documentation

HashType hcaldqm::mapper::HashMapper::_htype
protected

Definition at line 84 of file HashMapper.h.