/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ /// \ingroup macros /// \file runReconstruction.C /// \brief Macro for running reconstruction /// /// Macro extracted from the MUON test script /// /// \author Laurent Aphecetche #if !defined(__CINT__) || defined(__MAKECINT__) #include "AliMUONReconstructor.h" #include "AliMUONRecoParam.h" #include "AliRecoParam.h" #include "AliCDBManager.h" #include "AliMagFMaps.h" #include "AliTracker.h" #include "AliReconstruction.h" #include //#include #endif void runReconstruction(int seed, const char* input, const char* recoptions) { AliCDBManager* man = AliCDBManager::Instance(); man->SetDefaultStorage("local://$ALICE_ROOT"); gRandom->SetSeed(seed); AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG); AliTracker::SetFieldMap(field, kFALSE); AliReconstruction* MuonRec = new AliReconstruction("galice.root"); MuonRec->SetInput(input); MuonRec->SetRunVertexFinder(kFALSE); MuonRec->SetRunLocalReconstruction("MUON"); MuonRec->SetRunTracking("MUON"); MuonRec->SetFillESD(""); MuonRec->SetLoadAlignData("MUON"); MuonRec->SetNumberOfEventsPerFile(1000); MuonRec->SetOption("MUON",recoptions); MuonRec->SetRecoParam("MUON",AliMUONRecoParam::GetLowFluxParam()); //MuonRec->SetRunQA("MUON:ALL"); //AliMUONReconstructor::GetRecoParam()->Print("FULL"); MuonRec->Run(); delete MuonRec; //gObjectTable->Print(); }