Use static method from OADBContainer instead of AnalysisManager
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Jun 2011 13:03:03 +0000 (13:03 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Jun 2011 13:03:03 +0000 (13:03 +0000)
OADB/AliOADBPWG2Spectra.cxx

index ce925ae..b978f69 100644 (file)
@@ -1,4 +1,5 @@
 #include "AliOADBPWG2Spectra.h"
+#include "AliOADBContainer.h"
 #include "TNamed.h"
 #include "TString.h"
 #include "TH1D.h"
@@ -48,7 +49,7 @@ void AliOADBPWG2Spectra::Init() {
 const char * AliOADBPWG2Spectra::GetOADBPWG2SpectraFileName()  {
   // get file name to the OADB
   static TString filename;
-  filename.Form("%s/PWG2/SPECTRA/spectraResults.root", AliAnalysisManager::GetOADBPath()); 
+  filename.Form("%s/PWG2/SPECTRA/spectraResults.root", AliOADBContainer::GetOADBPath()); 
   return filename.Data();
 
 }