]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/macros/RawSimulation/AliPHOSRawReconstruction.C
Reconstruction parameters now can be changed on the fly using AliPHOSRecoParam.
[u/mrichter/AliRoot.git] / PHOS / macros / RawSimulation / AliPHOSRawReconstruction.C
index 0c25bbe584d75ef4b957506e6aea3fc24ce02cc0..e6b2dfe36530e9269b0b8ffb359b78bbf1bdfbba 100644 (file)
@@ -1,19 +1,26 @@
 void AliPHOSRawReconstruction(TString file="raw.root")
 {
   // Reconstruction of RAW data from the input file raw.root
-  // Boris Polichtchouk, 13 October 2006
+  // Boris Polichtchouk, 31 Aug 2007
+
+
+  //AliLog::SetGlobalDebugLevel(1);
 
   AliReconstruction rec ;
 //   rec.SetOption("PHOS","OldRCUFormat");
-  rec.SetRunTracking("PHOS") ;
+  rec.SetRunTracking("") ;
   rec.SetRunVertexFinder(kFALSE) ; 
   rec.SetRunLocalReconstruction("PHOS") ;
-  rec.SetFillESD("") ;
+  rec.SetFillESD("PHOS") ;
 
-  AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
-  AliTracker::SetFieldMap(field,kFALSE); 
+  //Set rec. parameters different from the default ones.
+  AliPHOSRecoParam* recEmc = new AliPHOSRecoParamEmc();
+  recEmc->SetSubtractPedestals(kFALSE); // do not sibtract pedestals!
+
+  AliPHOSReconstructor::SetRecoParamEmc(recEmc);
 
   rec.SetInput(file.Data());  // read RAW data
   rec.Run();
 
+
 }