ROOT logo
AliRoot » STEER » CDB » AliCDBGrid

class AliCDBGrid: public AliCDBStorage


AliCDBGrid										
access class to a DataBase in an AliEn storage  			


Function Members (Methods)

public:
voidTObject::AbstractMethod(const char* method) const
voidAliCDBStorage::AddSelection(const AliCDBId& selection)
voidAliCDBStorage::AddSelection(const AliCDBPath& path, const AliCDBRunRange& runRange, Int_t version, Int_t subVersion = -1)
voidAliCDBStorage::AddSelection(const AliCDBPath& path, Int_t firstRun, Int_t lastRun, Int_t version, Int_t subVersion = -1)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual Bool_tContains(const char* path) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
AliCDBEntry*AliCDBStorage::Get(const AliCDBId& query)
AliCDBEntry*AliCDBStorage::Get(const AliCDBPath& path, Int_t runNumber, Int_t version = -1, Int_t subVersion = -1)
AliCDBEntry*AliCDBStorage::Get(const AliCDBPath& path, const AliCDBRunRange& runRange, Int_t version = -1, Int_t subVersion = -1)
TList*AliCDBStorage::GetAll(const AliCDBId& query)
TList*AliCDBStorage::GetAll(const AliCDBPath& path, Int_t runNumber, Int_t version = -1, Int_t subVersion = -1)
TList*AliCDBStorage::GetAll(const AliCDBPath& path, const AliCDBRunRange& runRange, Int_t version = -1, Int_t subVersion = -1)
const TString&AliCDBStorage::GetBaseFolder() const
AliCDBManager::DataTypeAliCDBStorage::GetDataType() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*GetMirrorSEs() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TObjArray*AliCDBStorage::GetQueryCDBList()
virtual const char*TObject::GetTitle() const
const TString&AliCDBStorage::GetType() const
virtual UInt_tTObject::GetUniqueID() const
const TString&AliCDBStorage::GetURI() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual Bool_tHasSubVersion() const
virtual Bool_tIdToFilename(const AliCDBId& id, TString& filename) const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tIsReadOnly() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
voidAliCDBStorage::PrintQueryCDB()
voidAliCDBStorage::PrintSelectionList()
Bool_tAliCDBStorage::Put(AliCDBEntry* entry, const char* mirrors = "", AliCDBManager::DataType type = AliCDBManager::kPrivate)
Bool_tAliCDBStorage::Put(TObject* object, AliCDBId& id, AliCDBMetaData* metaData, const char* mirrors = "", AliCDBManager::DataType type = AliCDBManager::kPrivate)
voidAliCDBStorage::QueryCDB(Int_t run, const char* pathFilter = "*", Int_t version = -1, AliCDBMetaData* mdFilter = 0)
virtual Int_tTObject::Read(const char* name)
voidAliCDBStorage::ReadSelectionFromFile(const char* fileName)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidAliCDBStorage::RemoveAllSelections()
voidAliCDBStorage::RemoveSelection(const AliCDBId& selection)
voidAliCDBStorage::RemoveSelection(int position)
voidAliCDBStorage::RemoveSelection(const AliCDBPath& path, const AliCDBRunRange& runRange)
voidAliCDBStorage::RemoveSelection(const AliCDBPath& path, Int_t firstRun = -1, Int_t lastRun = -1)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetMirrorSEs(const char* mirrors)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetRetry(Int_t nretry, Int_t initsec)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidAliCDBStorage::SetURI(const TString& uri)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual TList*GetEntries(const AliCDBId& queryId)
virtual AliCDBEntry*GetEntry(const AliCDBId& queryId)
virtual AliCDBId*GetEntryId(const AliCDBId& queryId)
virtual TList*GetIdListFromFile(const char* fileName)
voidAliCDBStorage::GetSelection(AliCDBId* id)
voidAliCDBStorage::LoadTreeFromFile(AliCDBEntry* entry) const
voidTObject::MakeZombie()
virtual Bool_tPutEntry(AliCDBEntry* entry, const char* mirrors = "")
private:
AliCDBGrid(const AliCDBGrid& db)
AliCDBGrid(const char* gridUrl, const char* user, const char* dbFolder, const char* se, const char* cacheFolder, Bool_t operateDisconnected, Long64_t cacheSize, Long_t cleanupInterval)
(unknown)()
Bool_tAddTag(TString& foldername, const char* tagname)
Bool_tFilenameToId(TString& filename, AliCDBId& id)
AliCDBEntry*GetEntryFromFile(TString& filename, AliCDBId* dataId)
AliCDBId*GetId(const TObjArray& validFileIds, const AliCDBId& query)
voidMakeQueryFilter(Int_t firstRun, Int_t lastRun, const AliCDBMetaData* md, TString& result) const
AliCDBGrid&operator=(const AliCDBGrid& db)
Bool_tPrepareId(AliCDBId& id)
Bool_tPutInCvmfs(TString& fullFilename, TFile* cdbFile) const
virtual voidQueryValidFiles()
Bool_tTagFileId(TString& filename, const AliCDBId* id)
Bool_tTagFileMetaData(TString& filename, const AliCDBMetaData* md)
Bool_tTagShortLived(TString& filename, Bool_t value)

