test
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 //
20 
21 #include<vector>
22 #include<string>
23 #include<stdint.h>
24 
26 {
27 
28  public:
30  virtual ~HcalO2OManager();
31 
32  std::vector<std::string> getListOfPoolTags(std::string connect,
33  std::string auth_path);
34 
35  // get a list of IOVs in the tag
36  // returns number of IOVs
37  // returns -1 if the tag does not exist
38  int getListOfPoolIovs(std::vector<uint32_t> & out,
40  std::string connect,
41  std::string auth_path);
42 
43  std::vector<std::string> getListOfOmdsTags();
44 
45  // get a list of IOVs in the tag
46  // returns number of IOVs
47  // returns -1 if the tag does not exist
48  int getListOfOmdsIovs(std::vector<uint32_t> & out, std::string tagname);
49 
50  // get a list of IOVs that need to be copied from OMDS to ORCON
51  // returns number of IOVs to be copied
52  // returns -1 if the synchronisation is not possible
53  int getListOfNewIovs(std::vector<uint32_t> & iovs,
54  const std::vector<uint32_t> & omds_iovs,
55  const std::vector<uint32_t> & orcon_iovs);
56  void getListOfNewIovs_test(void);
57 
58  // get list of IOVs to update for a given tag, or report impossible
59  // return:
60  // list of IOVs as first argument,
61  // number of IOVs to update as return value
62  // -1 if tag is inconsistent with the update
63  // 0 if everything's up to date already
64  int getListOfUpdateIovs(std::vector<uint32_t> & _iovs,
65  std::string _tag,
66  std::string pool_connect_string,
68  );
69 
70  private:
71 
72 
73 };
74 
75 
76 #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
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)