}
out.close();
}
+
+//______________________________________________________________________________
+const char* AliAnalysisManager::GetOADBPath()
+{
+// returns the path of the OADB
+// this static function just depends on environment variables
+
+ static TString oadbPath;
+
+ if (gSystem->Getenv("OADB_PATH"))
+ oadbPath = gSystem->Getenv("OADB_PATH");
+ else if (gSystem->Getenv("ALICE_ROOT"))
+ oadbPath.Form("%s/OADB", gSystem->Getenv("ALICE_ROOT"));
+ else
+ cout << "ERROR: Cannot figure out AODB path. Define ALICE_ROOT or OADB_PATH!" << endl;
+
+ return oadbPath;
+}
void WriteStatisticsMsg(Int_t nevents);
Int_t GetNcalls() const {return fNcalls;}
Bool_t ValidateOutputFiles() const;
+
+ static const char* GetOADBPath();
protected:
void ImportWrappers(TList *source);
--- /dev/null
+void SETUP()
+{
+ // Set our location, so that other packages can find us
+ gSystem->Setenv("OADB_PATH", "OADB");
+}