]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/macros/visscan_init.C
Coverity fix
[u/mrichter/AliRoot.git] / EVE / macros / visscan_init.C
index 54951e57a8994a28fbaaa18daf5b48205b320ad1..ea29bbb03a50bbdeb8b417ea821e4073bc631c70 100644 (file)
@@ -69,7 +69,7 @@ void visscan_init(const TString& cdburi = "",
   mv->SetDepth(-10);
 
   TEveUtil::LoadMacro("geom_gentle.C");
-  mv->InitGeomGentle(geom_gentle(), geom_gentle_rphi(), geom_gentle_rhoz());
+  mv->InitGeomGentle(geom_gentle(), geom_gentle_rphi(), geom_gentle_rhoz(), 0);
 
   if (showTrd) {
     TEveUtil::LoadMacro("geom_gentle_trd.C");
@@ -78,7 +78,7 @@ void visscan_init(const TString& cdburi = "",
 
   if (gShowMuonRPhi || gShowMuonRhoZ) {
     TEveUtil::LoadMacro("geom_gentle_muon.C");
-    mv->InitGeomGentleMuon(geom_gentle_muon(kFALSE), gShowMuonRPhi, gShowMuonRhoZ);
+    mv->InitGeomGentleMuon(geom_gentle_muon(kFALSE), gShowMuonRPhi, gShowMuonRhoZ, kFALSE);
   }
 
   mv->SetDepth(0);
@@ -139,7 +139,8 @@ void visscan_init(const TString& cdburi = "",
   exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Tracks MI",           "esd_tracks.C+", "esd_tracks_MI",           "", kFALSE));
   exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Tracks by category",  "esd_tracks.C+", "esd_tracks_by_category",  "", kTRUE));
   exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Tracks by anal cuts", "esd_tracks.C+", "esd_tracks_by_anal_cuts", "", kFALSE));
-  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Tracks Lego", "histo2d.C", "histo2d", "", kTRUE));
+  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Tracks Lego", "lego.C", "lego", "", kFALSE));
+  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Tracks Beams Info", "beams_info.C", "beams_info", "", kFALSE));
 
   exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Tracklets SPD", "esd_spd_tracklets.C", "esd_spd_tracklets", "", kTRUE));
 
@@ -234,11 +235,6 @@ void visscan_init(const TString& cdburi = "",
   gEve->EditElement(g_trkcnt);
 
   gEve->Redraw3D(kTRUE);
-
-  // Assure 3D view rotates around the origin.
-  gSystem->ProcessEvents();
-  AliEveMultiView::Instance()->Get3DView()->GetGLViewer()->CurrentCamera().SetCenterVec(0,0,0);
-  AliEveMultiView::Instance()->Get3DView()->GetGLViewer()->RequestDraw();
 }
 
 /******************************************************************************/
@@ -264,12 +260,12 @@ void on_new_event()
 
   AliEveMultiView *mv = AliEveMultiView::Instance();
 
-  // mv->DestroyEventRPhi();
+  //mv->DestroyEventRPhi();
   if (gCenterProjectionsAtPrimaryVertex)
     mv->SetCenterRPhi(x[0], x[1], x[2]);
   mv->ImportEventRPhi(top);
 
-  // mv->DestroyEventRhoZ();
+  //mv->DestroyEventRhoZ();
   if (gCenterProjectionsAtPrimaryVertex)
     mv->SetCenterRhoZ(x[0], x[1], x[2]);
   mv->ImportEventRhoZ(top);