Using GRP instead of local setters
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Nov 2008 16:40:55 +0000 (16:40 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Nov 2008 16:40:55 +0000 (16:40 +0000)
test/gun/rec.C
test/gun/recraw/rec.C
test/gun/sim.C

index 2816f9a..6da03f9 100644 (file)
@@ -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();
index e18853d..0b1a95d 100644 (file)
@@ -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();
index ef1e7d2..92f57fa 100644 (file)
@@ -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);