Minor fixes
[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{
1e8f773e 28 AliCDBManager* cdb = AliCDBManager::Instance();
c2fc1258 29 cdb->SetDefaultStorage("local://$ALICE_ROOT");
1e8f773e 30 AliLog::SetModuleDebugLevel("FMD", 2);
0d0e6995 31 AliReconstruction rec;
55f0ce5b 32 AliCDBEntry* align = cdb->Get("FMD/Align/Data");
33 if (align) {
34 TClonesArray* array = dynamic_cast<TClonesArray*>(align->GetObject());
35 if (array) {
36 Int_t nAlign = array->GetEntries();
37 for (Int_t i = 0; i < nAlign; i++) {
38 AliAlignObjAngles* a = static_cast<AliAlignObjAngles*>(array->At(i));
39 if (!a->ApplyToGeometry()) {
40 Warning("ApplyAlignement", "Failed to apply alignment to %s",
41 a->GetVolPath());
42 }
43 }
44 }
45 }
0d0e6995 46 rec.SetRunLocalReconstruction("FMD");
47 rec.SetRunVertexFinder(kFALSE);
8f6ee336 48 rec.SetRunTracking("");
baa92757 49 rec.SetFillESD("FMD");
1e8f773e 50 rec.SetInput("./");
0d0e6995 51 rec.Run();
d28dcc0d 52}
d28dcc0d 53
4347b38f 54//
55// EOF
56//