]>
Commit | Line | Data |
---|---|---|
12391a12 | 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 | /* $Id$ */ | |
16 | //_________________________________________________________________________ | |
17 | // Macros performing the full reconstruction chain starting from Digits | |
18 | // Use Case : | |
19 | // root> .L Reconstruction.C++ | |
20 | // root> rec("RE", "PHOS EMCAL") --> does the reconstruction for | |
21 | // PHOS and EMCAL and stores the | |
22 | // reconstructed particles in | |
23 | // AliESDs.root | |
24 | // author : Yves Schutz (CERN/SUBATECH) | |
25 | // February 2004 | |
26 | //_________________________________________________________________________ | |
27 | ||
baf5b427 | 28 | #include "AliReconstruction.h" |
29 | #include "TString.h" | |
30 | #include "Riostream.h" | |
766dce24 | 31 | #include "TStopwatch.h" |
32 | #include "AliTPCReconstructor.h" | |
baf5b427 | 33 | |
766dce24 | 34 | void reco(TString opt="TVRE", TString name="all", TString cdb="") |
baf5b427 | 35 | { |
36 | AliReconstruction rec ; | |
766dce24 | 37 | rec.SetUniformFieldTracking(kFALSE); |
38 | rec.SetWriteESDfriend(); | |
39 | rec.SetWriteAlignmentData(); | |
40 | if ( name.Contains("TPC") ) { | |
41 | AliTPCReconstructor::SetCtgRange(2.); // for pp events | |
42 | AliTPCReconstructor::SetStreamLevel(1); | |
43 | } | |
44 | if ( !cdb.IsNull() ) | |
45 | rec.SetDefaultStorage(cdb.Data() ) ; | |
46 | ||
47 | if ( opt.Contains("W") ) | |
48 | rec.SetInput("raw.root"); | |
49 | ||
23c75532 | 50 | if ( !opt.Contains("T") ) |
dde267bf | 51 | rec.SetRunTracking("") ; |
52 | else | |
53 | rec.SetRunTracking(name.Data()) ; | |
54 | ||
23c75532 | 55 | if ( !opt.Contains("V") ) |
a90d1169 | 56 | rec.SetRunVertexFinder(kFALSE) ; |
a90d1169 | 57 | |
baf5b427 | 58 | if ( opt.Contains("R") ) |
efa45d5c | 59 | rec.SetRunLocalReconstruction(name.Data()) ; |
4f36a998 | 60 | else |
efa45d5c | 61 | rec.SetRunLocalReconstruction("") ; |
a90d1169 | 62 | |
baf5b427 | 63 | if ( !opt.Contains("E") ) |
64 | rec.SetFillESD("") ; | |
65 | else | |
66 | rec.SetFillESD(name.Data()) ; | |
a90d1169 | 67 | |
766dce24 | 68 | TStopwatch timer; |
69 | timer.Start(); | |
baf5b427 | 70 | rec.Run() ; |
766dce24 | 71 | timer.Stop(); |
72 | timer.Print(); | |
baf5b427 | 73 | } |