Removing leftover return
[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>
67c48a1e 34#include <Riostream.h>
3304fa09 35//#include <TObjectTable.h>
4d717204 36#endif
37
05315e71 38void runReconstruction(int seed, const char* input, const char* recoptions, bool rawocdb)
4d717204 39{
15381c8b 40 AliCDBManager* man = AliCDBManager::Instance();
ca8c8223 41
05315e71 42 if ( rawocdb )
ca8c8223 43 {
05315e71 44 cout << "**** WILL USE RAW OCDB" << endl;
45 man->SetDefaultStorage("raw://"); //alien://folder=/alice/data/2011/OCDB?cacheFold=/Users/laurent/OCDBcache");
46 man->SetSpecificStorage("ITS/Calib/RecoParam","alien://folder=/alice/cern.ch/user/p/ppillot/OCDB_PbPbSim");
47 }
ca8c8223 48 else
49 {
50 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
51
52 man->SetSpecificStorage("GRP/GRP/Data",
53 Form("local://%s",gSystem->pwd()));
05315e71 54
ca8c8223 55 }
3304fa09 56
4d717204 57 gRandom->SetSeed(seed);
3304fa09 58
4d717204 59 AliReconstruction* MuonRec = new AliReconstruction("galice.root");
ca8c8223 60 MuonRec->SetInput(gSystem->ExpandPathName(input));
05315e71 61 MuonRec->SetRunReconstruction("MUON ITS");
e3817f97 62 MuonRec->SetFillESD("HLT");
63 MuonRec->SetOption("HLT", "libAliHLTMUON.so");
05315e71 64 MuonRec->SetNumberOfEventsPerFile(10000);
4d717204 65 MuonRec->SetOption("MUON",recoptions);
13eed0d4 66 MuonRec->SetRunQA("MUON:ALL");
4e25ac79 67 MuonRec->SetQAWriteExpert(AliQAv1::kMUON);
ca8c8223 68 MuonRec->SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
69 MuonRec->SetWriteESDfriend(kFALSE);
70 MuonRec->SetCleanESD(kFALSE);
71 MuonRec->SetStopOnError(kFALSE);
72
913f1b43 73 // uncomment the following lines if you want to set custom RecoParam
74 // instead of getting them from the OCDB
13eed0d4 75 // AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam();
76 // muonRecoParam->SaveFullClusterInESD(kTRUE,100.);
77 // MuonRec->SetRecoParam("MUON",muonRecoParam);
913f1b43 78
4d717204 79 MuonRec->Run();
3304fa09 80
4d717204 81 delete MuonRec;
3304fa09 82
4d717204 83 //gObjectTable->Print();
84}