CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
virtual uint32_t getHash (HcalDetId const &)
 
virtual uint32_t getHash (HcalElectronicsId const &)
 
virtual uint32_t getHash (HcalTrigTowerDetId const &)
 
virtual std::string getName (HcalDetId const &)
 
virtual std::string getName (HcalElectronicsId const &)
 
virtual std::string getName (HcalTrigTowerDetId const &)
 
 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

Definition at line 35 of file HashMapper.h.

References hcaldqm::hashfunctions::hash_eid, and hcaldqm::hashfunctions::nHashType_did.

36  {return hash_eid[_htype-nHashType_did-1](eid);}
hash_function_eid const hash_eid[nHashType_eid-nHashType_did-1]
virtual uint32_t hcaldqm::mapper::HashMapper::getHash ( HcalTrigTowerDetId const &  tid) const
inlinevirtual

Definition at line 37 of file HashMapper.h.

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

38  {return hash_tid[_htype-nHashType_eid-1](tid);}
hash_function_tid const hash_tid[nHashType_tid-nHashType_eid-1]
virtual HashType hcaldqm::mapper::HashMapper::getHashType ( ) const
inlinevirtual

Definition at line 51 of file HashMapper.h.

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

Definition at line 69 of file HashMapper.h.

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

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

Definition at line 43 of file HashMapper.h.

References hcaldqm::hashfunctions::name_eid, and hcaldqm::hashfunctions::nHashType_did.

Referenced by plotting.Plot::draw().

name_function_eid const name_eid[nHashType_eid-nHashType_did-1]
virtual std::string hcaldqm::mapper::HashMapper::getName ( HcalTrigTowerDetId const &  tid) const
inlinevirtual

Definition at line 45 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

Definition at line 30 of file HashMapper.h.

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

30 {_htype = htype;}
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 82 of file HashMapper.h.