From e00eac393a5b9c51b474168f42f8c88871caff93 Mon Sep 17 00:00:00 2001 From: nilsen Date: Fri, 5 Oct 2001 14:59:00 +0000 Subject: [PATCH 1/1] Fix added to take into account of new/changed macros. --- ITS/AliITStest.C | 18 +++++++++--------- ITS/GeneralTest.C | 15 +++++++-------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/ITS/AliITStest.C b/ITS/AliITStest.C index eb5fe14f7ad..a9f32ad3228 100644 --- a/ITS/AliITStest.C +++ b/ITS/AliITStest.C @@ -5,23 +5,23 @@ Int_t AliITStest() { gROOT->LoadMacro("$(ALICE_ROOT)/macros/grun.C"); grun(); - Int_t ver=gAlice->GetDetector("ITS")->IsVersion(); + AliITSgeom *gm = ((AliITS*)(gAlice->GetDetector("ITS")))->GetITSgeom(); delete gAlice; gAlice=0; - if (ver!=5) { - cerr<<"Invalid ITS version: "<LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2Digits.C"); - if (rc=AliITSHits2Digits()) return rc; - + if (gm) { + gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2DigitsDefault.C"); + if (rc=AliITSHits2DigitsDefault()) return rc; } - printf("start reconstruction\n"); + cout << "start reconstruction" << endl; -//Test ITS reconstruction + //Test ITS reconstruction gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClusters.C"); delete gAlice; gAlice=0; diff --git a/ITS/GeneralTest.C b/ITS/GeneralTest.C index ca5d5b7f021..d0ee91b1521 100644 --- a/ITS/GeneralTest.C +++ b/ITS/GeneralTest.C @@ -38,11 +38,12 @@ Int_t GeneralTest(Int_t verpoint=2) { exit(5); } - Int_t ver=gAlice->GetDetector("ITS")->IsVersion(); + AliITSgeom *gm = ((AliITS*)gAlice->GetDetector("ITS"))->GetITSgeom(); delete gAlice; gAlice=0; - if (ver!=5) { - cerr<<"Invalid ITS version: "<LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2Digits.C"); - if (rc=AliITSHits2Digits()) return rc; - } + + gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2DigitsDefault.C"); + if (rc=AliITSHits2Digits()) return rc; printf("start reconstruction\n"); -- 2.39.3