Print removed
[u/mrichter/AliRoot.git] / ITS / AliITSDigits2RecPoints.C
CommitLineData
02a71a71 1#if !defined(__CINT__) || defined(__MAKECINT__)
2
d2e7afa1 3#include "Riostream.h"
4#include "TClassTable.h"
5#include "TDatime.h"
02a71a71 6#include "TStopwatch.h"
d2e7afa1 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"
02a71a71 14
15#endif
02a71a71 16#define DEBUG
d2e7afa1 17
999cc3eb 18Int_t AliITSDigits2RecPoints(TString filename="galice.root",TString fileRP=""){
02a71a71 19 // Standard ITS Digits to RecPoints.
cc2535cd 20
02a71a71 21 // Dynamically link some shared libs
22 if (gClassTable->GetID("AliRun") < 0) {
d2e7afa1 23 gROOT->ProcessLine(".x $(ALICE_ROOT)/macros/loadlibs.C");
88cb7938 24 }else if (gAlice){
25 delete gAlice->GetRunLoader();
26 delete gAlice;
27 gAlice=0;
28 } // end if
cc2535cd 29
02a71a71 30 TStopwatch timer;
02a71a71 31#ifdef DEBUG
32 cout << "Creating reconstructed points from digits for the ITS..." << endl;
33#endif
88cb7938 34 AliITSreconstruction *itsr = new AliITSreconstruction(filename);
35
02a71a71 36 timer.Start();
999cc3eb 37 if(!(fileRP.IsNull()))itsr->SetOutputFile(fileRP);
02a71a71 38 itsr->Init();
39 itsr->Exec();
40 timer.Stop();
41 timer.Print();
42 delete itsr;
02a71a71 43 return 0;
44}