Using GRP instead of local setters. Creation of AOD for from the RAW ESDs. No need...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Nov 2008 09:44:16 +0000 (09:44 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Nov 2008 09:44:16 +0000 (09:44 +0000)
test/PbPbbench/rec.C
test/PbPbbench/recraw/rec.C
test/PbPbbench/runtest.sh
test/PbPbbench/sim.C

index 4946441..9a7ccc8 100644 (file)
@@ -3,18 +3,11 @@ void rec() {
 
   reco.SetWriteESDfriend();
   reco.SetWriteAlignmentData();
-  reco.SetRecoParam("ITS",AliITSRecoParam::GetHighFluxParam());
-  reco.SetRecoParam("TPC",AliTPCRecoParam::GetHighFluxParam());
-  reco.SetRecoParam("TRD",AliTRDrecoParam::GetHighFluxParam());
-  reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());
-  reco.SetRecoParam("MUON",AliMUONRecoParam::GetHighFluxParam());
-  //  AliTPCReconstructor::SetStreamLevel(1);
-  reco.SetRunVertexFinderTracks(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=kFALSE;
-  AliTracker::SetFieldMap(field,uniform);
+  reco.SetDefaultStorage("local://$ALICE_ROOT");
+  reco.SetSpecificStorage("GRP/GRP/Data",
+                         Form("local://%s",gSystem->pwd()));
+  reco.SetRecoParam("ITS",AliITSRecoParam::GetHighFluxParam()); // to change the default vertexer
 
   TStopwatch timer;
   timer.Start();
index 194a5ed..3733185 100644 (file)
@@ -1,25 +1,19 @@
 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();
-  reco.SetRecoParam("TPC",AliTPCRecoParam::GetHighFluxParam());
-  reco.SetRecoParam("TRD",AliTRDrecoParam::GetHighFluxParam());
-  reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());
-  reco.SetRecoParam("MUON",AliMUONRecoParam::GetHighFluxParam());
 
-  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.SetRecoParam("ITS",AliITSRecoParam::GetHighFluxParam()); // to change the default vertexer
+
   reco.SetInput("raw.root");
 
   reco.SetNumberOfEventsPerFile(-1); // all events in one single file
-  reco.SetRunVertexFinderTracks(kFALSE);
 
   TStopwatch timer;
   timer.Start();
index befc274..6a5b78d 100755 (executable)
@@ -20,9 +20,9 @@ aliroot -b -q ${ALICE_ROOT}/STEER/CheckESD.C 2>&1 | tee check.log
 aliroot -b -q ${ALICE_ROOT}/STEER/CreateAODfromESD.C 2>&1 | tee aod.log
 
 cd recraw
-ln -s ../geometry.root
 ln -s ../raw.root
 aliroot -b -q rec.C      2>&1 | tee rec.log
+aliroot -b -q ${ALICE_ROOT}/STEER/CreateAODfromESD.C 2>&1 | tee aod.log
 
 
 
index b145334..55f41df 100644 (file)
@@ -1,6 +1,10 @@
 void sim(Int_t nev=1) {
   AliSimulation simulator;
   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();