void recraw() {
const char * kYear = "08" ;
- AliCDBManager * man = AliCDBManager::Instance();
- //man->SetDefaultStorage("alien://Folder=/alice/simulation/2007/PDC07_v4-09-Rev-00/Ideal/CDB/");
+
+ AliLog::SetGlobalLogLevel(AliLog::kError);
+
+// gSystem->Load("libRAliEn.so");
+// gSystem->Load("libNet.so");
+ // gSystem->Load("libMonaLisa.so");
+// new TMonaLisaWriter(0, "GridAliRoot-rec.C", 0, 0, "global");
+ // gSystem->Setenv("APMON_INTERVAL", "120");
+
+ // Set the CDB storage location
+ AliCDBManager * man = AliCDBManager::Instance();
man->SetDefaultStorage("local://$ALICE_ROOT");
- man->SetSpecificStorage("EMCAL/*","local://DB");
-
- AliReconstruction reco;
+ //man->SetDefaultStorage("alien://Folder=/alice/data/2008/LHC08b/OCDB/");
- reco.SetWriteESDfriend();
- reco.SetWriteAlignmentData();
-
- AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();
- AliTPCReconstructor::SetRecoParam(tpcRecoParam);
- AliTPCReconstructor::SetStreamLevel(0);
- reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS EMCAL MUON T0 VZERO FMD PMD ZDC");
- //Reco.SetInput("raw.root") ;
- //AliPHOSRecoParam* recEmc = new AliPHOSRecoParamEmc();
- // recEmc->SetSubtractPedestals(kFALSE);
- // AliPHOSReconstructor::SetRecoParamEmc(recEmc);
- if (! reco.SetRunQA("ALL:ALL") ) {
- printf("SetRunQA ERROR\n") ;
- exit ;
- }
- reco.SetInLoopQA() ;
-
- AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
- AliQA::SetQARefDataDirName("Sim") ; //Data, Pedestals, BlackEvent, .....
+ // Example in case a specific CDB storage is needed
+ //man->SetSpecificStorage("EMCAL/*","local://DB");
-// **** 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);
+ // Tracking settings
+ // **** 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);
+ Double_t mostProbPt=0.35;
+ AliExternalTrackParam::SetMostProbablePt(mostProbPt);
+
+ // AliReconstruction settings
+ AliReconstruction reco;
+ reco.SetRecoParam("TPC",AliTPCRecoParam::GetLowFluxParam());
+ reco.SetRecoParam("TRD",AliTRDrecoParam::GetLowFluxParam());
+ reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());
+ reco.SetRecoParam("MUON",AliMUONRecoParam::GetLowFluxParam());
+ reco.SetUniformFieldTracking(uniform);
+ reco.SetWriteESDfriend(kTRUE);
+ reco.SetWriteAlignmentData();
+ reco.SetInput("raw.root");
+ reco.SetUseTrackingErrorsForAlignment("ITS");
+
+ // In case some detectors have to be switched off.aliextr..
+ reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS MUON FMD PMD T0 VZERO ZDC ACORDE");
+ //reco.SetRunReconstruction("ITS TRD TOF HMPID PHOS MUON FMD PMD VZERO ZDC ACORDE");
+
+ reco.SetRunVertexFinder(kTRUE);
+
+ // all events in one single file
+ reco.SetNumberOfEventsPerFile(-1);
+ // switch off cleanESD
+ reco.SetCleanESD(kFALSE);
+
+ reco.SetInLoopQA() ;
+ reco.SetRunQA("ALL:ALL") ;
+ //AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
+ AliQA::SetQARefStorage("local://$ALICE_ROOT") ;
+
+ AliLog::Flush();
+
TStopwatch timer;
timer.Start();
- reco.Run("raw.root");
+ reco.Run();
timer.Stop();
timer.Print();
}