CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalDbPoolOCCI.h
Go to the documentation of this file.
1 //
2 // F.Ratnikov (UMd), Jan. 6, 2006
3 //
4 #ifndef HcalDbPoolOCCI_h
5 #define HcalDbPoolOCCI_h
6 
7 #include <memory>
8 
16 
25 namespace oracle {
26  namespace occi {
27  class Environment;
28  class Connection;
29  class Statement;
30  }
31 }
32 
34  public:
35  HcalDbPoolOCCI (const std::string& fDb);
36  ~HcalDbPoolOCCI ();
37 
38  bool getObject (HcalPedestals* fObject, const std::string& fTag, unsigned long fRun);
39  bool getObject (HcalGains* fObject, const std::string& fTag, unsigned long fRun);
40  bool getObject (HcalElectronicsMap* fObject, const std::string& fTag, unsigned long fRun);
41  private:
42  oracle::occi::Environment* mEnvironment;
43  oracle::occi::Connection* mConnect;
44  oracle::occi::Statement* mStatement;
45  std::string getMetadataToken (const std::string& fTag);
46  std::string getDataToken (const std::string& fIov, unsigned long fRun);
47  template <class T, class S> bool getObjectGeneric (T* fObject, S* fCondObject, const std::string& fTag, unsigned long fRun);
48 
49 };
50 #endif
std::string getDataToken(const std::string &fIov, unsigned long fRun)
bool getObject(HcalPedestals *fObject, const std::string &fTag, unsigned long fRun)
oracle::occi::Connection * mConnect
bool getObjectGeneric(T *fObject, S *fCondObject, const std::string &fTag, unsigned long fRun)
Gather conditions data from online DB.
oracle::occi::Environment * mEnvironment
std::string getMetadataToken(const std::string &fTag)
oracle::occi::Statement * mStatement
long double T
HcalDbPoolOCCI(const std::string &fDb)