CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TagCollectionRetriever.h
Go to the documentation of this file.
1 #ifndef CondCore_TagCollection_TagCollectionRetriever_h
2 #define CondCore_TagCollection_TagCollectionRetriever_h
3 //
4 // Package: CondCore/TagCollection
5 // Class: TagCollectionRetriever
6 //
10 //
11 // Author: Zhen Xie
12 //
13 
14 #include <set>
15 #include <string>
19 namespace cond{
21  public:
23  explicit TagCollectionRetriever( cond::DbSession& coraldb );
25  std::string const & prefix,
26  std::string const & postfix);
29 
30  bool existsTagDatabase();
31 
33 
34  bool selectTagCollection( const std::string& globaltag,
35  std::set<cond::TagMetadata>& result);
39  void getTagCollection( const std::string& globaltag,
40  std::set<cond::TagMetadata>& result);
41  private:
43  std::pair<std::string,std::string> parseglobaltag(const std::string& globaltag);
46 
47  };
48 }//ns cond
49 #endif
bool selectTagCollection(const std::string &globaltag, std::set< cond::TagMetadata > &result)
list globaltag
Definition: align_cfg.py:7
void getTagCollection(const std::string &globaltag, std::set< cond::TagMetadata > &result)
std::pair< std::string, std::string > parseglobaltag(const std::string &globaltag)
parse global tag string returns result in pair &lt;treename,nodename&gt;
tuple result
Definition: query.py:137
bool existsTagCollection(const std::string &globaltag)
TagCollectionRetriever(cond::DbSession &coraldb)
constructor