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