AliRoot Core  3abf5b4 (3abf5b4)
 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 
65  static Bool_t WriteMpData(Int_t startRun, Int_t endRun);
66  static Bool_t WriteMpRunData(Int_t startRun, Int_t endRun);
67 
68  static Bool_t WriteMpSegmentation(Bool_t readData = true);
69  static Bool_t WriteDDLStore(Bool_t readData= true);
70  static Bool_t WriteManuStore(Bool_t readData= true);
71 
72  static Bool_t GenerateMpData(
73  const char* cdbpath = "local://$ALICE_ROOT/OCDB",
74  Int_t runNumber = 0);
75  static Bool_t GenerateMpRunData(
76  const char* cdbpath = "local://$ALICE_ROOT/OCDB",
77  Int_t runNumber = 0);
78 
79  // Switch loading
80  static void SetLoadFromData(Bool_t loadFromData);
81 
82  // Unload mapping
83 
84  static void UnloadAll();
85 
86  private:
88  AliMpCDB();
90  AliMpCDB(const AliMpCDB& rhs);
92  AliMpCDB& operator=(const AliMpCDB& rhs);
93 
94 
95  static TObject* GetCDBEntryObject(const char* dataPath);
96  static TObject* GetCDBEntryObject(const char* dataPath,
97  const char* cdbpath,
98  Int_t runNumber);
99 
100  static Bool_t fgLoadFromData;
101 
102  ClassDef(AliMpCDB,0) // The factory for building mapping segmentations
103 };
104 
105 // inline functions
106 
107 inline void AliMpCDB::SetLoadFromData(Bool_t loadFromData)
108 {
110 
111  fgLoadFromData = loadFromData;
112 }
113 
114 #endif //ALI_MP_CDB_H
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
static Bool_t WriteMpSegmentation(Bool_t readData=true)
Definition: AliMpCDB.cxx:416
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:100
The top container class for DDLs, det elements and bus patched.
Definition: AliMpDDLStore.h:35
static Bool_t WriteMpRunData()
Definition: AliMpCDB.cxx:370
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:467
static Bool_t GenerateMpData(const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0)
Definition: AliMpCDB.cxx:492
static void SetLoadFromData(Bool_t loadFromData)
Definition: AliMpCDB.h:107
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:442
static void UnloadAll()
Definition: AliMpCDB.cxx:520
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:506
static Bool_t LoadAll(Bool_t warn=false)
Definition: AliMpCDB.cxx:196
static Bool_t LoadMpSegmentation(Bool_t warn=false)
Definition: AliMpCDB.cxx:113