test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondCore
MetaDataService
interface
MetaData.h
Go to the documentation of this file.
1
#ifndef CondCore_MetaDataService_METADATA_H
2
#define CondCore_MetaDataService_METADATA_H
3
#include <string>
4
#include <vector>
5
#include "
CondCore/DBCommon/interface/Time.h
"
6
#include "
CondCore/DBCommon/interface/DbSession.h
"
7
#include "
MetaDataEntry.h
"
8
//
9
// Package: MetaDataService
10
// Class : MetaData
11
//
15
//
16
// Author: Zhen Xie
17
//
18
namespace
cond{
19
class
MetaData
{
20
public
:
21
// constructor
22
explicit
MetaData
(
cond::DbSession
& userSession );
23
// destructor
24
~MetaData
();
25
// add metadata entry
26
bool
addMapping
(
const
std::string
&
name
,
const
std::string
& token,
cond::TimeType
timetype
=
cond::runnumber
);
27
// replace iov token associated with a given tag
28
//bool replaceToken(const std::string& name, const std::string& newtoken);
29
// if given iov tag exists
30
bool
hasTag
(
const
std::string
& name )
const
;
31
// list all tags
32
void
listAllTags
( std::vector<std::string>&
result
)
const
;
33
// list all entries in the metadata table
34
//void listAllEntries( std::vector<cond::MetaDataEntry>& result ) const;
35
// get iov token associated with given tag
36
const
std::string
getToken
(
const
std::string
&
tagname
)
const
;
37
// get the metadata table entry by tag name
38
//void getEntryByTag( const std::string& tagname, cond::MetaDataEntry& result )const;
39
// delete all entries in the metadata table
40
void
deleteAllEntries
();
41
// delete metadata entry selected by iov token
42
//void deleteEntryByToken( const std::string& token );
43
// delete metadata entry selected by tag name
44
void
deleteEntryByTag
(
const
std::string
&
tag
);
45
private
:
46
// create metadata table
47
//void createTable(const std::string& tabname);
48
mutable
cond::DbSession
m_userSession
;
49
};
50
}
51
#endif
52
cond::MetaData
Definition:
MetaData.h:19
cond::MetaData::deleteAllEntries
void deleteAllEntries()
Definition:
MetaData.cc:89
dtNoiseCalibration_cfg.timetype
tuple timetype
Definition:
dtNoiseCalibration_cfg.py:26
cond::MetaData::m_userSession
cond::DbSession m_userSession
Definition:
MetaData.h:48
Time.h
cond::MetaData::getToken
const std::string getToken(const std::string &tagname) const
Definition:
MetaData.cc:52
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
cond::runnumber
Definition:
Time.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
cond::TimeType
TimeType
Definition:
Time.h:21
MetaDataEntry.h
cond::MetaData::~MetaData
~MetaData()
Definition:
MetaData.cc:33
cond::MetaData::MetaData
MetaData(cond::DbSession &userSession)
Definition:
MetaData.cc:31
GlobalPosition_Frontier_DevDB_cff.tag
tuple tag
Definition:
GlobalPosition_Frontier_DevDB_cff.py:11
cond::MetaData::addMapping
bool addMapping(const std::string &name, const std::string &token, cond::TimeType timetype=cond::runnumber)
Definition:
MetaData.cc:36
cond::MetaData::hasTag
bool hasTag(const std::string &name) const
Definition:
MetaData.cc:68
query.result
tuple result
Definition:
query.py:137
DbSession.h
cond::DbSession
Definition:
DbSession.h:31
cond::MetaData::deleteEntryByTag
void deleteEntryByTag(const std::string &tag)
Definition:
MetaData.cc:97
createPayload.tagname
string tagname
Definition:
createPayload.py:181
cond::MetaData::listAllTags
void listAllTags(std::vector< std::string > &result) const
Definition:
MetaData.cc:80
Generated for CMSSW Reference Manual by
1.8.5