X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliCDBStorage.h;h=d8c3fcf558c93ab90032075affff043d01013c30;hb=dc461f61d9635d7a99c82260712e14bf2daeebef;hp=26beac8452fbad02297eaf5d883fda4b35172445;hpb=b8ec52f69ada46c4dbbb96cc30c20be43998b5ec;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliCDBStorage.h b/STEER/AliCDBStorage.h index 26beac8452f..d8c3fcf558c 100644 --- a/STEER/AliCDBStorage.h +++ b/STEER/AliCDBStorage.h @@ -22,6 +22,7 @@ class AliCDBEntry; class AliCDBPath; class AliCDBParam; +class TFile; class AliCDBStorage: public TObject { @@ -66,7 +67,7 @@ public: void PrintSelectionList(); AliCDBEntry* Get(const AliCDBId& query); - AliCDBEntry* Get(const AliCDBPath& path, Int_t runNumber, + AliCDBEntry* Get(const AliCDBPath& path, Int_t runNumber, Int_t version = -1, Int_t subVersion = -1); AliCDBEntry* Get(const AliCDBPath& path, const AliCDBRunRange& runRange, Int_t version = -1, Int_t subVersion = -1); @@ -77,6 +78,12 @@ public: TList* GetAll(const AliCDBPath& path, const AliCDBRunRange& runRange, Int_t version = -1, Int_t subVersion = -1); + AliCDBId* GetId(const AliCDBId& query); + AliCDBId* GetId(const AliCDBPath& path, Int_t runNumber, + Int_t version = -1, Int_t subVersion = -1); + AliCDBId* GetId(const AliCDBPath& path, const AliCDBRunRange& runRange, + Int_t version = -1, Int_t subVersion = -1); + Bool_t Put(TObject* object, AliCDBId& id, AliCDBMetaData* metaData, AliCDBManager::DataType type=AliCDBManager::kPrivate); Bool_t Put(AliCDBEntry* entry, AliCDBManager::DataType type=AliCDBManager::kPrivate); @@ -99,10 +106,13 @@ protected: virtual ~AliCDBStorage(); void GetSelection(/*const*/ AliCDBId* id); virtual AliCDBEntry* GetEntry(const AliCDBId& query) = 0; + virtual AliCDBId* GetEntryId(const AliCDBId& query) = 0; virtual TList* GetEntries(const AliCDBId& query) = 0; virtual Bool_t PutEntry(AliCDBEntry* entry) = 0; virtual TList *GetIdListFromFile(const char* fileName)=0; virtual void QueryValidFiles() = 0; + void LoadTreeFromFile(AliCDBEntry* entry) const; + //void SetTreeToFile(AliCDBEntry* entry, TFile* file) const; TObjArray fValidFileIds; // list of Id's of the files valid for a given run (cached as fRun) Int_t fRun; // run number, used to manage list of valid files