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
 
uint32_t getHash (HcalDetId const &did) const override
 
virtual uint32_t getHash (HcalElectronicsId const &) const
 
uint32_t getHash (HcalElectronicsId const &eid) const override
 
virtual uint32_t getHash (HcalTrigTowerDetId const &) const
 
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
 
virtual std::string getName (HcalDetId const &) const
 
std::string getName (HcalDetId const &did) const override
 
virtual std::string getName (HcalElectronicsId const &) const
 
std::string getName (HcalElectronicsId const &eid) const override
 
virtual std::string getName (HcalTrigTowerDetId const &) const
 
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

◆ 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) {}

◆ ~HashMapper()

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

Definition at line 22 of file HashMapper.h.

22 {}

Member Function Documentation

◆ getHash() [1/6]

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

Definition at line 26 of file Mapper.h.

26 { return 0; }

◆ getHash() [2/6]

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

◆ getHash() [3/6]

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

Definition at line 27 of file Mapper.h.

27 { return 0; }

◆ getHash() [4/6]

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

◆ getHash() [5/6]

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

Definition at line 28 of file Mapper.h.

28 { return 0; }

◆ getHash() [6/6]

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

Reimplemented from hcaldqm::mapper::Mapper.

Definition at line 33 of file HashMapper.h.

33  {
35  }

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

◆ getHashType()

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

Definition at line 49 of file HashMapper.h.

49 { return _htype; }

References _htype.

◆ 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 61 of file HashMapper.h.

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  }

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

Referenced by getHashTypeName().

◆ getName() [1/6]

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

Definition at line 30 of file Mapper.h.

30 { return ""; }

◆ getName() [2/6]

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

◆ getName() [3/6]

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

Definition at line 31 of file Mapper.h.

31 { return ""; }

◆ getName() [4/6]

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

◆ getName() [5/6]

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

Definition at line 32 of file Mapper.h.

32 { return ""; }

◆ getName() [6/6]

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

Reimplemented from hcaldqm::mapper::Mapper.

Definition at line 43 of file HashMapper.h.

43  {
45  }

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

Referenced by plotting.Plot::draw().

◆ initialize()

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

Definition at line 25 of file HashMapper.h.

25 { _htype = htype; }

References _htype.

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

◆ isDHash()

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

◆ isEHash()

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

◆ isTHash()

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

Member Data Documentation

◆ _htype

hashfunctions::HashType hcaldqm::mapper::HashMapper::_htype
protected
hcaldqm::mapper::HashMapper::getLinearHashType
virtual int getLinearHashType(hashfunctions::HashType htype) const
Definition: HashMapper.h:61
hcaldqm::hashfunctions::nHashType_did
Definition: HashFunctions.h:135
hcaldqm::mapper::HashMapper::_htype
hashfunctions::HashType _htype
Definition: HashMapper.h:73
hcaldqm::hashfunctions::hash_names
const std::string hash_names[nhashes]
Definition: HashFunctions.h:214
hcaldqm::hashfunctions::hash_eid
const hash_function_eid hash_eid[nHashType_eid - nHashType_did - 1]
Definition: HashFunctions.h:175
hcaldqm::mapper::Mapper::Mapper
Mapper()
Definition: Mapper.h:23
hcaldqm::hashfunctions::hash_did
const hash_function_did hash_did[nHashType_did]
Definition: HashFunctions.h:163
hcaldqm::hashfunctions::nHashType_tid
Definition: HashFunctions.h:154
funct::true
true
Definition: Factorize.h:173
hcaldqm::hashfunctions::name_tid
const name_function_tid name_tid[nHashType_tid - nHashType_eid - 1]
Definition: HashFunctions.h:211
hcaldqm::hashfunctions::hash_tid
const hash_function_tid hash_tid[nHashType_tid - nHashType_eid - 1]
Definition: HashFunctions.h:186
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:193
hcaldqm::hashfunctions::nHashType_eid
Definition: HashFunctions.h:147
hcaldqm::hashfunctions::name_did
const name_function_did name_did[nHashType_did]
Definition: HashFunctions.h:188
hcaldqm::hashfunctions::name_eid
const name_function_eid name_eid[nHashType_eid - nHashType_did - 1]
Definition: HashFunctions.h:200