- AliReconstruction *MuonRec = new AliReconstruction();
-
- MuonRec->SetInput(input.Data());
- MuonRec->SetRunVertexFinder(kFALSE);
- MuonRec->SetRunLocalReconstruction("MUON");
- MuonRec->SetRunTracking("MUON");
- MuonRec->SetFillESD(" ");
- MuonRec->SetLoadAlignData("MUON");
- MuonRec->SetNumberOfEventsPerFile(0);
- MuonRec->SetOption("MUON",recoptions.Data());
- AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetCosmicParam();
- muonRecoParam->BypassSt45(kTRUE,kFALSE);
- muonRecoParam->RequestStation(2,kFALSE);
- muonRecoParam->SetPadGoodnessMask(0x400BE80);
- TString caliboption = caliboption1;
- if ( calib == 2 ) caliboption = caliboption2;
- muonRecoParam->SetCalibrationMode(caliboption.Data());
- muonRecoParam->Print("FULL");
-
- AliMUONReconstructor::SetRecoParam(muonRecoParam);
-
- MuonRec->SetRunQA("MUON:ALL");
-
- MuonRec->Run();
-
- delete MuonRec;
+ rec.SetRunQA("MUON:ALL");
+
+ rec.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
+
+ rec.SetWriteESDfriend(kTRUE);
+ rec.SetWriteAlignmentData();
+
+ rec.SetInput(gSystem->ExpandPathName(input));
+
+ rec.SetUseTrackingErrorsForAlignment("ITS");
+
+ rec.SetCleanESD(kFALSE);
+
+ rec.SetStopOnError(kFALSE);
+
+ rec.SetOption("MUON",recoptions);
+
+ rec.SetQAWriteExpert(AliQAv1::kMUON);
+
+ if ( numberOfEvents > 0 )
+ {
+ rec.SetEventRange(0,numberOfEvents);
+ }
+
+ AliLog::Flush();
+ rec.Run();