]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
With Cvetan: two hacks to make it work again:
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Sep 2008 13:51:03 +0000 (13:51 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Sep 2008 13:51:03 +0000 (13:51 +0000)
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.

EVE/alice-macros/clusters.C

index 17f5ec31fa35aab0fe3ad5a3383859e5fdc7b887..e0f2d70daf45a43fa1ec64ddde1d0249db9e1f0a 100644 (file)
@@ -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;