AliRoot Core  edcc906 (edcc906)
AliOCDBtoolkit.h
Go to the documentation of this file.
1 #ifndef ALIOCDBTOOLKIT_H
2 #define ALIOCDBTOOLKIT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 
7 
8 #include <TObject.h>
9 class TStopwatch;
10 class TTree;
11 class TMemStatManager;
12 using std::fstream;
13 class AliProdInfo;
14 class AliOCDBtoolkit : public TObject {
15 public:
16  static void MakeDiffExampleUseCase(); // example usage
17  static void DumpOCDBAsTxt(const TString fInput,const TString fType, const TString outfile);
18  static void MakeSnapshotFromTxt(const TString fInput,const TString outfile, Bool_t singleKeys);
19  static void LoadAliOCDBtoolkitSetup(Int_t verbose);
20  static Bool_t IsEntrySelected(TString entry, TObjArray *selList);
21  static Double_t SetXRDTimeOutAll(Double_t timeOut); //timeout to read OCDB
22  //
23  static Bool_t ParseInfoFromOcdbString(TString ocdbString, TString &ocdbPath, Int_t &run0, Int_t &run1, Int_t &version, Int_t &subVersion);
24  static Bool_t ParseInfoFromOcdbString(TString ocdbString, AliCDBId &cdbId);
25  static TList * ConvertListStringToCDBId(TList */*cdbList0*/);
26  static void CleanCDBPath(TString &cdbPath, Bool_t useCVMFSPath);
27  //
28  // Load OCDB entries
29  //
30  static void SetStorage(const TMap *cdbMap0);
31  static void LoadOCDBFromMap(const TMap *cdbMap, const TList *cdbList);
32  static void LoadOCDBFromLog(const char *logName, Int_t verbose);
33  static void LoadOCDBFromESD(const char *fname="AliESDs.root");
34  static void LoadOCDBFromList(const char */*ocdbList*/){;} // to be implemented
35 
36  //
37  // Dump object functionality
38  //
39  static void DumpOCDB(const TMap *cdbMap0, const TList *cdbList0, const TString outfile);
40  static void DumpObjectRecursive(TObject *obj);
41  static void DumpObjectRecursive(TObject *obj, TString prefix, Int_t &counterRec);
42  static void DumpOCDBFile(const char *finput , const char *foutput, Bool_t dumpMetaData, TString printOption);
43  static void MakeDiff(const TMap *cdbMap0, const TList *cdbList0, const TMap *cdbMap1, const TList *cdbList1, Int_t verbose);
44  //
45  // addopt OCDB entry
46  //
47  static Bool_t AddoptOCDBEntry( const char *finput, const char *output, Int_t ustartRun, Int_t uendRun);
48  // settings
49  static TObjArray * fgExcludeList; // list of excluded OCDB entries
50  static TObjArray * fgXmlOCDBDumpList; // list of entries for XML dump to file
51  static TObjArray * fgPrintOCDBDumpList; // list of entries for Print dump to file
52  static Int_t fgVerbose; // verbosity flag
53  static Int_t fgRun; // current run number
54  static TString fgPath; // path to the source of OCDB descriptor e.g. alien:///alice/data/2010/LHC10d/000126158/pass4/10000126158023.10/AliESDs.root
55  static AliProdInfo * fgProdInfo; // production information
56 private:
57  AliOCDBtoolkit(const AliOCDBtoolkit& source);
59 
60  ClassDef(AliOCDBtoolkit,0)
61 };
62 
63 #endif
static AliProdInfo * fgProdInfo
static void CleanCDBPath(TString &cdbPath, Bool_t useCVMFSPath)
static TObjArray * fgPrintOCDBDumpList
static void DumpObjectRecursive(TObject *obj)
static void MakeDiffExampleUseCase()
#define TObjArray
static void LoadOCDBFromLog(const char *logName, Int_t verbose)
static void MakeDiff(const TMap *cdbMap0, const TList *cdbList0, const TMap *cdbMap1, const TList *cdbList1, Int_t verbose)
static TObjArray * fgXmlOCDBDumpList
static Double_t SetXRDTimeOutAll(Double_t timeOut)
static void LoadOCDBFromList(const char *)
static void DumpOCDB(const TMap *cdbMap0, const TList *cdbList0, const TString outfile)
static void SetStorage(const TMap *cdbMap0)
static Bool_t AddoptOCDBEntry(const char *finput, const char *output, Int_t ustartRun, Int_t uendRun)
static TList * ConvertListStringToCDBId(TList *)
static void LoadAliOCDBtoolkitSetup(Int_t verbose)
Int_t run0
static Int_t fgVerbose
AliOCDBtoolkit(const AliOCDBtoolkit &source)
static void DumpOCDBFile(const char *finput, const char *foutput, Bool_t dumpMetaData, TString printOption)
static void LoadOCDBFromESD(const char *fname="AliESDs.root")
static void DumpOCDBAsTxt(const TString fInput, const TString fType, const TString outfile)
char * prefix
void rec(const char *filename="raw.root")
Definition: rec.C:1
static TString fgPath
static void LoadOCDBFromMap(const TMap *cdbMap, const TList *cdbList)
AliOCDBtoolkit & operator=(const AliOCDBtoolkit &rec)
static void MakeSnapshotFromTxt(const TString fInput, const TString outfile, Bool_t singleKeys)
static Bool_t ParseInfoFromOcdbString(TString ocdbString, TString &ocdbPath, Int_t &run0, Int_t &run1, Int_t &version, Int_t &subVersion)
static Bool_t IsEntrySelected(TString entry, TObjArray *selList)
static TObjArray * fgExcludeList
Int_t run1
char * fname
static Int_t fgRun