From 15381c8b165447263dec8a4d70f42f71936ca8ac Mon Sep 17 00:00:00 2001 From: ivana Date: Mon, 26 Nov 2007 11:47:25 +0000 Subject: [PATCH] Added setting the default CDB storage, as it is not done automatically anymore. --- MUON/MUONefficiency.C | 5 +++++ MUON/runReconstruction.C | 2 ++ 2 files changed, 7 insertions(+) diff --git a/MUON/MUONefficiency.C b/MUON/MUONefficiency.C index c6b84fcfd03..71125391c5c 100644 --- a/MUON/MUONefficiency.C +++ b/MUON/MUONefficiency.C @@ -63,6 +63,7 @@ #include "AliESDEvent.h" #include "AliESDVertex.h" #include "AliTracker.h" +#include "AliCDBManager.h" // MUON includes #include "AliMUONTrackParam.h" @@ -82,6 +83,10 @@ Bool_t MUONefficiency( char* filename = "galice.root", char* geoFilename = "geom Int_t ExtrapToVertex = -1, Int_t ResType = 553, Int_t FirstEvent = 0, Int_t LastEvent = 1000000 ) { // MUONefficiency starts + // Set default CDB storage + AliCDBManager* man = AliCDBManager::Instance(); + man->SetDefaultStorage("local://$ALICE_ROOT"); + Double_t MUON_MASS = 0.105658369; Double_t UPSILON_MASS = 9.4603 ; Double_t JPSI_MASS = 3.097; diff --git a/MUON/runReconstruction.C b/MUON/runReconstruction.C index e4bc2847e90..7f35d86d68b 100644 --- a/MUON/runReconstruction.C +++ b/MUON/runReconstruction.C @@ -32,6 +32,8 @@ void runReconstruction(int run, int seed, const char* input, const char* recoptions) { AliCDBManager::Instance()->SetRun(run); + AliCDBManager* man = AliCDBManager::Instance(); + man->SetDefaultStorage("local://$ALICE_ROOT"); gRandom->SetSeed(seed); -- 2.43.0