AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpCDB.h
Go to the documentation of this file.
1 #ifndef ALI_MP_CDB_H
2 #define ALI_MP_CDB_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
27 
28 #ifndef ROOT_TObject
29 # include <TObject.h>
30 #endif
31 
32 class AliMpSegmentation;
33 class AliMpDDLStore;
34 
35 class AliMpCDB : public TObject {
36 
37  public:
38  // static methods
39  //
40 
41  static Bool_t LoadMpSegmentation(Bool_t warn = false);
42  static Bool_t LoadDDLStore(Bool_t warn = false);
43  static Bool_t LoadManuStore(Bool_t warn = false);
44  static Bool_t LoadAll(Bool_t warn = false);
45 
46  static Bool_t LoadMpSegmentation2(
47  const char* cdbpath = "local://$ALICE_ROOT/OCDB",
48  Int_t runNumber = 0,
49  Bool_t warn = false);
50  static Bool_t LoadDDLStore2(
51  const char* cdbpath = "local://$ALICE_ROOT/OCDB",
52  Int_t runNumber = 0,
53  Bool_t warn = false);
54  static Bool_t LoadManuStore2(
55  const char* cdbpath = "local://$ALICE_ROOT/OCDB",
56  Int_t runNumber = 0,
57  Bool_t warn = false);
58  static Bool_t LoadAll2(const char* cdbpath = "local://$ALICE_ROOT/OCDB",
59  Int_t runNumber = 0,
60  Bool_t warn = false);
61 
62  static Bool_t WriteMpData();
63  static Bool_t WriteMpRunData();
64  static Bool_t WriteMpSegmentation(Bool_t readData = true);
65  static Bool_t WriteDDLStore(Bool_t readData= true);
66  static Bool_t WriteManuStore(Bool_t readData= true);
67 
68  static Bool_t GenerateMpData(
69  const char* cdbpath = "local://$ALICE_ROOT/OCDB",
70  Int_t runNumber = 0);
71  static Bool_t GenerateMpRunData(
72  const char* cdbpath = "local://$ALICE_ROOT/OCDB",
73  Int_t runNumber = 0);
74 
75  // Switch loading
76  static void SetLoadFromData(Bool_t loadFromData);
77 
78  // Unload mapping
79 
80  static void UnloadAll();
81 
82  private:
84  AliMpCDB();
86  AliMpCDB(const AliMpCDB& rhs);
88  AliMpCDB& operator=(const AliMpCDB& rhs);
89 
90 
91  static TObject* GetCDBEntryObject(const char* dataPath);
92  static TObject* GetCDBEntryObject(const char* dataPath,
93  const char* cdbpath,
94  Int_t runNumber);
95 
96  static Bool_t fgLoadFromData;
97 
98  ClassDef(AliMpCDB,0) // The factory for building mapping segmentations
99 };
100 
101 // inline functions
102 
103 inline void AliMpCDB::SetLoadFromData(Bool_t loadFromData)
104 {
106 
107  fgLoadFromData = loadFromData;
108 }
109 
110 #endif //ALI_MP_CDB_H
111 
112 
113 
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
static Bool_t WriteMpSegmentation(Bool_t readData=true)
Definition: AliMpCDB.cxx:404
Singleton container class for mapping segmentations.
static Bool_t WriteMpData()
Definition: AliMpCDB.cxx:364
static Bool_t fgLoadFromData
option for loading from CDB mapping data or from CDB mapping objects
Definition: AliMpCDB.h:96
The top container class for DDLs, det elements and bus patched.
Definition: AliMpDDLStore.h:35
static Bool_t WriteMpRunData()
Definition: AliMpCDB.cxx:384
static Bool_t LoadDDLStore(Bool_t warn=false)
Definition: AliMpCDB.cxx:149
static Bool_t LoadDDLStore2(const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0, Bool_t warn=false)
Definition: AliMpCDB.cxx:282
static Bool_t LoadManuStore(Bool_t warn=false)
Definition: AliMpCDB.cxx:203
AliMpCDB()
Not implemented.
static Bool_t WriteManuStore(Bool_t readData=true)
Definition: AliMpCDB.cxx:455
static Bool_t GenerateMpData(const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0)
Definition: AliMpCDB.cxx:480
static void SetLoadFromData(Bool_t loadFromData)
Definition: AliMpCDB.h:103
Manager class for mapping CDB IO.
Definition: AliMpCDB.h:35
static Bool_t LoadManuStore2(const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0, Bool_t warn=false)
Definition: AliMpCDB.cxx:323
static TObject * GetCDBEntryObject(const char *dataPath)
Definition: AliMpCDB.cxx:54
static Bool_t WriteDDLStore(Bool_t readData=true)
Definition: AliMpCDB.cxx:430
static void UnloadAll()
Definition: AliMpCDB.cxx:508
AliMpCDB & operator=(const AliMpCDB &rhs)
Not implemented.
static Bool_t LoadMpSegmentation2(const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0, Bool_t warn=false)
Definition: AliMpCDB.cxx:241
static Bool_t LoadAll2(const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0, Bool_t warn=false)
Definition: AliMpCDB.cxx:187
static Bool_t GenerateMpRunData(const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0)
Definition: AliMpCDB.cxx:494
static Bool_t LoadAll(Bool_t warn=false)
Definition: AliMpCDB.cxx:196
static Bool_t LoadMpSegmentation(Bool_t warn=false)
Definition: AliMpCDB.cxx:113