2 /////////////////////////////////////////////////////////////////
3 // Class to generate temperature sensor data base entries.
5 // Existing data base structure read at start of processsing.
8 /////////////////////////////////////////////////////////////////
15 #include <TProfile2D.h>
18 #include <TObjArray.h>
20 #include "AliCDBMetaData.h"
21 #include "AliCDBManager.h"
23 #include "AliCDBStorage.h"
24 #include "AliDCSSensorArray.h"
28 class AliDCSGenDB : public TObject {
35 AliDCSGenDB(const char* defaultStorage, const char* specificStorage);
40 void MakeCalib(const char *file, const char *fMap,
41 const TTimeStamp& startTime,
42 const TTimeStamp& endTime,
43 Int_t firstRun, Int_t lastRun, const char *calibDir);
44 void MakeConfig(const char *file, Int_t firstRun, Int_t lastRun,
46 AliCDBMetaData* CreateMetaObject(const char *objectClassName);
47 void StoreObject(const char* cdbPath, TObject* object, AliCDBMetaData* metaData);
48 void Init(Int_t run, const char *configDir,
49 const char *specificDir,
50 const char *sensorClass="AliDCSSensorArray");
51 static TClonesArray * ReadList(const char* fname, const char *title="dcsConf");
52 static TTree * ReadListTree(const char* fname, const char *title="dcsConf");
56 void SetFirstRun(Int_t frun){fFirstRun=frun;}
57 void SetLastRun(Int_t lrun) {fLastRun=lrun;}
58 TMap* SetGraphFile(const char* fname);
59 void SetConfTree(TTree *tree) {fConfTree=tree;}
60 TTree* GetConfTree() const {return fConfTree;}
61 const TString& GetSpecificStorage() const { return fSpecificStorage;}
62 void SetSpecificStorage (const TString& specificStorage) { fSpecificStorage=specificStorage; }
63 const TString& GetDefaultStorage() const { return fDefaultStorage;}
64 void SetDefaultStorage (const TString& defaultStorage) { fDefaultStorage=defaultStorage; }
65 const AliDCSSensorArray* GetSensorArray() const {return fSensor;}
66 void SetSensorArray(AliDCSSensorArray *arr) { fSensor=arr; }
70 AliDCSGenDB(const AliDCSGenDB& org);
71 AliDCSGenDB& operator= (const AliDCSGenDB& org);
73 Int_t fFirstRun; // first run in validity period
74 Int_t fLastRun; // last run in validity period
75 TString fSpecificStorage; // specific storage for data base
76 TString fDefaultStorage; // default storage for data base
77 AliDCSSensorArray *fSensor; // array of DCS sensors
78 AliCDBStorage *fStorLoc; // pointer to CDB storage
79 AliCDBMetaData *fMetaData; // data base metadata
80 TTree *fConfTree; // configuration tree
82 ClassDef(AliDCSGenDB,1)