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 &) const
 
virtual uint32_t getHash (HcalElectronicsId const &) const
 
virtual uint32_t getHash (HcalTrigTowerDetId const &) const
 
virtual uint32_t getHash (HcalTrigTowerDetId const &, HcalElectronicsId const &) const
 
uint32_t getHash (HcalDetId const &did) const override
 
uint32_t getHash (HcalElectronicsId const &eid) const override
 
uint32_t getHash (HcalTrigTowerDetId const &tid) const override
 
uint32_t getHash (HcalTrigTowerDetId const &tid, HcalElectronicsId const &eid) const override
 
virtual hashfunctions::HashType getHashType () const
 
virtual std::string getHashTypeName () const
 
virtual int getLinearHashType (hashfunctions::HashType htype) const
 
virtual std::string getName (HcalElectronicsId const &) const
 
virtual std::string getName (HcalTrigTowerDetId const &, HcalElectronicsId const &) const
 
virtual std::string getName (HcalDetId const &) const
 
virtual std::string getName (HcalTrigTowerDetId const &) 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
 
std::string getName (HcalTrigTowerDetId const &tid, HcalElectronicsId const &eid) const override
 
 HashMapper ()
 
 HashMapper (hashfunctions::HashType htype)
 
virtual void initialize (hashfunctions::HashType htype)
 
virtual bool isDHash () const
 
virtual bool isEHash () const
 
virtual bool isMixHash () 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

◆ HashMapper() [1/2]

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

Definition at line 20 of file HashMapper.h.

20 {}

◆ HashMapper() [2/2]

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:84

◆ ~HashMapper()

hcaldqm::mapper::HashMapper::~HashMapper ( )
inlineoverride

Definition at line 22 of file HashMapper.h.

22 {}

Member Function Documentation

◆ getHash() [1/8]

virtual uint32_t hcaldqm::mapper::Mapper::getHash
inline

Definition at line 26 of file Mapper.h.

26 { return 0; }

◆ getHash() [2/8]

virtual uint32_t hcaldqm::mapper::Mapper::getHash
inline

Definition at line 27 of file Mapper.h.

27 { return 0; }

◆ getHash() [3/8]

virtual uint32_t hcaldqm::mapper::Mapper::getHash
inline

Definition at line 28 of file Mapper.h.

28 { return 0; }

◆ getHash() [4/8]

virtual uint32_t hcaldqm::mapper::Mapper::getHash
inline

Definition at line 29 of file Mapper.h.

29 { return 0; }

◆ getHash() [5/8]

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

◆ getHash() [6/8]

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:84
hash_function_eid const hash_eid[nHashType_eid - nHashType_did - 1]

◆ getHash() [7/8]

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::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:84

◆ getHash() [8/8]

uint32_t hcaldqm::mapper::HashMapper::getHash ( HcalTrigTowerDetId const &  tid,
HcalElectronicsId const &  eid 
) const
inlineoverridevirtual

Reimplemented from hcaldqm::mapper::Mapper.

Definition at line 36 of file HashMapper.h.

References _htype, runTauDisplay::eid, hcaldqm::hashfunctions::hash_mixid, and hcaldqm::hashfunctions::nHashType_tid.

36  {
38  }
hash_function_mixid const hash_mixid[nHashType_mixid - nHashType_tid - 1]
hashfunctions::HashType _htype
Definition: HashMapper.h:84

◆ getHashType()

virtual hashfunctions::HashType hcaldqm::mapper::HashMapper::getHashType ( ) const
inlinevirtual

Definition at line 55 of file HashMapper.h.

References _htype.

55 { return _htype; }
hashfunctions::HashType _htype
Definition: HashMapper.h:84

◆ getHashTypeName()

virtual std::string hcaldqm::mapper::HashMapper::getHashTypeName ( ) const
inlinevirtual

◆ getLinearHashType()

virtual int hcaldqm::mapper::HashMapper::getLinearHashType ( hashfunctions::HashType  htype) const
inlinevirtual

Definition at line 70 of file HashMapper.h.

