]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGPP/AliTaskCDBconnect.cxx
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PWGPP / AliTaskCDBconnect.cxx
index 2bd7cea68c99ea757267fcccb2aabc132c2de60e..30f63d66fb6907d34b084f63c9bc148ab3695d4b 100644 (file)
@@ -87,8 +87,8 @@ void AliTaskCDBconnect::CreateOutputObjects()
   //  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 {
@@ -116,3 +116,10 @@ void AliTaskCDBconnect::Exec(Option_t* /*option*/)
     InitGRP();
   }
 }
+
+//______________________________________________________________________________
+void AliTaskCDBconnect::SetSpecificStorage(const char* calibType, const char* dbString)
+{
+    AliCDBManager *cdb = AliCDBManager::Instance();
+    cdb->SetSpecificStorage(calibType,dbString);
+ }