]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/runReconstruction.C
new macros to be used together (or not ;-) ) AlirootRun_MUONtest.sh script (Laurent)
[u/mrichter/AliRoot.git] / MUON / runReconstruction.C
CommitLineData
4d717204 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/* $Id$ */
17
18// Macro extracted from MUON test script
19// By Laurent Aphecetche
20
21#if !defined(__CINT__) || defined(__MAKECINT__)
22// add
23#endif
24
25void runReconstruction(int run, int seed, const char* input, const char* recoptions)
26{
27 AliCDBManager::Instance()->SetRun(run);
28 gRandom->SetSeed(seed);
29 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
30 AliTracker::SetFieldMap(field, kFALSE);
31 AliReconstruction* MuonRec = new AliReconstruction("galice.root");
32 MuonRec->SetInput(input);
33 MuonRec->SetRunVertexFinder(kFALSE);
34 MuonRec->SetRunLocalReconstruction("MUON");
35 MuonRec->SetRunTracking("MUON");
36 MuonRec->SetFillESD("");
37 MuonRec->SetLoadAlignData("MUON");
38 MuonRec->SetNumberOfEventsPerFile(1000);
39 MuonRec->SetOption("MUON",recoptions);
40 // MuonRec->SetEventRange(319,319);
41 MuonRec->Run();
42 delete MuonRec;
43 //gObjectTable->Print();
44}
45