CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cond::GTEntry_t Class Reference

#include <Types.h>

Public Member Functions

 GTEntry_t ()
 
 GTEntry_t (const GTEntry_t &rhs)
 
 GTEntry_t (const std::tuple< std::string, std::string, std::string > &gtEntryData)
 
std::size_t hashvalue () const
 
bool operator< (const GTEntry_t &toCompare) const
 
GTEntry_toperator= (const GTEntry_t &rhs)
 
const std::string & recordLabel () const
 
const std::string & recordName () const
 
const std::string & tagName () const
 

Private Attributes

std::tuple< std::string, std::string, std::string > m_data
 

Detailed Description

Definition at line 109 of file Types.h.

Constructor & Destructor Documentation

◆ GTEntry_t() [1/3]

cond::GTEntry_t::GTEntry_t ( )
inline

Definition at line 111 of file Types.h.

111 : m_data() {}

◆ GTEntry_t() [2/3]

cond::GTEntry_t::GTEntry_t ( const std::tuple< std::string, std::string, std::string > &  gtEntryData)
inline

Definition at line 112 of file Types.h.

112 : m_data(gtEntryData) {}

◆ GTEntry_t() [3/3]

cond::GTEntry_t::GTEntry_t ( const GTEntry_t rhs)
inline

Definition at line 113 of file Types.h.

113 : m_data(rhs.m_data) {}

Member Function Documentation

◆ hashvalue()

std::size_t cond::GTEntry_t::hashvalue ( ) const
inline

Definition at line 123 of file Types.h.

123  {
124  // Derived from CondDB v1 TagMetadata implementation.
125  // Unique Keys constructed with Record and Labels - allowing for multiple references of the same Tag in a GT
126  std::hash<std::string> hasher;
128  if (!recordLabel().empty())
129  key = key + "_" + recordLabel();
130  std::size_t result = hasher(key);
131  return result;
132  }

References relativeConstraints::empty, visDQMUpload::hasher, crabWrapper::key, recordLabel(), recordName(), mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by operator<().

◆ operator<()

bool cond::GTEntry_t::operator< ( const GTEntry_t toCompare) const
inline

Definition at line 133 of file Types.h.

133 { return this->hashvalue() < toCompare.hashvalue(); }

References hashvalue().

◆ operator=()

GTEntry_t& cond::GTEntry_t::operator= ( const GTEntry_t rhs)
inline

Definition at line 115 of file Types.h.

115  {
116  m_data = rhs.m_data;
117  return *this;
118  }

References m_data.

◆ recordLabel()

const std::string& cond::GTEntry_t::recordLabel ( ) const
inline

Definition at line 121 of file Types.h.

121 { return std::get<1>(m_data); }

References m_data.

Referenced by CondDBESSource::fillTagCollectionFromDB(), and hashvalue().

◆ recordName()

const std::string& cond::GTEntry_t::recordName ( ) const
inline

Definition at line 120 of file Types.h.

120 { return std::get<0>(m_data); }

References m_data.

Referenced by CondDBESSource::fillTagCollectionFromDB(), and hashvalue().

◆ tagName()

const std::string& cond::GTEntry_t::tagName ( ) const
inline

Definition at line 122 of file Types.h.

122 { return std::get<2>(m_data); }

References m_data.

Referenced by CondDBESSource::fillTagCollectionFromDB().

Member Data Documentation

◆ m_data

std::tuple<std::string, std::string, std::string> cond::GTEntry_t::m_data
private

Definition at line 136 of file Types.h.

Referenced by operator=(), recordLabel(), recordName(), and tagName().

AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cond::GTEntry_t::hashvalue
std::size_t hashvalue() const
Definition: Types.h:123
cond::GTEntry_t::m_data
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:136
visDQMUpload.hasher
hasher
Definition: visDQMUpload.py:152
cond::GTEntry_t::recordLabel
const std::string & recordLabel() const
Definition: Types.h:121
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46
mps_fire.result
result
Definition: mps_fire.py:303
crabWrapper.key
key
Definition: crabWrapper.py:19
cond::GTEntry_t::recordName
const std::string & recordName() const
Definition: Types.h:120