Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondCore
DBCommon
interface
TagMetadata.h
Go to the documentation of this file.
1
#ifndef DBCommon_TagMetadata_h
2
#define DBCommon_TagMetadata_h
3
#include <string>
4
#include <boost/functional/hash.hpp>
5
namespace
cond{
6
class
TagMetadata
{
7
public
:
8
std::string
tag
;
9
std::string
pfn
;
10
std::string
recordname
;
11
std::string
labelname
;
12
std::string
objectname
;
13
std::size_t
hashvalue
()
const
{
14
boost::hash<std::string> hasher;
15
std::size_t
result
=hasher(
tag
+
pfn
);
16
return
result
;
17
}
18
bool
operator<
(
const
TagMetadata
& toCompare )
const
{
19
return
this->
hashvalue
()<toCompare.
hashvalue
();
20
}
21
};
22
}
23
#endif
cond::TagMetadata::objectname
std::string objectname
Definition:
TagMetadata.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
cond::TagMetadata::labelname
std::string labelname
Definition:
TagMetadata.h:11
cond::TagMetadata::tag
std::string tag
Definition:
TagMetadata.h:8
cond::TagMetadata::hashvalue
std::size_t hashvalue() const
Definition:
TagMetadata.h:13
query.result
tuple result
Definition:
query.py:137
cond::TagMetadata::pfn
std::string pfn
Definition:
TagMetadata.h:9
cond::TagMetadata
Definition:
TagMetadata.h:6
cond::TagMetadata::operator<
bool operator<(const TagMetadata &toCompare) const
Definition:
TagMetadata.h:18
cond::TagMetadata::recordname
std::string recordname
Definition:
TagMetadata.h:10
Generated for CMSSW Reference Manual by
1.8.5