References MainPageGenerator::l, hcaldqm::hashfunctions::nHashType_did, hcaldqm::hashfunctions::nHashType_eid, and hcaldqm::hashfunctions::nHashType_tid.

Referenced by getHashTypeName().

70  {
71  int l = 0;
72  if (htype < hashfunctions::nHashType_did)
73  l = htype;
74  else if (htype < hashfunctions::nHashType_eid)
75  l = htype - 1;
76  else if (htype < hashfunctions::nHashType_tid)
77  l = htype - 2;
78  else
79  l = htype - 3;
80  return l;
81  }

◆ getName() [1/8]

virtual std::string hcaldqm::mapper::Mapper::getName
inline

Definition at line 31 of file Mapper.h.

31 { return ""; }

◆ getName() [2/8]

virtual std::string hcaldqm::mapper::Mapper::getName
inline

Definition at line 32 of file Mapper.h.

32 { return ""; }

◆ getName() [3/8]

virtual std::string hcaldqm::mapper::Mapper::getName
inline

Definition at line 33 of file Mapper.h.

33 { return ""; }

◆ getName() [4/8]

virtual std::string hcaldqm::mapper::Mapper::getName
inline

Definition at line 34 of file Mapper.h.

34 { return ""; }

◆ getName() [5/8]

std::string hcaldqm::mapper::HashMapper::getName ( HcalDetId const &  did) const
inlineoverridevirtual

◆ getName() [6/8]

std::string hcaldqm::mapper::HashMapper::getName ( HcalElectronicsId const &  eid) const
inlineoverridevirtual

Reimplemented from hcaldqm::mapper::Mapper.

Definition at line 43 of file HashMapper.h.

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

Referenced by plotting.Plot::draw().

43  {
45  }
name_function_eid const name_eid[nHashType_eid - nHashType_did - 1]
hashfunctions::HashType _htype
Definition: HashMapper.h:84

◆ getName() [7/8]

std::string hcaldqm::mapper::HashMapper::getName ( HcalTrigTowerDetId const &  tid) const
inlineoverridevirtual

Reimplemented from hcaldqm::mapper::Mapper.

Definition at line 46 of file HashMapper.h.

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

Referenced by plotting.Plot::draw().

46  {
48  }
name_function_tid const name_tid[nHashType_tid - nHashType_eid - 1]
hashfunctions::HashType _htype
Definition: HashMapper.h:84

◆ getName() [8/8]

std::string hcaldqm::mapper::HashMapper::getName ( HcalTrigTowerDetId const &  tid,
HcalElectronicsId const &  eid 
) const
inlineoverridevirtual

Reimplemented from hcaldqm::mapper::Mapper.

Definition at line 49 of file HashMapper.h.

References _htype, runTauDisplay::eid, hcaldqm::hashfunctions::name_mixid, and hcaldqm::hashfunctions::nHashType_tid.

Referenced by plotting.Plot::draw().

49  {
51  }
name_function_mixid const name_mixid[nHashType_mixid - nHashType_tid - 1]
hashfunctions::HashType _htype
Definition: HashMapper.h:84

◆ initialize()

virtual void hcaldqm::mapper::HashMapper::initialize ( hashfunctions::HashType  htype)
inlinevirtual

Definition at line 25 of file HashMapper.h.

References _htype.

Referenced by hcaldqm::filter::HashFilter::initialize(), and hcaldqm::Container1D::initialize().

25 { _htype = htype; }
hashfunctions::HashType _htype
Definition: HashMapper.h:84

◆ isDHash()

virtual bool hcaldqm::mapper::HashMapper::isDHash ( ) const
inlinevirtual

◆ isEHash()

virtual bool hcaldqm::mapper::HashMapper::isEHash ( ) const
inlinevirtual

◆ isMixHash()

virtual bool hcaldqm::mapper::HashMapper::isMixHash ( ) const
inlinevirtual

◆ isTHash()

virtual bool hcaldqm::mapper::HashMapper::isTHash ( ) const
inlinevirtual

Member Data Documentation

◆ _htype

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