X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=test%2FQA%2Frecraw.C;h=961bfee4f50b074f631e3da2a503f2808f8ee7fd;hp=01c262de50b74866de4e733600421908010b44ab;hb=984cda5b4925439c02cac05624b104f597e9ff51;hpb=7f84ca306f6e6a3d9aba42e9a30bd276d29d4ca7 diff --git a/test/QA/recraw.C b/test/QA/recraw.C index 01c262de50b..961bfee4f50 100644 --- a/test/QA/recraw.C +++ b/test/QA/recraw.C @@ -1,40 +1,67 @@ void recraw() { const char * kYear = "08" ; + + 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("alien://Folder=/alice/simulation/2007/PDC07_v4-09-Rev-00/Ideal/CDB/"); man->SetDefaultStorage("local://$ALICE_ROOT"); - man->SetSpecificStorage("EMCAL/*","local://DB"); + //man->SetDefaultStorage("alien://Folder=/alice/data/2008/LHC08d/OCDB/"); + + // Example in case a specific CDB storage is needed + //man->SetSpecificStorage("EMCAL/*","local://DB"); + // 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.SetWriteESDfriend(); + 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(); - - 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, ..... - -// **** 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.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.SetRunQA("ALL:ALL") ; + //AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ; + AliQA::SetQARefStorage("local://$ALICE_ROOT") ; + for (Int_t det = 0 ; det < AliQA::kNDET ; det++) { + reco.SetQACycles(det, 9999) ; + reco.SetQAWriteExpert(det) ; + } + + AliLog::Flush(); + TStopwatch timer; timer.Start(); - reco.Run("raw.root"); + reco.Run(); timer.Stop(); timer.Print(); }