// Default constructor
AliCDBManager *cdb = AliCDBManager::Instance();
cdb->SetDefaultStorage(storage);
- cdb->SetRun(run);
DefineInput (0, TChain::Class());
if (run>0) InitGRP();
}
//______________________________________________________________________________
void AliTaskCDBconnect::InitGRP()
{
-// Initialize geometry and mag. field
+ // Initialize geometry and mag. field
+ AliCDBManager *cdb = AliCDBManager::Instance();
+ if (!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("raw://");
+ cdb->SetRun(fRun);
if (!fGRPManager) fGRPManager = new AliGRPManager();
AliInfo("AliCDBconnect: #### Loading GRP to init B-field...");
if(!fGRPManager->ReadGRPEntry()) AliFatal("Cannot get GRP entry");
if (!gGeoManager) {
AliInfo("AliCDBconnect: #### Loading geometry...");
AliGeomManager::LoadGeometry("geometry.root");
- if(!AliGeomManager::ApplyAlignObjsFromCDB("GRP ITS TPC TRD")) AliFatal("Problem with align objects");
+ if(!AliGeomManager::ApplyAlignObjsFromCDB("GRP ITS TPC TRD")) AliWarning("Problem with align objects");
}
}
// try to init before the analysis set
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) AliFatal("No analysis manager");
- if ( fRun>0 && mgr->IsProofMode() ) {
- // in the proof mode the initialization done in the constructor is not available
+ if ( fRun>0 && !fGRPManager) {
+ // in the proof or plugin mode the initialization done in the constructor is not available
InitGRP();
}
else {
// Intercept when the run number changed
if (fRun != run) {
fRun = run;
- AliCDBManager *cdb = AliCDBManager::Instance();
- cdb->SetRun(run);
InitGRP();
}
}
+
+//______________________________________________________________________________
+void AliTaskCDBconnect::SetSpecificStorage(const char* calibType, const char* dbString)
+{
+ AliCDBManager *cdb = AliCDBManager::Instance();
+ cdb->SetSpecificStorage(calibType,dbString);
+ }