]>
Commit | Line | Data |
---|---|---|
6b7a9a36 | 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 AliTPCDBPressure_h | |
10 | #define AliTPCDBPressure_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 | ||
19 | #include "AliTPCcalibDB.h" | |
20 | #include "AliCDBMetaData.h" | |
21 | #include "AliCDBManager.h" | |
22 | #include "AliCDBId.h" | |
23 | #include "AliCDBStorage.h" | |
24 | #include "AliDCSSensorArray.h" | |
25 | #include "AliLog.h" | |
26 | #include "TSystem.h" | |
27 | ||
28 | class AliTPCDBPressure : public TObject { | |
29 | ||
30 | public: | |
31 | ||
32 | AliTPCDBPressure(); | |
33 | AliTPCDBPressure(const AliTPCDBPressure& org); | |
34 | ~AliTPCDBPressure(); | |
35 | AliTPCDBPressure& operator= (const AliTPCDBPressure& org); | |
36 | void Copy(TObject &c) const; | |
37 | void MakeCalib(const char *file, const char *fMap, | |
38 | const TTimeStamp& startTime, | |
39 | const TTimeStamp& endTime, | |
40 | Int_t firstRun, Int_t lastRun); | |
41 | void MakeConfig(const char *file, Int_t firstRun, Int_t lastRun); | |
42 | AliCDBMetaData* CreateMetaObject(const char *objectClassName); | |
43 | void StoreObject(const char* cdbPath, TObject* object, AliCDBMetaData* metaData); | |
44 | void Init(Int_t run); | |
45 | void InitDB(Int_t run); | |
46 | void SetFirstRun(Int_t frun){fFirstRun=frun;} | |
47 | void SetLastRun(Int_t lrun) {fLastRun=lrun;} | |
48 | TMap* SetGraphFile(const char* fname); | |
49 | void SetConfTree(TTree *tree) {fConfTree=tree;} | |
50 | TTree* GetConfTree() const {return fConfTree;} | |
51 | static TClonesArray * ReadList(const char* fname); | |
52 | static TTree * ReadListTree(const char* fname); | |
53 | ||
54 | private: | |
55 | ||
56 | Int_t fFirstRun; // first run in validity period | |
57 | Int_t fLastRun; // last run in validity period | |
58 | AliDCSSensorArray *fPressure; // array of pressure sensors | |
59 | AliCDBStorage *fStorLoc; // pointer to CDB storage | |
60 | AliTPCcalibDB *fCalib; // calibration object | |
61 | AliCDBMetaData *fMetaData; // data base metadata | |
62 | TTree *fConfTree; // configuration tree | |
63 | ||
64 | ClassDef(AliTPCDBPressure,1) | |
65 | }; | |
66 | #endif | |
67 |