Using GRP instead of local setters
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Nov 2008 14:11:39 +0000 (14:11 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Nov 2008 14:11:39 +0000 (14:11 +0000)
test/pploadlibs/rec.C
test/pploadlibs/sim.C

index d8d8b73..1dddd90 100644 (file)
@@ -1,6 +1,4 @@
 void rec() {
-  gSystem->Load("libProof");
-  gSystem->Load("libGui");
   gROOT->Macro("loadlibsrec.C");
   new AliRun("gAlice","The ALICE Off-line Simulation Framework");
 
@@ -8,16 +6,10 @@ void rec() {
 
   reco.SetWriteESDfriend();
   reco.SetWriteAlignmentData();
-  reco.SetRecoParam("TPC",AliTPCRecoParam::GetLowFluxParam());
-  reco.SetRecoParam("TRD",AliTRDrecoParam::GetLowFluxParam());
-  reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());
-  reco.SetRecoParam("MUON",AliMUONRecoParam::GetLowFluxParam());
-  //   reco.SetInput("raw.root");
-  reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS EMCAL MUON VZERO T0 FMD PMD ZDC");
-// **** 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=kFALSE;
-  AliTracker::SetFieldMap(field,uniform);
+
+  reco.SetDefaultStorage("local://$ALICE_ROOT");
+  reco.SetSpecificStorage("GRP/GRP/Data",
+                         Form("local://%s",gSystem->pwd()));
 
   TStopwatch timer;
   timer.Start();
index d3d38c7..a5e0415 100644 (file)
@@ -1,17 +1,14 @@
 void sim(Int_t nev=20) {
-  gSystem->Load("libProof");
-  gSystem->Load("libGui");
-  if (!strcmp(gSystem->GetBuildArch(),"macosx")) gSystem->Load("libf95");
   gROOT->Macro("loadlibssim.C");
   new AliRun("gAlice","The ALICE Off-line Simulation Framework");
 
   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.SetRunHLT("");
-  simulator.SetRunQA(":");
  
+  simulator.SetDefaultStorage("local://$ALICE_ROOT");
+  simulator.SetSpecificStorage("GRP/GRP/Data",
+                              Form("local://%s",gSystem->pwd()));
   TStopwatch timer;
   timer.Start();
   simulator.Run(nev);