]>
Commit | Line | Data |
---|---|---|
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 | |
19 | /// \file runDataReconstruction.C | |
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__) | |
27 | #include "AliCDBManager.h" | |
28 | #include "AliReconstruction.h" | |
29 | #include <TGrid.h> | |
30 | #include <TSystem.h> | |
31 | #endif | |
32 | ||
33 | void runDataReconstruction(const char* input = "alien:///alice/data/2009/LHC09a/000067138/raw/09000067138031.10.root", | |
34 | const char* ocdbPath = "alien://folder=/alice/data/2009/OCDB", | |
35 | const char* recoptions="SAVEDIGITS") | |
36 | { | |
37 | TGrid::Connect("alien://"); | |
38 | ||
39 | AliCDBManager* man = AliCDBManager::Instance(); | |
40 | man->SetDefaultStorage(ocdbPath); | |
41 | ||
42 | AliReconstruction MuonRec; | |
43 | ||
44 | MuonRec.SetInput(gSystem->ExpandPathName(input)); | |
45 | MuonRec.SetRunVertexFinder(kFALSE); | |
46 | MuonRec.SetRunLocalReconstruction("MUON"); | |
47 | MuonRec.SetRunTracking("MUON"); | |
48 | MuonRec.SetFillESD(" "); | |
49 | MuonRec.SetLoadAlignData("MUON"); | |
50 | MuonRec.SetNumberOfEventsPerFile(0); | |
51 | MuonRec.SetOption("MUON",recoptions); | |
52 | MuonRec.SetRunQA("MUON:ALL"); | |
53 | MuonRec.SetQAWriteExpert(AliQAv1::kMUON); | |
54 | ||
55 | MuonRec.Run(); | |
56 | ||
57 | } | |
58 |