]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSDigits2RecPoints.C
Changed arrays
[u/mrichter/AliRoot.git] / ITS / AliITSDigits2RecPoints.C
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
14 #define DEBUG
15 Int_t AliITSDigits2RecPoints(TString filename="galice.root"){
16     // Standard ITS Digits to RecPoints.
17
18     // Dynamically link some shared libs
19     if (gClassTable->GetID("AliRun") < 0) {
20      gROOT->LoadMacro("loadlibs.C");
21      loadlibs();
22     }else if (gAlice){
23       delete gAlice->GetRunLoader();
24       delete gAlice;
25       gAlice=0;
26      } // end if
27
28     TStopwatch timer;
29 #ifdef DEBUG
30     cout << "Creating reconstructed points from digits for the ITS..." << endl;
31 #endif
32     AliITSreconstruction *itsr = new AliITSreconstruction(filename);
33
34     timer.Start();
35     itsr->Init();
36     itsr->Exec(); 
37     timer.Stop(); 
38     timer.Print();
39     delete itsr;
40     return 0;
41 }