}
SetDefaultStorage(dbString.Data());
- if(!fDefaultStorage) AliFatal(Form("%s storage not there! Please check!",fLHCPeriod.Data()));
+ fStartRunLHCPeriod=0;
+ fEndRunLHCPeriod=AliCDBRunRange::Infinity();
+ if(!fDefaultStorage) AliFatal(Form("%s storage not there! Please check!",dbString.Data()));
}
}
//_____________________________________________________________________________
return kFALSE;
}
- Printf("The CDB manager is set in snapshot mode: cache->snapshot->defaultstorage");
+ AliInfo("The CDB manager is set in snapshot mode!");
fSnapshotMode = kTRUE;
return kTRUE;
return 0;
}
+//_____________________________________________________________________________
+Int_t AliCDBManager::GetStartRunLHCPeriod(){
+ // get the first run of validity
+ // for the current period
+ // if set
+ if(fStartRunLHCPeriod==-1)
+ AliWarning("Run-range not yet set for the current LHC period.");
+ return fStartRunLHCPeriod;
+}
+
+//_____________________________________________________________________________
+Int_t AliCDBManager::GetEndRunLHCPeriod(){
+ // get the last run of validity
+ // for the current period
+ // if set
+ if(fEndRunLHCPeriod==-1)
+ AliWarning("Run-range not yet set for the current LHC period.");
+ return fEndRunLHCPeriod;
+}
+
+//_____________________________________________________________________________
+TString AliCDBManager::GetLHCPeriod(){
+ // get the current LHC period string
+ //
+ if(fLHCPeriod.IsWhitespace() || fLHCPeriod.IsNull())
+ AliWarning("LHC period (OCDB folder) not yet set");
+ return fLHCPeriod;
+}
+
//_____________________________________________________________________________
AliCDBId* AliCDBManager::GetId(const AliCDBPath& path, Int_t runNumber,
Int_t version, Int_t subVersion) {
void UnsetSnapshotMode() {fSnapshotMode=kFALSE;}
void DumpToSnapshotFile(const char* snapshotFileName, Bool_t singleKeys);
+ Int_t GetStartRunLHCPeriod();
+ Int_t GetEndRunLHCPeriod();
+ TString GetLHCPeriod();
+
protected:
static TString fgkCondUri; // URI of the Conditions data base folder