CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalO2OManager.h
Go to the documentation of this file.
1 #ifndef CaloOnlineTools_HcalOnlineDb_HcalO2OManager_h
2 #define CaloOnlineTools_HcalOnlineDb_HcalO2OManager_h
3 // -*- C++ -*-
4 //
5 // Package: HcalOnlineDb
6 // Class : HcalO2OManager
7 //
16 //
17 // Original Author: Gena Kukartsev
18 // Created: Sun Aug 16 20:45:38 CEST 2009
19 // $Id: HcalO2OManager.h,v 1.9 2010/03/07 22:53:42 kukartse Exp $
20 //
21 
22 #include<vector>
23 #include<string>
24 #include<stdint.h>
25 
27 {
28 
29  public:
31  virtual ~HcalO2OManager();
32 
33  std::vector<std::string> getListOfPoolTags(std::string connect,
34  std::string auth_path);
35 
36  // get a list of IOVs in the tag
37  // returns number of IOVs
38  // returns -1 if the tag does not exist
39  int getListOfPoolIovs(std::vector<uint32_t> & out,
40  std::string tagname,
41  std::string connect,
42  std::string auth_path);
43 
44  std::vector<std::string> getListOfOmdsTags();
45 
46  // get a list of IOVs in the tag
47  // returns number of IOVs
48  // returns -1 if the tag does not exist
49  int getListOfOmdsIovs(std::vector<uint32_t> & out, std::string tagname);
50 
51  // get a list of IOVs that need to be copied from OMDS to ORCON
52  // returns number of IOVs to be copied
53  // returns -1 if the synchronisation is not possible
54  int getListOfNewIovs(std::vector<uint32_t> & iovs,
55  const std::vector<uint32_t> & omds_iovs,
56  const std::vector<uint32_t> & orcon_iovs);
57  void getListOfNewIovs_test(void);
58 
59  // get list of IOVs to update for a given tag, or report impossible
60  // return:
61  // list of IOVs as first argument,
62  // number of IOVs to update as return value
63  // -1 if tag is inconsistent with the update
64  // 0 if everything's up to date already
65  int getListOfUpdateIovs(std::vector<uint32_t> & _iovs,
66  std::string _tag,
67  std::string pool_connect_string,
68  std::string pool_auth_path
69  );
70 
71  private:
72 
73 
74 };
75 
76 
77 #endif
virtual ~HcalO2OManager()
int getListOfNewIovs(std::vector< uint32_t > &iovs, const std::vector< uint32_t > &omds_iovs, const std::vector< uint32_t > &orcon_iovs)
int getListOfUpdateIovs(std::vector< uint32_t > &_iovs, std::string _tag, std::string pool_connect_string, std::string pool_auth_path)
string pool_auth_path
Definition: o2o.py:29
tuple out
Definition: dbtoconf.py:99
std::vector< std::string > getListOfOmdsTags()
int getListOfPoolIovs(std::vector< uint32_t > &out, std::string tagname, std::string connect, std::string auth_path)
int getListOfOmdsIovs(std::vector< uint32_t > &out, std::string tagname)
std::vector< std::string > getListOfPoolTags(std::string connect, std::string auth_path)
void getListOfNewIovs_test(void)