]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/runReconstruction.C
- Some algorithm fixes for complex clusters
[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__)
3304fa09 22#include "AliMUONReconstructor.h"
23#include "AliMUONRecoParam.h"
bde793f3 24#include "AliCDBManager.h"
25#include "AliMagFMaps.h"
26#include "AliTracker.h"
27#include "AliReconstruction.h"
28#include <TRandom.h>
3304fa09 29//#include <TObjectTable.h>
4d717204 30#endif
31
32void runReconstruction(int run, int seed, const char* input, const char* recoptions)
33{
34 AliCDBManager::Instance()->SetRun(run);
3304fa09 35
4d717204 36 gRandom->SetSeed(seed);
3304fa09 37
4d717204 38 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
39 AliTracker::SetFieldMap(field, kFALSE);
3304fa09 40
4d717204 41 AliReconstruction* MuonRec = new AliReconstruction("galice.root");
42 MuonRec->SetInput(input);
43 MuonRec->SetRunVertexFinder(kFALSE);
44 MuonRec->SetRunLocalReconstruction("MUON");
45 MuonRec->SetRunTracking("MUON");
46 MuonRec->SetFillESD("");
47 MuonRec->SetLoadAlignData("MUON");
48 MuonRec->SetNumberOfEventsPerFile(1000);
49 MuonRec->SetOption("MUON",recoptions);
50 // MuonRec->SetEventRange(319,319);
102edf65 51 MuonRec->SetWriteAOD();
3304fa09 52
53 AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam();
54 AliMUONReconstructor::SetRecoParam(muonRecoParam);
55 muonRecoParam->Print("FULL");
56
4d717204 57 MuonRec->Run();
3304fa09 58
4d717204 59 delete MuonRec;
3304fa09 60
4d717204 61 //gObjectTable->Print();
62}
63