Flexible pt range for the efficiency histogramming
[u/mrichter/AliRoot.git] / MUON / runDataReconstruction.C
CommitLineData
cc727848 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: runReconstruction.C 23207 2007-12-20 09:59:20Z ivana $ */
17
18/// \ingroup macros
58681b6e 19/// \file runDataReconstruction.C
cc727848 20/// \brief Macro for running reconstruction
21///
22/// Macro for running reconstruction on the cosmics run data.
23///
24/// \author Laurent Aphecetche, Nicole Bastid, Bogdan Vulpescu, ...
25
26#if !defined(__CINT__) || defined(__MAKECINT__)
cc727848 27#include "AliCDBManager.h"
cc727848 28#include "AliReconstruction.h"
cc727848 29#include <TGrid.h>
b6f591ae 30#include <TSystem.h>
cc727848 31#endif
32
cf26de95 33void runDataReconstruction(const char* input = "raw://run124360",
084d6dfc 34 const char* ocdbPath = "raw://",
35 const char* recoptions="SAVEDIGITS",
cf26de95 36 Int_t numberOfEvents=1000)
cc727848 37{
cc727848 38 AliCDBManager* man = AliCDBManager::Instance();
b6f591ae 39 man->SetDefaultStorage(ocdbPath);
de487b6e 40
cf26de95 41 AliReconstruction rec;
b6f591ae 42
cf26de95 43 rec.SetRunReconstruction("MUON");
44
45 rec.SetRunQA("MUON:ALL");
46
47 rec.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
48
49 rec.SetWriteESDfriend(kTRUE);
50 rec.SetWriteAlignmentData();
51
52 rec.SetInput(gSystem->ExpandPathName(input));
53
54 rec.SetUseTrackingErrorsForAlignment("ITS");
55
56 rec.SetCleanESD(kFALSE);
57
58 rec.SetStopOnError(kFALSE);
59
cf26de95 60 rec.SetOption("MUON",recoptions);
61
62 rec.SetQAWriteExpert(AliQAv1::kMUON);
de487b6e 63
084d6dfc 64 if ( numberOfEvents > 0 )
65 {
cf26de95 66 rec.SetEventRange(0,numberOfEvents);
084d6dfc 67 }
cf26de95 68
69 AliLog::Flush();
70 rec.Run();
cc727848 71
cc727848 72}
73