![]() |
AliRoot Core
ee782a0 (ee782a0)
|
#include <AliCDBStorage.h>
Public Member Functions | |
AliCDBStorage () | |
void | SetURI (const TString &uri) |
const TString & | GetURI () const |
const TString & | GetType () const |
const TString & | GetBaseFolder () const |
AliCDBManager::DataType | GetDataType () const |
void | ReadSelectionFromFile (const char *fileName) |
void | AddSelection (const AliCDBId &selection) |
void | AddSelection (const AliCDBPath &path, const AliCDBRunRange &runRange, Int_t version, Int_t subVersion=-1) |
void | AddSelection (const AliCDBPath &path, Int_t firstRun, Int_t lastRun, Int_t version, Int_t subVersion=-1) |
void | RemoveSelection (const AliCDBId &selection) |
void | RemoveSelection (const AliCDBPath &path, const AliCDBRunRange &runRange) |
void | RemoveSelection (const AliCDBPath &path, Int_t firstRun=-1, Int_t lastRun=-1) |
void | RemoveSelection (int position) |
void | RemoveAllSelections () |
void | PrintSelectionList () |
AliCDBEntry * | Get (const AliCDBId &query) |
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) |
TList * | GetAll (const AliCDBId &query) |
TList * | GetAll (const AliCDBPath &path, Int_t runNumber, Int_t version=-1, Int_t subVersion=-1) |
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, const char *mirrors="", AliCDBManager::DataType type=AliCDBManager::kPrivate) |
Bool_t | Put (AliCDBEntry *entry, const char *mirrors="", AliCDBManager::DataType type=AliCDBManager::kPrivate) |
virtual void | SetMirrorSEs (const char *mirrors) |
virtual const char * | GetMirrorSEs () const |
virtual Bool_t | IsReadOnly () const =0 |
virtual Bool_t | HasSubVersion () const =0 |
virtual Bool_t | Contains (const char *path) const =0 |
virtual Bool_t | IdToFilename (const AliCDBId &id, TString &filename) const =0 |
void | QueryCDB (Int_t run, const char *pathFilter="*", Int_t version=-1, AliCDBMetaData *mdFilter=0) |
void | PrintQueryCDB () |
TObjArray * | GetQueryCDBList () |
virtual void | SetRetry (Int_t nretry, Int_t initsec)=0 |
void | SetMaxDate (time_t maxDate) |
void | SetMaxDate (TTimeStamp maxDate) |
time_t | GetMaxDate () const |
Protected Member Functions | |
virtual | ~AliCDBStorage () |
void | GetSelection (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, const char *mirrors="")=0 |
virtual TList * | GetIdListFromFile (const char *fileName)=0 |
virtual void | QueryValidFiles ()=0 |
void | LoadTreeFromFile (AliCDBEntry *entry) const |
time_t | GuidToCreationTimestamp (const TString &guid) const |
Protected Attributes | |
TObjArray | fValidFileIds |
Int_t | fRun |
AliCDBPath | fPathFilter |
Int_t | fVersion |
AliCDBMetaData * | fMetaDataFilter |
TList | fSelections |
TString | fURI |
TString | fType |
TString | fBaseFolder |
Local, Grid: base folder name - Dump: file name. More... | |
Short_t | fNretry |
Local, Grid: base folder name - Dump: file name. More... | |
Short_t | fInitRetrySeconds |
time_t | fMaxDate |
Private Member Functions | |
AliCDBStorage (const AliCDBStorage &source) | |
AliCDBStorage & | operator= (const AliCDBStorage &source) |
Definition at line 27 of file AliCDBStorage.h.
AliCDBStorage::AliCDBStorage | ( | ) |
Definition at line 30 of file AliCDBStorage.cxx.
|
protectedvirtual |
Definition at line 51 of file AliCDBStorage.cxx.
Referenced by GetMaxDate().
|
private |
void AliCDBStorage::AddSelection | ( | const AliCDBId & | selection | ) |
Definition at line 111 of file AliCDBStorage.cxx.
Referenced by AddSelection(), GetBaseFolder(), and ReadSelectionFromFile().
void AliCDBStorage::AddSelection | ( | const AliCDBPath & | path, |
const AliCDBRunRange & | runRange, | ||
Int_t | version, | ||
Int_t | subVersion = -1 |
||
) |
Definition at line 132 of file AliCDBStorage.cxx.
void AliCDBStorage::AddSelection | ( | const AliCDBPath & | path, |
Int_t | firstRun, | ||
Int_t | lastRun, | ||
Int_t | version, | ||
Int_t | subVersion = -1 |
||
) |
Definition at line 140 of file AliCDBStorage.cxx.
|
pure virtual |
Implemented in AliCDBDump, AliCDBGrid, and AliCDBLocal.
Referenced by GetBaseFolder().
AliCDBEntry * AliCDBStorage::Get | ( | const AliCDBId & | query | ) |
Definition at line 207 of file AliCDBStorage.cxx.
Referenced by AliGeomManager::ApplyAlignObjsToGeom(), Get(), AliCDBManager::Get(), AliCDBManager::GetAll(), GetBaseFolder(), AliRunLoader::GetCDBEntry(), AliFMDAlignFaker::GetGeometry(), MakeEMCALFullMisAlignment(), MakeEMCALResMisAlignment(), MakeMUONFullMisAlignment(), MakeMUONResMisAlignment(), MakeMUONZeroMisAlignment(), MakeTPCFullMisAlignment(), MakeTPCResMisAlignment(), MakeTPCZeroMisAlignment(), ReadDCSAliasMap(), SetOCDBFromRun1(), and TestPreprocessor().
AliCDBEntry * AliCDBStorage::Get | ( | const AliCDBPath & | path, |
Int_t | runNumber, | ||
Int_t | version = -1 , |
||
Int_t | subVersion = -1 |
||
) |
Definition at line 241 of file AliCDBStorage.cxx.
AliCDBEntry * AliCDBStorage::Get | ( | const AliCDBPath & | path, |
const AliCDBRunRange & | runRange, | ||
Int_t | version = -1 , |
||
Int_t | subVersion = -1 |
||
) |
Definition at line 249 of file AliCDBStorage.cxx.
TList * AliCDBStorage::GetAll | ( | const AliCDBId & | query | ) |
Definition at line 258 of file AliCDBStorage.cxx.
Referenced by GetAll(), and GetBaseFolder().
TList * AliCDBStorage::GetAll | ( | const AliCDBPath & | path, |
Int_t | runNumber, | ||
Int_t | version = -1 , |
||
Int_t | subVersion = -1 |
||
) |
Definition at line 305 of file AliCDBStorage.cxx.
TList * AliCDBStorage::GetAll | ( | const AliCDBPath & | path, |
const AliCDBRunRange & | runRange, | ||
Int_t | version = -1 , |
||
Int_t | subVersion = -1 |
||
) |
Definition at line 314 of file AliCDBStorage.cxx.
|
inline |
Definition at line 36 of file AliCDBStorage.h.
Referenced by AliMUONAlignmentTask::FinishTaskOutput(), GetDataType(), and AliMUONAlignmentTask::NotifyRun().
AliCDBManager::DataType AliCDBStorage::GetDataType | ( | ) | const |
Definition at line 513 of file AliCDBStorage.cxx.
Referenced by GetBaseFolder(), and Put().
|
protectedpure virtual |
Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.
Referenced by GetAll(), and GetMaxDate().
|
protectedpure virtual |
Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.
Referenced by Get(), and GetMaxDate().
Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.
Referenced by GetId(), and GetMaxDate().
Definition at line 322 of file AliCDBStorage.cxx.
Referenced by GetBaseFolder(), GetId(), and AliCDBManager::GetId().
AliCDBId * AliCDBStorage::GetId | ( | const AliCDBPath & | path, |
Int_t | runNumber, | ||
Int_t | version = -1 , |
||
Int_t | subVersion = -1 |
||
) |
Definition at line 345 of file AliCDBStorage.cxx.
AliCDBId * AliCDBStorage::GetId | ( | const AliCDBPath & | path, |
const AliCDBRunRange & | runRange, | ||
Int_t | version = -1 , |
||
Int_t | subVersion = -1 |
||
) |
Definition at line 353 of file AliCDBStorage.cxx.
|
protectedpure virtual |
Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.
Referenced by GetMaxDate(), and ReadSelectionFromFile().
|
inline |
Definition at line 106 of file AliCDBStorage.h.
Referenced by AliCDBManager::QueryCDB().
|
virtual |
Reimplemented in AliCDBGrid.
Definition at line 543 of file AliCDBStorage.cxx.
Referenced by GetBaseFolder(), and AliCDBManager::GetMirrorSEs().
|
inline |
Definition at line 102 of file AliCDBStorage.h.
|
protected |
Definition at line 61 of file AliCDBStorage.cxx.
Referenced by AliCDBGrid::GetEntries(), AliCDBDump::GetEntryId(), AliCDBGrid::GetEntryId(), and GetMaxDate().
|
inline |
Definition at line 35 of file AliCDBStorage.h.
Referenced by AliMUONAlignmentTask::FinishTaskOutput(), GetDataType(), GetMirrorSEs(), AliCDBManager::GetMirrorSEs(), AliCDBManager::GetStorage(), AliMUONAlignmentTask::NotifyRun(), AliCDBManager::QueryCDB(), SetMirrorSEs(), and AliCDBManager::SetMirrorSEs().
|
inline |
Definition at line 34 of file AliCDBStorage.h.
Referenced by AliFMDAlignFaker::AliFMDAlignFaker(), AliMUONPainterDataSourceFrame::AliMUONPainterDataSourceFrame(), AliMUONTrackerDataMaker::Ctor(), AliCDBManager::GetURI(), AliSimulation::InitCDB(), AliReconstruction::InitCDB(), AliSimulation::InitQA(), AliTPCcalibDButil::MakeRunList(), Menu::Menu(), AliCDBManager::Print(), AliCDBManager::Put(), and AliCDBManager::SetDefaultStorage().
|
protected |
Definition at line 419 of file AliCDBStorage.cxx.
Referenced by GetMaxDate(), and AliCDBGrid::QueryValidFiles().
|
pure virtual |
Implemented in AliCDBDump, AliCDBGrid, and AliCDBLocal.
Referenced by GetBaseFolder().
|
pure virtual |
Implemented in AliCDBDump, AliCDBGrid, and AliCDBLocal.
Referenced by GetBaseFolder().
|
pure virtual |
Implemented in AliCDBDump, AliCDBGrid, and AliCDBLocal.
Referenced by GetBaseFolder().
|
protected |
Definition at line 557 of file AliCDBStorage.cxx.
Referenced by AliCDBGrid::GetEntryFromFile(), and GetMaxDate().
|
private |
void AliCDBStorage::PrintQueryCDB | ( | ) |
Definition at line 483 of file AliCDBStorage.cxx.
Referenced by GetBaseFolder().
void AliCDBStorage::PrintSelectionList | ( | ) |
Definition at line 192 of file AliCDBStorage.cxx.
Referenced by GetBaseFolder(), and ReadSelectionFromFile().
Bool_t AliCDBStorage::Put | ( | TObject * | object, |
AliCDBId & | id, | ||
AliCDBMetaData * | metaData, | ||
const char * | mirrors = "" , |
||
AliCDBManager::DataType | type = AliCDBManager::kPrivate |
||
) |
Definition at line 362 of file AliCDBStorage.cxx.
Referenced by AliOCDBtoolkit::AddoptOCDBEntry(), AliEMCALSetRecParamCDB(), AliEMCALSetSimParamCDB(), CDBAlignmentObjectCreation(), CreateIonTailObject(), CreateRefMap(), AliCDBManager::Drain(), GetBaseFolder(), MakeEMCALFullMisAlignment(), MakeEMCALPF(), MakeEMCALResMisAlignment(), MakeEMCALZeroMisAlignment(), MakeMUONFullMisAlignment(), MakeMUONResMisAlignment(), MakeMUONZeroMisAlignment(), MakeOCDBEntry(), MakeTPCAltroMapping(), MakeTPCFullMisAlignment(), MakeTPCRecoParam(), MakeTPCRecoParam_Run2Dist(), MakeTPCRecoParam_Run2DistMC(), MakeTPCResMisAlignment(), MakeTPCZeroMisAlignment(), ModifyRecoParamHLTUsage(), AliCDBManager::Put(), SetCC(), SetOCDBFromRun1(), SetTowerStatusMap(), AliTPCAlign::StoreAlignObj(), AliTPCCorrection::StoreInOCDB(), AliDCSGenDB::StoreObject(), StoreObject(), StoreParam(), UpdateCDBCTPConfig(), UpdateEffSectorOCDB(), UpdateOCDBAlign(), UpdateOCDBAlign0(), UpdateOCDBGain(), WriteDCSAliasMap(), AliSimulation::WriteGRPEntry(), and AliFMDAlignFaker::WriteToCDB().
Bool_t AliCDBStorage::Put | ( | AliCDBEntry * | entry, |
const char * | mirrors = "" , |
||
AliCDBManager::DataType | type = AliCDBManager::kPrivate |
||
) |
Definition at line 376 of file AliCDBStorage.cxx.
|
protectedpure virtual |
Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.
Referenced by GetMaxDate(), and Put().
void AliCDBStorage::QueryCDB | ( | Int_t | run, |
const char * | pathFilter = "*" , |
||
Int_t | version = -1 , |
||
AliCDBMetaData * | mdFilter = 0 |
||
) |
Definition at line 439 of file AliCDBStorage.cxx.
Referenced by GetBaseFolder(), AliCDBManager::GetStorage(), and AliCDBManager::QueryCDB().
|
protectedpure virtual |
Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.
Referenced by GetMaxDate(), and QueryCDB().
void AliCDBStorage::ReadSelectionFromFile | ( | const char * | fileName | ) |
Definition at line 86 of file AliCDBStorage.cxx.
Referenced by GetBaseFolder().
void AliCDBStorage::RemoveAllSelections | ( | ) |
Definition at line 185 of file AliCDBStorage.cxx.
Referenced by GetBaseFolder(), ReadSelectionFromFile(), and ~AliCDBStorage().
void AliCDBStorage::RemoveSelection | ( | const AliCDBId & | selection | ) |
Definition at line 148 of file AliCDBStorage.cxx.
Referenced by GetBaseFolder(), and RemoveSelection().
void AliCDBStorage::RemoveSelection | ( | const AliCDBPath & | path, |
const AliCDBRunRange & | runRange | ||
) |
Definition at line 162 of file AliCDBStorage.cxx.
void AliCDBStorage::RemoveSelection | ( | const AliCDBPath & | path, |
Int_t | firstRun = -1 , |
||
Int_t | lastRun = -1 |
||
) |
Definition at line 170 of file AliCDBStorage.cxx.
void AliCDBStorage::RemoveSelection | ( | int | position | ) |
Definition at line 178 of file AliCDBStorage.cxx.
void AliCDBStorage::SetMaxDate | ( | time_t | maxDate | ) |
Definition at line 506 of file AliCDBStorage.cxx.
Referenced by GetQueryCDBList(), AliCDBManager::GetStorage(), and AliCDBManager::QueryCDB().
|
inline |
Definition at line 105 of file AliCDBStorage.h.
Referenced by SetMaxDate().
|
virtual |
Reimplemented in AliCDBGrid.
Definition at line 529 of file AliCDBStorage.cxx.
Referenced by GetBaseFolder(), and AliCDBManager::SetMirrorSEs().
|
pure virtual |
Implemented in AliCDBDump, AliCDBGrid, and AliCDBLocal.
Referenced by GetQueryCDBList().
|
inline |
Definition at line 33 of file AliCDBStorage.h.
Referenced by AliCDBManager::GetStorage().
|
protected |
Local, Grid: base folder name - Dump: file name.
Definition at line 131 of file AliCDBStorage.h.
Referenced by GetBaseFolder(), and QueryCDB().
|
protected |
Definition at line 133 of file AliCDBStorage.h.
Referenced by AliCDBGrid::PutEntry(), and AliCDBGrid::SetRetry().
|
protected |
Definition at line 135 of file AliCDBStorage.h.
Referenced by GetMaxDate(), AliCDBGrid::QueryValidFiles(), and SetMaxDate().
|
protected |
Definition at line 126 of file AliCDBStorage.h.
Referenced by AliCDBGrid::GetEntries(), AliCDBGrid::GetEntryId(), PrintQueryCDB(), QueryCDB(), AliCDBGrid::QueryValidFiles(), and ~AliCDBStorage().
|
protected |
Local, Grid: base folder name - Dump: file name.
Definition at line 132 of file AliCDBStorage.h.
Referenced by AliCDBGrid::PutEntry(), and AliCDBGrid::SetRetry().
|
protected |
Definition at line 124 of file AliCDBStorage.h.
Referenced by AliCDBGrid::GetEntries(), AliCDBGrid::GetEntryId(), PrintQueryCDB(), QueryCDB(), and AliCDBGrid::QueryValidFiles().
|
protected |
Definition at line 123 of file AliCDBStorage.h.
Referenced by AliCDBGrid::GetEntries(), AliCDBGrid::GetEntryId(), PrintQueryCDB(), QueryCDB(), AliCDBGrid::QueryValidFiles(), and SetMaxDate().
|
protected |
Definition at line 128 of file AliCDBStorage.h.
Referenced by AddSelection(), GetSelection(), PrintSelectionList(), ReadSelectionFromFile(), RemoveAllSelections(), and RemoveSelection().
|
protected |
Definition at line 130 of file AliCDBStorage.h.
Referenced by GetType(), and QueryCDB().
|
protected |
Definition at line 129 of file AliCDBStorage.h.
|
protected |
Definition at line 122 of file AliCDBStorage.h.
Referenced by AliCDBGrid::GetEntries(), AliCDBGrid::GetEntryId(), GetQueryCDBList(), PrintQueryCDB(), QueryCDB(), AliCDBGrid::QueryValidFiles(), and ~AliCDBStorage().
|
protected |
Definition at line 125 of file AliCDBStorage.h.
Referenced by AliCDBGrid::GetEntries(), AliCDBGrid::GetEntryId(), PrintQueryCDB(), QueryCDB(), and AliCDBGrid::QueryValidFiles().