From: mtadel Date: Wed, 17 Sep 2008 13:51:03 +0000 (+0000) Subject: With Cvetan: two hacks to make it work again: X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=94dae49701bfb7175ab38b9931d189e8661ee538;p=u%2Fmrichter%2FAliRoot.git With Cvetan: two hacks to make it work again: a) set gGeoManager to 0 before instantiating AliReconstruction and restore it afterwards; b) set dummy low-flux reco-params for ITS as they are required at tracker construction time. --- diff --git a/EVE/alice-macros/clusters.C b/EVE/alice-macros/clusters.C index 17f5ec31fa3..e0f2d70daf4 100644 --- a/EVE/alice-macros/clusters.C +++ b/EVE/alice-macros/clusters.C @@ -27,7 +27,14 @@ void clusters() const Int_t detIds[] = { 0, 1, 2, 3, 5 }; const Int_t detN = sizeof(detNames)/sizeof(char*); + // Hack - AliReconstruction does wonders with gGeoManager. + TGeoManager* xxx = gGeoManager; gGeoManager = 0; AliReconstruction* reco = new AliReconstruction; + gGeoManager = xxx; + + // Hack for ITS - it requires RecoParams outside event-loop! + reco.SetRecoParam("ITS", AliITSRecoParam::GetLowFluxParam()); + reco->ImportRunLoader(rl); { TString alldets;