From 44fed3ffae9130d5ec7024c3564f605caac8ff4a Mon Sep 17 00:00:00 2001 From: cholm Date: Thu, 12 Mar 2009 21:54:14 +0000 Subject: [PATCH] Gt up to par --- FMD/Reconstruct.C | 28 +++++++++++++--------------- FMD/Simulate.C | 11 +++++++---- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/FMD/Reconstruct.C b/FMD/Reconstruct.C index 4180f5b4b46..f2b0a2072a5 100644 --- a/FMD/Reconstruct.C +++ b/FMD/Reconstruct.C @@ -23,33 +23,31 @@ /** Do reconstruction */ void -Reconstruct() +Reconstruct(bool raw=false) { - // Debug the FMD. - AliLog::SetModuleDebugLevel("FMD", 1); - // To reconstruct raw data from FDR-I, please enable below lines: // AliFMDParameters::Instance()->UseRcuTrailer(false); // AliFMDParameters::Instance()->UseCompleteHeader(false); - - // TFile* magF = TFile::Open("mag.root", "READ"); - // AliMagF* mag = static_cast(magF->Get("mag")); - // if (!mag) return; - // AliTracker::SetFieldMap(mag, true); - AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); - AliCDBManager::Instance()->SetRun(0); AliReconstruction rec; + rec.SetDefaultStorage("local://$ALICE_ROOT/OCDB"); + rec.SetSpecificStorage("GRP/GRP/Data",Form("local://%s",gSystem->pwd())); rec.SetRunLocalReconstruction("FMD"); rec.SetRunVertexFinder(kFALSE); rec.SetRunReconstruction("FMD"); rec.SetRunTracking(""); rec.SetFillESD("FMD"); rec.SetRunQA(":"); - rec.SetInput("raw.root"); - // rec.SetRecoParam("TOF", new AliTOFRecoParam()); - - rec.Run(); + if (raw) rec.SetInput("raw.root"); + + AliLog::SetModuleDebugLevel("FMD", 2); + + TStopwatch timer; + timer.Start(); + rec.Run(); + timer.Stop(); + timer.Print(); + } // diff --git a/FMD/Simulate.C b/FMD/Simulate.C index 7415b8b5986..96350fec900 100644 --- a/FMD/Simulate.C +++ b/FMD/Simulate.C @@ -24,13 +24,16 @@ void Simulate(Int_t n=1) { AliSimulation sim; - AliLog::SetModuleDebugLevel("FMD", 2); - sim.SetConfigFile("$(ALICE_ROOT)/FMD/Config.C"); + sim.SetDefaultStorage("local://$ALICE_ROOT/OCDB"); + sim.SetSpecificStorage("GRP/GRP/Data", Form("local://%s",gSystem->pwd())); + sim.SetConfigFile("./Config.C"); sim.SetMakeSDigits("FMD"); sim.SetMakeDigits("FMD"); sim.SetWriteRawData("FMD", "raw.root"); - // sim.SetMakeDigitsFromHits("FMD"); - sim.SetRunQA("FMD:ALL"); + sim.SetRunQA(":"); + + AliLog::SetModuleDebugLevel("FMD", 2); + TStopwatch w; w.Start(); sim.Run(n); -- 2.43.0