- Adding check and flagging for HG present
[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"
bde793f3 31#include "AliTracker.h"
32#include "AliReconstruction.h"
33#include <TRandom.h>
3304fa09 34//#include <TObjectTable.h>
4d717204 35#endif
36
745f6baf 37void runReconstruction(int seed, const char* input, const char* recoptions)
4d717204 38{
15381c8b 39 AliCDBManager* man = AliCDBManager::Instance();
162637e4 40 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
5522f887 41 man->SetSpecificStorage("GRP/GRP/Data",
42 Form("local://%s",gSystem->pwd()));
3304fa09 43
4d717204 44 gRandom->SetSeed(seed);
3304fa09 45
4d717204 46 AliReconstruction* MuonRec = new AliReconstruction("galice.root");
47 MuonRec->SetInput(input);
48 MuonRec->SetRunVertexFinder(kFALSE);
49 MuonRec->SetRunLocalReconstruction("MUON");
50 MuonRec->SetRunTracking("MUON");
e3817f97 51 MuonRec->SetFillESD("HLT");
52 MuonRec->SetOption("HLT", "libAliHLTMUON.so");
4d717204 53 MuonRec->SetLoadAlignData("MUON");
54 MuonRec->SetNumberOfEventsPerFile(1000);
55 MuonRec->SetOption("MUON",recoptions);
13eed0d4 56 MuonRec->SetRunQA("MUON:ALL");
4e25ac79 57 MuonRec->SetQAWriteExpert(AliQAv1::kMUON);
913f1b43 58 // uncomment the following lines if you want to set custom RecoParam
59 // instead of getting them from the OCDB
13eed0d4 60 // AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam();
61 // muonRecoParam->SaveFullClusterInESD(kTRUE,100.);
62 // MuonRec->SetRecoParam("MUON",muonRecoParam);
913f1b43 63
4d717204 64 MuonRec->Run();
3304fa09 65
4d717204 66 delete MuonRec;
3304fa09 67
4d717204 68 //gObjectTable->Print();
69}