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

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

Protected Attributes

hashfunctions::HashType _htype
 

Detailed Description

Definition at line 17 of file HashMapper.h.

Constructor & Destructor Documentation

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

Definition at line 20 of file HashMapper.h.

20 {}
hcaldqm::mapper::HashMapper::HashMapper ( hashfunctions::HashType  htype)
inline

Definition at line 21 of file HashMapper.h.

21 : Mapper(), _htype(htype) {}
hashfunctions::HashType _htype
Definition: HashMapper.h:73
hcaldqm::mapper::HashMapper::~HashMapper ( )
inlineoverride

Definition at line 22 of file HashMapper.h.

22 {}

Member Function Documentation

uint32_t hcaldqm::mapper::HashMapper::getHash ( HcalDetId const &  did) const
inlineoverridevirtual
uint32_t hcaldqm::mapper::HashMapper::getHash ( HcalElectronicsId const &  eid) const
inlineoverridevirtual

Reimplemented from hcaldqm::mapper::Mapper.

Definition at line 30 of file HashMapper.h.

References _htype, runTauDisplay::eid, hcaldqm::hashfunctions::hash_eid, and hcaldqm::hashfunctions::nHashType_did.

30  {
32  }
hashfunctions::HashType _htype
Definition: HashMapper.h:73
hash_function_eid const hash_eid[nHashType_eid-nHashType_did-1]
uint32_t hcaldqm::mapper::HashMapper::getHash ( HcalTrigTowerDetId const &  tid) const
inlineoverridevirtual

Reimplemented from hcaldqm::mapper::Mapper.

Definition at line 33 of file HashMapper.h.

References _htype, hcaldqm::mapper::Mapper::getName(), hcaldqm::hashfunctions::hash_tid, and hcaldqm::hashfunctions::nHashType_eid.

33  {
35  }
hash_function_tid const hash_tid[nHashType_tid-nHashType_eid-1]
hashfunctions::HashType _htype
Definition: HashMapper.h:73
virtual hashfunctions::HashType hcaldqm::mapper::HashMapper::getHashType ( ) const
inlinevirtual

Definition at line 49 of file HashMapper.h.

References _htype.

49 { return _htype; }
hashfunctions::HashType _htype
Definition: HashMapper.h:73
virtual std::string hcaldqm::mapper::HashMapper::getHashTypeName ( ) const
inlinevirtual
virtual int hcaldqm::mapper::HashMapper::getLinearHashType ( hashfunctions::HashType  htype) const
inlinevirtual

Definition at line 61 of file HashMapper.h.

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

Referenced by getHashTypeName().

61  {
62  int l = 0;
63  if (htype < hashfunctions::nHashType_did)
64  l = htype;
65  else if (htype < hashfunctions::nHashType_eid)
66  l = htype - 1;
67  else
68  l = htype - 2;
69  return l;
70  }
std::string hcaldqm::mapper::HashMapper::getName ( HcalDetId const &  did) const
inlineoverridevirtual
std::string hcaldqm::mapper::HashMapper::getName ( HcalElectronicsId const &  eid) const
inlineoverridevirtual

Reimplemented from hcaldqm::mapper::Mapper.

Definition at line 40 of file HashMapper.h.

References _htype, runTauDisplay::eid, hcaldqm::hashfunctions::name_eid, and hcaldqm::hashfunctions::nHashType_did.

Referenced by plotting.Plot::draw().

40  {
42  }
hashfunctions::HashType _htype
Definition: HashMapper.h:73
name_function_eid const name_eid[nHashType_eid-nHashType_did-1]
std::string hcaldqm::mapper::HashMapper::getName ( HcalTrigTowerDetId const &  tid) const
inlineoverridevirtual

Reimplemented from hcaldqm::mapper::Mapper.

Definition at line 43 of file HashMapper.h.

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

Referenced by plotting.Plot::draw().

43  {
45  }
hashfunctions::HashType _htype
Definition: HashMapper.h:73
name_function_tid const name_tid[nHashType_tid-nHashType_eid-1]
virtual void hcaldqm::mapper::HashMapper::initialize ( hashfunctions::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

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