]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/runReconstruction.C
Removing warnings (Andrea)
[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
e54bf126 18/// \ingroup macros
19/// \file runReconstruction.C
20/// \brief Macro for running reconstruction
21///
22/// Macro extracted from the MUON test script
23///
24/// \author Laurent Aphecetche
4d717204 25
26#if !defined(__CINT__) || defined(__MAKECINT__)
3304fa09 27#include "AliMUONReconstructor.h"
28#include "AliMUONRecoParam.h"
15d30ed4 29#include "AliRecoParam.h"
bde793f3 30#include "AliCDBManager.h"
31#include "AliMagFMaps.h"
32#include "AliTracker.h"
33#include "AliReconstruction.h"
34#include <TRandom.h>
3304fa09 35//#include <TObjectTable.h>
4d717204 36#endif
37
745f6baf 38void runReconstruction(int seed, const char* input, const char* recoptions)
4d717204 39{
15381c8b 40 AliCDBManager* man = AliCDBManager::Instance();
41 man->SetDefaultStorage("local://$ALICE_ROOT");
3304fa09 42
4d717204 43 gRandom->SetSeed(seed);
3304fa09 44
4d717204 45 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
46 AliTracker::SetFieldMap(field, kFALSE);
3304fa09 47
4d717204 48 AliReconstruction* MuonRec = new AliReconstruction("galice.root");
49 MuonRec->SetInput(input);
50 MuonRec->SetRunVertexFinder(kFALSE);
51 MuonRec->SetRunLocalReconstruction("MUON");
52 MuonRec->SetRunTracking("MUON");
53 MuonRec->SetFillESD("");
54 MuonRec->SetLoadAlignData("MUON");
55 MuonRec->SetNumberOfEventsPerFile(1000);
56 MuonRec->SetOption("MUON",recoptions);
57 // MuonRec->SetEventRange(319,319);
102edf65 58 MuonRec->SetWriteAOD();
3304fa09 59
ae3a144f 60 AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam();
9bf6860b 61 muonRecoParam->CombineClusterTrackReco(kFALSE);
ae3a144f 62 //muonRecoParam->SetClusteringMode("PEAKFIT");
63 //muonRecoParam->SetClusteringMode("PEAKCOG");
3304fa09 64 muonRecoParam->Print("FULL");
9bf6860b 65
15d30ed4 66 AliRecoParam::Instance()->RegisterRecoParam(muonRecoParam);
3304fa09 67
4d717204 68 MuonRec->Run();
3304fa09 69
4d717204 70 delete MuonRec;
3304fa09 71
4d717204 72 //gObjectTable->Print();
73}