Data Members

protected:
TStringAliCDBStorage::fBaseFolder! Local, Grid: base folder name - Dump: file name
Short_tAliCDBStorage::fInitRetrySecondsSeconds for first retry
AliCDBMetaData*AliCDBStorage::fMetaDataFiltermetadata, used to manage list of valid files
Short_tAliCDBStorage::fNretryNumber of retries in opening the file
AliCDBPathAliCDBStorage::fPathFilterpath filter, used to manage list of valid files
Int_tAliCDBStorage::fRunrun number, used to manage list of valid files
TListAliCDBStorage::fSelectionslist of selection criteria
TStringAliCDBStorage::fType! Local, Grid: base folder name - Dump: file name
TStringAliCDBStorage::fURIstorage URI;
TObjArrayAliCDBStorage::fValidFileIdslist of Id's of the files valid for a given run (cached as fRun)
Int_tAliCDBStorage::fVersionversion, used to manage list of valid files
private:
TStringfCacheFolderlocal cache folder
Long64_tfCacheSizelocal cache size (in bytes)
Long_tfCleanupIntervallocal cache cleanup interval
TStringfDBFolderpath of the DB folder
TStringfGridUrlGrid Url ("alien://aliendb4.cern.ch:9000")
TStringfMirrorSEsMirror Storage Elements
Bool_tfOperateDisconnectedOperate disconnected flag
TStringfSEStorage Element
TStringfUserUser

Class Charts

Inheritance Chart:
TObject
AliCDBStorage
AliCDBGrid

Function documentation

AliCDBGrid(const char* gridUrl, const char* user, const char* dbFolder, const char* se, const char* cacheFolder, Bool_t operateDisconnected, Long64_t cacheSize, Long_t cleanupInterval)
constructor
Bool_t FilenameToId(TString& filename, AliCDBId& id)
 build AliCDBId from full path filename (fDBFolder/path/Run#x_#y_v#z_s0.root)
Bool_t IdToFilename(const AliCDBId& id, TString& filename) const
 build file name from AliCDBId (path, run range, version) and fDBFolder
void SetRetry(Int_t nretry, Int_t initsec)
Bool_t PrepareId(AliCDBId& id)
 prepare id (version) of the object that will be stored (called by PutEntry)
AliCDBId* GetId(const TObjArray& validFileIds, const AliCDBId& query)
 look for the Id that matches query's requests (highest or exact version)
AliCDBId* GetEntryId(const AliCDBId& queryId)
 get AliCDBId from the database
 User must delete returned object
AliCDBEntry* GetEntry(const AliCDBId& queryId)
 get AliCDBEntry from the database
AliCDBEntry* GetEntryFromFile(TString& filename, AliCDBId* dataId)
 Get AliCBEntry object from file "filename"
TList* GetEntries(const AliCDBId& queryId)
 multiple request (AliCDBStorage::GetAll)
Bool_t PutEntry(AliCDBEntry* entry, const char* mirrors = "")
 put an AliCDBEntry object into the database
Bool_t PutInCvmfs(TString& fullFilename, TFile* cdbFile) const
 Add the CDB object to cvmfs OCDB
Bool_t AddTag(TString& foldername, const char* tagname)
 add "tagname" tag (CDB or CDB_MD) to folder where object will be stored
Bool_t TagFileId(TString& filename, const AliCDBId* id)
 tag stored object in CDB table using object Id's parameters
Bool_t TagShortLived(TString& filename, Bool_t value)
 tag folder with ShortLived tag
Bool_t TagFileMetaData(TString& filename, const AliCDBMetaData* md)
 tag stored object in CDB table using object Id's parameters
TList* GetIdListFromFile(const char* fileName)
Bool_t Contains(const char* path) const
 check for path in storage's DBFolder
void QueryValidFiles()
 Query the CDB for files valid for AliCDBStorage::fRun
 Fills list fValidFileIds with AliCDBId objects extracted from CDB files
 selected from AliEn metadata.
 If fVersion was not set, fValidFileIds is filled with highest versions.
void MakeQueryFilter(Int_t firstRun, Int_t lastRun, const AliCDBMetaData* md, TString& result) const
 create filter for file query
Bool_t IsReadOnly() const
{return kFALSE;}
Bool_t HasSubVersion() const
{return kFALSE;}
void SetMirrorSEs(const char* mirrors)
{fMirrorSEs=mirrors;}
const char* GetMirrorSEs() const
{return fMirrorSEs;}
AliCDBGrid(const char* gridUrl, const char* user, const char* dbFolder, const char* se, const char* cacheFolder, Bool_t operateDisconnected, Long64_t cacheSize, Long_t cleanupInterval)