]>
Commit | Line | Data |
---|---|---|
45f03c4d | 1 | ///////////////////////////////////////////////////////////////// |
2 | // Class to generate temperature sensor data base entries. | |
3 | // | |
4 | // Existing data base structure read at start of processsing. | |
5 | // 20/12-2006 HH. | |
6 | // Modification log: | |
7 | ///////////////////////////////////////////////////////////////// | |
8 | ||
9 | #ifndef AliDCSGenDB_h | |
10 | #define AliDCSGenDB_h | |
11 | ||
12 | #include <TROOT.h> | |
13 | #include <TProfile.h> | |
14 | #include <TProfile2D.h> | |
15 | #include <TH1F.h> | |
16 | #include <TFile.h> | |
17 | #include <TObjArray.h> | |
18 | ||
45f03c4d | 19 | #include "AliCDBMetaData.h" |
20 | #include "AliCDBManager.h" | |
21 | #include "AliCDBId.h" | |
22 | #include "AliCDBStorage.h" | |
23 | #include "AliDCSSensorArray.h" | |
24 | #include "AliLog.h" | |
25 | #include "TSystem.h" | |
26 | ||
27 | class AliDCSGenDB : public TObject { | |
28 | ||
29 | public: | |
30 | ||
31 | // Constructors | |
32 | ||
33 | AliDCSGenDB(); | |
45f03c4d | 34 | ~AliDCSGenDB(); |
45f03c4d | 35 | |
36 | // Functionality | |
37 | ||
38 | void MakeCalib(const char *file, const char *fMap, | |
39 | const TTimeStamp& startTime, | |
40 | const TTimeStamp& endTime, | |
41 | Int_t firstRun, Int_t lastRun, const char *calibDir); | |
42 | void MakeConfig(const char *file, Int_t firstRun, Int_t lastRun, const char *confDir); | |
43 | AliCDBMetaData* CreateMetaObject(const char *objectClassName); | |
44 | void StoreObject(const char* cdbPath, TObject* object, AliCDBMetaData* metaData); | |
45 | void Init(Int_t run, const char *configDir, const char *specificDir); | |
46 | static TClonesArray * ReadList(const char* fname, const char *title="dcsConf"); | |
47 | static TTree * ReadListTree(const char* fname, const char *title="dcsConf"); | |
48 | ||
49 | // Getters/Setters | |
50 | ||
51 | void SetFirstRun(Int_t frun){fFirstRun=frun;} | |
52 | void SetLastRun(Int_t lrun) {fLastRun=lrun;} | |
53 | TMap* SetGraphFile(const char* fname); | |
54 | void SetConfTree(TTree *tree) {fConfTree=tree;} | |
55 | TTree* GetConfTree() const {return fConfTree;} | |
56 | const TString& GetSpecificStorage() const { return fSpecificStorage;} | |
57 | void SetSpecificStorage (const TString& specificStorage) { fSpecificStorage=specificStorage; } | |
58 | const TString& GetDefaultStorage() const { return fDefaultStorage;} | |
59 | void SetDefaultStorage (const TString& defaultStorage) { fDefaultStorage=defaultStorage; } | |
60 | const AliDCSSensorArray* GetSensorArray() const {return fSensor;} | |
61 | void SetSensorArray(AliDCSSensorArray *arr) { fSensor=arr; } | |
62 | ||
63 | ||
64 | protected: | |
820e68e8 | 65 | AliDCSGenDB(const AliDCSGenDB& org); |
66 | AliDCSGenDB& operator= (const AliDCSGenDB& org); | |
45f03c4d | 67 | |
68 | Int_t fFirstRun; // first run in validity period | |
69 | Int_t fLastRun; // last run in validity period | |
70 | TString fSpecificStorage; // specific storage for data base | |
71 | TString fDefaultStorage; // default storage for data base | |
72 | AliDCSSensorArray *fSensor; // array of DCS sensors | |
73 | AliCDBStorage *fStorLoc; // pointer to CDB storage | |
45f03c4d | 74 | AliCDBMetaData *fMetaData; // data base metadata |
75 | TTree *fConfTree; // configuration tree | |
76 | ||
77 | ClassDef(AliDCSGenDB,1) | |
78 | }; | |
79 | #endif | |
80 |