From d79ed89634ed2e4e48ce8e092e4790ec1432a4f0 Mon Sep 17 00:00:00 2001 From: hristov Date: Thu, 20 Nov 2008 16:40:55 +0000 Subject: [PATCH] Using GRP instead of local setters --- test/gun/rec.C | 20 ++++---------------- test/gun/recraw/rec.C | 22 +++++----------------- test/gun/sim.C | 5 +++++ 3 files changed, 14 insertions(+), 33 deletions(-) diff --git a/test/gun/rec.C b/test/gun/rec.C index 2816f9a10e1..6da03f96caf 100644 --- a/test/gun/rec.C +++ b/test/gun/rec.C @@ -3,22 +3,10 @@ void rec() { reco.SetWriteESDfriend(); reco.SetWriteAlignmentData(); - AliTPCReconstructor::SetStreamLevel(1); - // reco.SetRecoParam("ITS",AliITSRecoParam::GetLowFluxParam()); - reco.SetRecoParam("TPC",AliTPCRecoParam::GetLowFluxParam()); - reco.SetRecoParam("TRD",AliTRDrecoParam::GetLowFluxParam()); - reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters()); - reco.SetRecoParam("MUON",AliMUONRecoParam::GetLowFluxParam()); - // AliTPCReconstructor::SetRecoParam(AliTPCRecoParam::GetLowFluxParam()); - // reco.SetInput("raw.root"); - // reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS EMCAL MUON T0 VZERO FMD PMD ZDC"); - - AliCDBManager::Instance()->SetCacheFlag(kFALSE); - -// **** The field map settings must be the same as in Config.C ! - AliMagFMaps *field=new AliMagFMaps("Maps","Maps",2,1.,10.,AliMagFMaps::k5kG); - Bool_t uniform=kTRUE; - AliTracker::SetFieldMap(field,uniform); + + reco.SetDefaultStorage("local://$ALICE_ROOT"); + reco.SetSpecificStorage("GRP/GRP/Data", + Form("local://%s",gSystem->pwd())); TStopwatch timer; timer.Start(); diff --git a/test/gun/recraw/rec.C b/test/gun/recraw/rec.C index e18853ddb72..0b1a95d3567 100644 --- a/test/gun/recraw/rec.C +++ b/test/gun/recraw/rec.C @@ -1,30 +1,18 @@ void rec() { - AliCDBManager::Instance()->SetRun(0); - - AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., AliMagFMaps::k5kG); - AliTracker::SetFieldMap(field,kTRUE); - AliReconstruction reco; - reco.SetUniformFieldTracking(kFALSE); reco.SetWriteESDfriend(); reco.SetWriteAlignmentData(); - // AliTPCReconstructor::SetStreamLevel(1); - // reco.SetRecoParam("ITS",AliITSRecoParam::GetLowFluxParam()); - reco.SetRecoParam("TPC",AliTPCRecoParam::GetLowFluxParam()); - reco.SetRecoParam("TRD",AliTRDrecoParam::GetLowFluxParam()); - reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters()); - reco.SetRecoParam("MUON",AliMUONRecoParam::GetLowFluxParam()); - - reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS EMCAL MUON FMD PMD ZDC T0 VZERO"); + + reco.SetDefaultStorage("local://$ALICE_ROOT"); + reco.SetSpecificStorage("GRP/GRP/Data", + Form("local://%s/..",gSystem->pwd())); + reco.SetInput("raw.root"); reco.SetNumberOfEventsPerFile(-1); // all events in one single file - reco.SetRunQA(":"); - reco.SetRunGlobalQA(kTRUE); - TStopwatch timer; timer.Start(); reco.Run(); diff --git a/test/gun/sim.C b/test/gun/sim.C index ef1e7d20279..92f57fad3d1 100644 --- a/test/gun/sim.C +++ b/test/gun/sim.C @@ -1,9 +1,14 @@ void sim(Int_t nev=4) { + AliSimulation simulator; simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO"); simulator.SetMakeDigitsFromHits("ITS TPC"); simulator.SetWriteRawData("ALL","raw.root",kTRUE); + simulator.SetDefaultStorage("local://$ALICE_ROOT"); + simulator.SetSpecificStorage("GRP/GRP/Data", + Form("local://%s",gSystem->pwd())); + TStopwatch timer; timer.Start(); simulator.Run(nev); -- 2.39.3