]>
Commit | Line | Data |
---|---|---|
1 | #if !defined(__CINT__) || defined(__MAKECINT__) | |
2 | ||
3 | #include "Riostream.h" | |
4 | #include "TClassTable.h" | |
5 | #include "TDatime.h" | |
6 | #include "TStopwatch.h" | |
7 | #include "AliRun.h" | |
8 | #include "AliRunDigitizer.h" | |
9 | #include "AliITSDigitizer.h" | |
10 | #include "AliITS.h" | |
11 | #include "AliITSDetType.h" | |
12 | #include "AliITSresponseSDD.h" | |
13 | #include "AliITSreconstruction.h" | |
14 | ||
15 | #endif | |
16 | #define DEBUG | |
17 | ||
18 | Int_t AliITSDigits2RecPoints(TString filename="galice.root"){ | |
19 | // Standard ITS Digits to RecPoints. | |
20 | ||
21 | // Dynamically link some shared libs | |
22 | if (gClassTable->GetID("AliRun") < 0) { | |
23 | gROOT->ProcessLine(".x $(ALICE_ROOT)/macros/loadlibs.C"); | |
24 | }else if (gAlice){ | |
25 | delete gAlice->GetRunLoader(); | |
26 | delete gAlice; | |
27 | gAlice=0; | |
28 | } // end if | |
29 | ||
30 | TStopwatch timer; | |
31 | #ifdef DEBUG | |
32 | cout << "Creating reconstructed points from digits for the ITS..." << endl; | |
33 | #endif | |
34 | AliITSreconstruction *itsr = new AliITSreconstruction(filename); | |
35 | ||
36 | timer.Start(); | |
37 | itsr->Init(); | |
38 | itsr->Exec(); | |
39 | timer.Stop(); | |
40 | timer.Print(); | |
41 | delete itsr; | |
42 | return 0; | |
43 | } |