X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;ds=inline;f=ITS%2FAliITSDigits2RecPoints.C;h=404b024f3025721d118663ae7de19e9c1fd6c5b0;hb=21b312002d48f0af6f47b2ace15b0d2eec941018;hp=303aaf28019c1504207250f5bf4abacef5e2487d;hpb=af8e1c2d6c1a6a290ed15cc2e1b21b6e46ebb59e;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSDigits2RecPoints.C b/ITS/AliITSDigits2RecPoints.C index 303aaf28019..404b024f302 100644 --- a/ITS/AliITSDigits2RecPoints.C +++ b/ITS/AliITSDigits2RecPoints.C @@ -1,14 +1,48 @@ -void AliITSDigits2RecPoints(Int_t evNumber1=0,Int_t evNumber2=0, const char *filename="galice.root"){ - TStopwatch timer; - - if(gAlice){ - delete gAlice; - gAlice = 0; - } // end if gAlice - cout << "Creating reconstructed points from digits for the ITS..." << endl; - AliITSreconstruction *itsr = new AliITSreconstruction(filename); - timer.Start(); - itsr->Exec(); - timer.Stop(); timer.Print(); - delete itsr; +#if !defined(__CINT__) || defined(__MAKECINT__) + +#include +#include +#include +#include +#include +#include +#include "AliRun.h" +#include "AliRunDigitizer.h" +#include "AliITSDetTypeRec.h" +#include "AliITS.h" +#include "AliITSresponseSDD.h" +#include "AliITSreconstruction.h" + +#endif +#define DEBUG + +Int_t AliITSDigits2RecPoints(TString filename="galice.root",TString fileRP=""){ + // Standard ITS Digits to RecPoints. + + // Get geometry + TGeoManager::Import("geometry.root"); + + // Dynamically link some shared libs + if (gClassTable->GetID("AliRun") < 0) { + gROOT->ProcessLine(".x $(ALICE_ROOT)/macros/loadlibs.C"); + }else if (gAlice){ + delete AliRunLoader::Instance(); + delete gAlice; + gAlice=0; + } // end if + + TStopwatch timer; +#ifdef DEBUG + cout << "Creating reconstructed points from digits for the ITS..." << endl; +#endif + AliITSreconstruction *itsr = new AliITSreconstruction(filename); + + timer.Start(); + if(!(fileRP.IsNull()))itsr->SetOutputFile(fileRP); + itsr->Init(); + itsr->Exec(); + timer.Stop(); + timer.Print(); + delete itsr; + return 0; }