1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 // Macro extracted from MUON test script
19 // By Laurent Aphecetche
21 #if !defined(__CINT__) || defined(__MAKECINT__)
22 #include "AliCDBManager.h"
23 #include "AliMagFMaps.h"
24 #include "AliTracker.h"
25 #include "AliReconstruction.h"
29 void runReconstruction(int run, int seed, const char* input, const char* recoptions)
31 AliCDBManager::Instance()->SetRun(run);
32 gRandom->SetSeed(seed);
33 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
34 AliTracker::SetFieldMap(field, kFALSE);
35 AliReconstruction* MuonRec = new AliReconstruction("galice.root");
36 MuonRec->SetInput(input);
37 MuonRec->SetRunVertexFinder(kFALSE);
38 MuonRec->SetRunLocalReconstruction("MUON");
39 MuonRec->SetRunTracking("MUON");
40 MuonRec->SetFillESD("");
41 MuonRec->SetLoadAlignData("MUON");
42 MuonRec->SetNumberOfEventsPerFile(1000);
43 MuonRec->SetOption("MUON",recoptions);
44 // MuonRec->SetEventRange(319,319);
47 //gObjectTable->Print();