CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 std::tuple< std::string, std::string, std::string > &gtEntryData)
 
 GTEntry_t (const GTEntry_t &rhs)
 
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 112 of file Types.h.

Constructor & Destructor Documentation

cond::GTEntry_t::GTEntry_t ( )
inline

Definition at line 114 of file Types.h.

114  :
115  m_data(){
116  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:152
cond::GTEntry_t::GTEntry_t ( const std::tuple< std::string, std::string, std::string > &  gtEntryData)
inline

Definition at line 117 of file Types.h.

117  :
118  m_data( gtEntryData ){
119  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:152
cond::GTEntry_t::GTEntry_t ( const GTEntry_t rhs)
inline

Definition at line 120 of file Types.h.

120  :
121  m_data( rhs.m_data ){
122  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:152

Member Function Documentation

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

Definition at line 138 of file Types.h.

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

Referenced by operator<().

138  {
139  // Derived from CondDB v1 TagMetadata implementation.
140  // Unique Keys constructed with Record and Labels - allowing for multiple references of the same Tag in a GT
141  boost::hash<std::string> hasher;
143  if( !recordLabel().empty() ) key = key +"_"+recordLabel();
144  std::size_t result=hasher(key);
145  return result;
146  }
tuple result
Definition: mps_fire.py:84
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const std::string & recordLabel() const
Definition: Types.h:132
const std::string & recordName() const
Definition: Types.h:129
bool cond::GTEntry_t::operator< ( const GTEntry_t toCompare) const
inline

Definition at line 147 of file Types.h.

References hashvalue().

147  {
148  return this->hashvalue()<toCompare.hashvalue();
149  }
std::size_t hashvalue() const
Definition: Types.h:138
GTEntry_t& cond::GTEntry_t::operator= ( const GTEntry_t rhs)
inline

Definition at line 124 of file Types.h.

References m_data.

124  {
125  m_data = rhs.m_data;
126  return *this;
127  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:152
const std::string& cond::GTEntry_t::recordLabel ( ) const
inline

Definition at line 132 of file Types.h.

References m_data.

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

132  {
133  return std::get<1>(m_data);
134  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:152
const std::string& cond::GTEntry_t::recordName ( ) const
inline

Definition at line 129 of file Types.h.

References m_data.

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

129  {
130  return std::get<0>(m_data);
131  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:152
const std::string& cond::GTEntry_t::tagName ( ) const
inline

Definition at line 135 of file Types.h.

References m_data.

Referenced by CondDBESSource::fillTagCollectionFromDB().

135  {
136  return std::get<2>(m_data);
137  }
std::tuple< std::string, std::string, std::string > m_data
Definition: Types.h:152

Member Data Documentation

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

Definition at line 152 of file Types.h.

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