EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGenericParTSQLIo.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairGenericParTSQLIo.h
1 /***************************************
2  * Author: M.Babai (M.Babai@rug.nl) *
3  * License: *
4  * Version: *
5  ***************************************/
6 #pragma once
7 #ifndef FAIR_GENERIC_PAR_TSQL_Io_H
8 #define FAIR_GENERIC_PAR_TSQL_Io_H
9 
10 // C & C++
11 #include <iostream>
12 
13 // FairRoot
14 #include "FairDetParTSQLIo.h"
15 class FairParSet;
16 class FairParamList;
17 class FairParGenericSet;
18 class FairParamObj;
19 class TList;
20 
22 {
23  public:
26 
35  FairGenericParTSQLIo(FairDbMultConnector const& cons, int const dbNum = -1);
36 
38  virtual ~FairGenericParTSQLIo();
39 
40  // Initialize and read.
41  Bool_t init(FairParSet* pPar);
42 
44  Bool_t read(FairParGenericSet* pPar);
45 
46  // Fetch the starting of the current run and inser param set into the Database.
47  Int_t write(FairParSet* pars);
48 
49  // Write parameter set to the Database.
50  Int_t writeSet(FairParGenericSet* pars);
51 
52  //protected:
53  private:
54  // To Avoid mistakes.
57 
58  ClassDef(FairGenericParTSQLIo, 0)
59 };
60 #endif//FAIR_GENERIC_PAR_TSQL_Io_H