Extacting the OCDB in a separate module. The detectors have write permission in the...
[u/mrichter/AliRoot.git] / FMD / Reconstruct.C
CommitLineData
d28dcc0d 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 **************************************************************************/
d28dcc0d 15
4347b38f 16/* $Id$ */
c2fc1258 17/** @file Reconstruct.C
18 @author Christian Holm Christensen <cholm@nbi.dk>
19 @date Mon Mar 27 14:19:56 2006
20 @brief Script to do reconstruction
21*/
4347b38f 22// Script to do test the FMD digitization class.
23
c2fc1258 24/** Do reconstruction */
4347b38f 25void
26Reconstruct()
d28dcc0d 27{
e7594bad 28 // Debug the FMD.
faf80567 29 AliLog::SetModuleDebugLevel("FMD", 1);
e7594bad 30
31 // To reconstruct raw data from FDR-I, please enable below lines:
32 // AliFMDParameters::Instance()->UseRcuTrailer(false);
33 // AliFMDParameters::Instance()->UseCompleteHeader(false);
ed82d35e 34
faf80567 35 // TFile* magF = TFile::Open("mag.root", "READ");
36 // AliMagF* mag = static_cast<AliMagF*>(magF->Get("mag"));
37 // if (!mag) return;
38 // AliTracker::SetFieldMap(mag, true);
162637e4 39 AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
f38b1653 40 AliCDBManager::Instance()->SetRun(0);
ed82d35e 41
0d0e6995 42 AliReconstruction rec;
43 rec.SetRunLocalReconstruction("FMD");
44 rec.SetRunVertexFinder(kFALSE);
7868d9e2 45 rec.SetRunReconstruction("FMD");
8f6ee336 46 rec.SetRunTracking("");
baa92757 47 rec.SetFillESD("FMD");
faf80567 48 rec.SetRunQA(":");
49 rec.SetInput("raw.root");
7868d9e2 50 // rec.SetRecoParam("TOF", new AliTOFRecoParam());
51
0d0e6995 52 rec.Run();
d28dcc0d 53}
d28dcc0d 54
4347b38f 55//
56// EOF
57//