From Pawel Debski.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Dec 2009 11:04:27 +0000 (11:04 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Dec 2009 11:04:27 +0000 (11:04 +0000)
New macros for changing color and other visual parameter settings of
the event display.

Add menu entries for calling them.

Improve some existing macros to use VizDB.

16 files changed:
EVE/EveBase/AliEveConfigManager.cxx
EVE/alice-macros/esd_spd_tracklets.C
EVE/alice-macros/geom_gentle_default.C [new file with mode: 0644]
EVE/alice-macros/geom_gentle_tpc.C [new file with mode: 0644]
EVE/alice-macros/geom_gentle_transparent.C [new file with mode: 0644]
EVE/alice-macros/geom_gentle_transparentdark.C [new file with mode: 0644]
EVE/alice-macros/geom_gentle_transparentlight.C [new file with mode: 0644]
EVE/alice-macros/geom_gentle_trd.C
EVE/alice-macros/primary_vertex.C
EVE/macros/VizDB_scan.C
EVE/macros/VizDB_scan_projector.C [new file with mode: 0644]
EVE/macros/VizDB_scan_screen.C [new file with mode: 0644]
EVE/macros/VizDB_scan_tpc.C [new file with mode: 0644]
EVE/macros/VizDB_scan_transparentdark.C [new file with mode: 0644]
EVE/macros/VizDB_scan_transparentlight.C [new file with mode: 0644]
EVE/macros/visscan_init.C

index 274ceb0..f55ca1f 100644 (file)
@@ -9,10 +9,19 @@
 
 #include "AliEveConfigManager.h"
 
+#include <AliEveMultiView.h>
 #include <TEveManager.h>
 #include <TEveBrowser.h>
+#include <TGFileDialog.h>
 #include <TGMenu.h>
 
+class AliEveMacroExecutor;
+class TEveProjectionManager;
+class TEveGeoShape;
+class TEveUtil;
+
+#include <TSystem.h>
+#include <TPRegexp.h>
 #include <RVersion.h>
 
 //______________________________________________________________________________
@@ -27,7 +36,7 @@ namespace
 {
  enum EAliEveMenu_e
  {
-   kAEMTest
+   kAEMSave, kAEMLoad, kAEMDefault, kAEMScreen, kAEMProjector, kAEMTransparentDark, kAEMTransparentLight, kAEMTransparentMonoDark, kAEMTransparentMonoLight, kAEMTpc
  };
 }
  
@@ -67,7 +76,25 @@ AliEveConfigManager::AliEveConfigManager() :
   // Expected TEveManager is already initialized.
 
   fAliEvePopup = new TGPopupMenu(gClient->GetRoot());
-  fAliEvePopup->AddEntry("&Test", kAEMTest);
+  fAliEvePopup->AddEntry("&Save", kAEMSave);
+  fAliEvePopup->AddEntry("&Load", kAEMLoad);
+
+  fAliEvePopup->AddSeparator();
+
+  fAliEvePopup->AddEntry("&Default", kAEMDefault);
+  fAliEvePopup->AddEntry("&Screen", kAEMScreen);
+  fAliEvePopup->AddEntry("&Projector", kAEMProjector);
+
+  fAliEvePopup->AddSeparator();
+
+  fAliEvePopup->AddEntry("&Transparent screen", kAEMTransparentDark);
+  fAliEvePopup->AddEntry("&Transparent projector", kAEMTransparentLight);
+  fAliEvePopup->AddEntry("&Transparent mono dark", kAEMTransparentMonoDark);
+  fAliEvePopup->AddEntry("&Transparent mono light", kAEMTransparentMonoLight);
+
+  fAliEvePopup->AddSeparator();
+
+  fAliEvePopup->AddEntry("&TPC", kAEMTpc);
 
   fAliEvePopup->AddSeparator();
 
@@ -95,6 +122,12 @@ AliEveConfigManager::AliEveConfigManager() :
 
 //==============================================================================
 
+namespace
+{
+const char *gMacroSaveAsTypes[] = {"CINT Macro", "*.C",
+                                   0, 0};
+}
+
 void AliEveConfigManager::AliEvePopupHandler(Int_t id)
 {
   // Handle user selections from AliEve popup.
@@ -103,9 +136,212 @@ void AliEveConfigManager::AliEvePopupHandler(Int_t id)
 
   switch (id)
   {
-    case kAEMTest:
+    case kAEMSave:
     {
-      printf("Test!\n");
+      TGFileInfo fi;
+      fi.fFileTypes   = gMacroSaveAsTypes;
+      fi.fIniDir      = StrDup(""); // current directory
+      fi.fFileTypeIdx = 0;
+      fi.fOverwrite   = kTRUE;
+      new TGFileDialog(gClient->GetDefaultRoot(), gEve->GetMainWindow(), kFDSave, &fi);
+      if (!fi.fFilename) return;
+
+      TPMERegexp filere(".*/([^/]+$");
+      if (filere.Match(fi.fFilename) != 2)
+      {
+        Warning("AliEvePopupHandler", "file '%s' bad.", file.Data());
+        return;
+      }
+      printf("Saving...\n");
+
+      TString file(filere[1]);
+      if (!file.EndsWith(".C"))
+        file += ".C";
+      gSystem->ChangeDirectory(fi.fIniDir);
+      gEve->SaveVizDB(file);
+
+      printf("Saved\n");
+      break;
+
+    }
+
+    case kAEMLoad:
+    {
+
+      printf("Loading...\n");
+
+      gEve->LoadVizDB("VizDB_custom.C", kTRUE, kTRUE);
+
+      printf("Loaded\n");
+      break;
+
+    }
+
+    case kAEMDefault:
+    {
+
+      gEve->GetScenes()->FirstChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RPhi Geometry")->LastChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RhoZ Geometry")->LastChild()->DestroyElements();
+
+      gEve->LoadVizDB("geom_gentle_default.C", kTRUE, kTRUE);
+
+      gEve->LoadVizDB("VizDB_scan.C", kTRUE, kTRUE);
+
+      if(gEve->GetViewers()->UseLightColorSet())
+        gEve->GetViewers()->SwitchColorSet();
+
+      gEve->FullRedraw3D();   
+      
+      break;
+    }
+
+    case kAEMScreen:
+    {
+
+      gEve->GetScenes()->FirstChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RPhi Geometry")->LastChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RhoZ Geometry")->LastChild()->DestroyElements();
+
+      gEve->LoadVizDB("geom_gentle.C", kTRUE, kTRUE);
+
+      gEve->LoadVizDB("VizDB_scan_screen.C", kTRUE, kTRUE);
+
+      if(gEve->GetViewers()->UseLightColorSet())
+        gEve->GetViewers()->SwitchColorSet();
+
+      gEve->FullRedraw3D();    
+
+      break;
+    }
+
+    case kAEMProjector:
+    {
+
+      gEve->GetScenes()->FirstChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RPhi Geometry")->LastChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RhoZ Geometry")->LastChild()->DestroyElements();
+
+      gEve->LoadVizDB("geom_gentle.C", kTRUE, kTRUE);
+
+      gEve->LoadVizDB("VizDB_scan_projector.C", kTRUE, kTRUE);
+
+      if(!gEve->GetViewers()->UseLightColorSet())
+        gEve->GetViewers()->SwitchColorSet();
+
+      gEve->FullRedraw3D();    
+
+      break;
+    }
+
+    case kAEMTransparentDark:
+    {
+
+      gEve->GetScenes()->FirstChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RPhi Geometry")->LastChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RhoZ Geometry")->LastChild()->DestroyElements();
+
+      gEve->LoadVizDB("geom_gentle_transparent.C", kTRUE, kTRUE);
+
+      gEve->LoadVizDB("VizDB_scan_transparentdark.C", kTRUE, kTRUE);
+
+      if(gEve->GetViewers()->UseLightColorSet())
+        gEve->GetViewers()->SwitchColorSet();
+
+      gEve->FullRedraw3D();   
+
+      break;
+    }
+
+    case kAEMTransparentLight:
+    {
+
+      gEve->GetScenes()->FirstChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RPhi Geometry")->LastChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RhoZ Geometry")->LastChild()->DestroyElements();
+
+      gEve->LoadVizDB("geom_gentle_transparent.C", kTRUE, kTRUE);
+
+      gEve->LoadVizDB("VizDB_scan_transparentlight.C", kTRUE, kTRUE);
+
+      if(!gEve->GetViewers()->UseLightColorSet())
+        gEve->GetViewers()->SwitchColorSet();
+
+      gEve->FullRedraw3D();    
+
+      break;
+    }
+
+    case kAEMTransparentMonoDark:
+    {
+
+      gEve->GetScenes()->FirstChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RPhi Geometry")->LastChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RhoZ Geometry")->LastChild()->DestroyElements();
+
+      gEve->LoadVizDB("geom_gentle_transparentdark.C", kTRUE, kTRUE);
+
+      gEve->LoadVizDB("VizDB_scan_transparentdark.C", kTRUE, kTRUE);
+
+      if(gEve->GetViewers()->UseLightColorSet())
+        gEve->GetViewers()->SwitchColorSet();
+
+      gEve->FullRedraw3D();   
+
+      break;
+    }
+
+    case kAEMTransparentMonoLight:
+    {
+
+      gEve->GetScenes()->FirstChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RPhi Geometry")->LastChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RhoZ Geometry")->LastChild()->DestroyElements();
+
+      gEve->LoadVizDB("geom_gentle_transparentlight.C", kTRUE, kTRUE);
+
+      gEve->LoadVizDB("VizDB_scan_transparentlight.C", kTRUE, kTRUE);
+
+      if(!gEve->GetViewers()->UseLightColorSet())
+        gEve->GetViewers()->SwitchColorSet();
+
+      gEve->FullRedraw3D();    
+
+      break;
+    }
+
+    case kAEMTpc:
+    {
+
+      gEve->GetScenes()->FirstChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RPhi Geometry")->LastChild()->DestroyElements();
+
+      gEve->GetScenes()->FindChild("RhoZ Geometry")->LastChild()->DestroyElements();
+
+      gEve->LoadVizDB("geom_gentle_tpc.C", kTRUE, kTRUE);
+
+      gEve->LoadVizDB("VizDB_scan_tpc.C", kTRUE, kTRUE);
+
+      if(!gEve->GetViewers()->UseLightColorSet())
+        gEve->GetViewers()->SwitchColorSet();
+
+      gEve->FullRedraw3D();
+
       break;
     }
 
index e310fda..999492d 100644 (file)
@@ -76,7 +76,11 @@ TEveElementList* esd_spd_tracklets(Float_t radius=8, Width_t line_width=2,
   }
   else
   {
-    tb->SetLineStyle(6);
+//==========================================
+    tb->SetLineStyle(1);
+    tb->SetLineWidth(2);
+//==========================================
+
   }
 
   gEve->Redraw3D();
diff --git a/EVE/alice-macros/geom_gentle_default.C b/EVE/alice-macros/geom_gentle_default.C
new file mode 100644 (file)
index 0000000..06c82e3
--- /dev/null
@@ -0,0 +1,32 @@
+void geom_gentle_default(Bool_t register_as_global=kTRUE)
+{
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  if (register_as_global)
+  {
+    gEve->AddGlobalElement(gsre1);
+  }
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  TEveElement* top = gEve->GetCurrentEvent();
+
+  AliEveMultiView *mv = AliEveMultiView::Instance();
+
+  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+
+  gEve->FullRedraw3D(kTRUE, kTRUE);
+
+}
diff --git a/EVE/alice-macros/geom_gentle_tpc.C b/EVE/alice-macros/geom_gentle_tpc.C
new file mode 100644 (file)
index 0000000..854e63a
--- /dev/null
@@ -0,0 +1,279 @@
+void geom_gentle_tpc(Bool_t register_as_global=kTRUE)
+{
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  if (register_as_global)
+  {
+    gEve->AddGlobalElement(gsre1);
+
+  }
+
+  // Fix visibility, color and transparency
+
+  gsre1->SetRnrSelf(kFALSE);
+  TEveElement::List_i i = gsre1->BeginChildren();
+
+//ITS
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* its1 = (TEveGeoShape*) *k;
+  its1->SetRnrSelf(kTRUE);
+  its1->SetMainColor(kRed);
+  k++;
+
+  TEveGeoShape* its2 = (TEveGeoShape*) *k;
+  its2->SetRnrSelf(kTRUE);
+  its2->SetMainColor(kRed+2);
+  k++;
+
+  TEveGeoShape* its3 = (TEveGeoShape*) *k;
+  its3->SetRnrSelf(kTRUE);
+  its3->SetMainColor(kRed+4);
+
+//TPC
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+  lvl3->SetRnrSelf(kTRUE);
+  lvl3->SetMainColor(kBlue);
+  TEveElement::List_i l = lvl3->BeginChildren();
+
+  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+  lvl4->SetRnrSelf(kFALSE);
+  TEveElement::List_i m = lvl4->BeginChildren();
+
+  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+  tpc1->SetRnrSelf(kTRUE);
+  tpc1->SetMainColor(kGray);
+  m++;
+
+  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+  tpc2->SetRnrSelf(kTRUE);
+  tpc2->SetMainColor(kGray);
+  m++;
+
+  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+  tpc3->SetRnrSelf(kTRUE);
+  tpc3->SetMainColor(kGray);
+  m++;
+
+//TRD+TOF
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kFALSE);
+
+    }
+
+//PHOS
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kFALSE);
+    }
+
+//HMPID
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kFALSE);
+    }
+
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  // Fix visibility, color and transparency
+
+  gsre2->SetRnrSelf(kFALSE);
+  TEveElement::List_i i = gsre2->BeginChildren();
+
+//ITS
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* its1 = (TEveGeoShape*) *k;
+  its1->SetRnrSelf(kTRUE);
+  its1->SetMainColor(kRed);
+  k++;
+
+  TEveGeoShape* its2 = (TEveGeoShape*) *k;
+  its2->SetRnrSelf(kTRUE);
+  its2->SetMainColor(kRed+2);
+  k++;
+
+  TEveGeoShape* its3 = (TEveGeoShape*) *k;
+  its3->SetRnrSelf(kTRUE);
+  its3->SetMainColor(kRed+4);
+
+//TPC
+
+  i++;
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kFALSE);
+
+    }
+
+//PHOS
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kFALSE);
+    }
+
+//HMPID
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kFALSE);
+    }
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  // Fix visibility, color and transparency
+
+  gsre3->SetRnrSelf(kFALSE);
+  TEveElement::List_i i = gsre3->BeginChildren();
+
+//ITS
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* its1 = (TEveGeoShape*) *k;
+  its1->SetRnrSelf(kTRUE);
+  its1->SetMainColor(kRed);
+  k++;
+
+  TEveGeoShape* its2 = (TEveGeoShape*) *k;
+  its2->SetRnrSelf(kTRUE);
+  its2->SetMainColor(kRed+2);
+  k++;
+
+  TEveGeoShape* its3 = (TEveGeoShape*) *k;
+  its3->SetRnrSelf(kTRUE);
+  its3->SetMainColor(kRed+4);
+
+//TPC
+
+  i++;
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kFALSE);
+
+    }
+
+//PHOS
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kFALSE);
+    }
+
+//HMPID
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kFALSE);
+    }
+
+
+  TEveElement* top = gEve->GetCurrentEvent();
+
+  AliEveMultiView *mv = AliEveMultiView::Instance();
+
+  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+
+  gEve->FullRedraw3D(kTRUE, kTRUE);   
+
+}
diff --git a/EVE/alice-macros/geom_gentle_transparent.C b/EVE/alice-macros/geom_gentle_transparent.C
new file mode 100644 (file)
index 0000000..18a9573
--- /dev/null
@@ -0,0 +1,142 @@
+void geom_gentle_transparent(Bool_t register_as_global=kTRUE)
+{
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  if (register_as_global)
+  {
+    gEve->AddGlobalElement(gsre1);
+  }
+
+  // Fix visibility, color and transparency
+
+  gsre1->SetRnrSelf(kFALSE);
+  TEveElement::List_i i = gsre1->BeginChildren();
+
+//ITS
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* its1 = (TEveGeoShape*) *k;
+  its1->SetRnrSelf(kTRUE);
+  its1->SetMainTransparency(80);
+  k++;
+
+  TEveGeoShape* its2 = (TEveGeoShape*) *k;
+  its2->SetRnrSelf(kTRUE);
+  its2->SetMainTransparency(80);
+  k++;
+
+  TEveGeoShape* its3 = (TEveGeoShape*) *k;
+  its3->SetRnrSelf(kTRUE);
+  its3->SetMainTransparency(80);
+
+//TPC
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+  lvl3->SetRnrSelf(kTRUE);
+  lvl3->SetMainTransparency(80);
+  TEveElement::List_i l = lvl3->BeginChildren();
+
+  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+  lvl4->SetRnrSelf(kFALSE);
+  TEveElement::List_i m = lvl4->BeginChildren();
+
+  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+  tpc1->SetRnrSelf(kTRUE);
+  tpc1->SetMainTransparency(80);
+  m++;
+
+  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+  tpc2->SetMainColor(kGray);
+  tpc2->SetMainTransparency(80);
+  m++;
+
+  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+  tpc3->SetRnrSelf(kTRUE);
+  tpc3->SetMainTransparency(80);
+  m++;
+
+//TRD+TOF
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainTransparency(80);
+
+    }
+
+//PHOS
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainTransparency(80);
+    }
+
+//HMPID
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainTransparency(80);
+    }
+
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  TEveElement* top = gEve->GetCurrentEvent();
+
+  AliEveMultiView *mv = AliEveMultiView::Instance();
+
+  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+
+  gEve->FullRedraw3D(kTRUE, kTRUE);
+
+}
+
diff --git a/EVE/alice-macros/geom_gentle_transparentdark.C b/EVE/alice-macros/geom_gentle_transparentdark.C
new file mode 100644 (file)
index 0000000..d54883a
--- /dev/null
@@ -0,0 +1,337 @@
+// $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
+
+void geom_gentle_transparentdark(Bool_t register_as_global=kTRUE)
+{
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  if (register_as_global)
+  {
+    gEve->AddGlobalElement(gsre1);
+  }
+
+//======================================
+
+  // Fix visibility, color and transparency
+
+  gsre1->SetRnrSelf(kFALSE);
+  TEveElement::List_i i = gsre1->BeginChildren();
+
+//ITS
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* its1 = (TEveGeoShape*) *k;
+  its1->SetRnrSelf(kTRUE);
+  its1->SetMainColor(0);
+  its1->SetMainTransparency(80);
+  k++;
+
+  TEveGeoShape* its2 = (TEveGeoShape*) *k;
+  its2->SetRnrSelf(kTRUE);
+  its2->SetMainColor(0);
+  its2->SetMainTransparency(80);
+  k++;
+
+  TEveGeoShape* its3 = (TEveGeoShape*) *k;
+  its3->SetRnrSelf(kTRUE);
+  its3->SetMainColor(0);
+  its3->SetMainTransparency(80);
+
+//TPC
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+  lvl3->SetRnrSelf(kFALSE);
+  lvl3->SetMainColor(0);
+  lvl3->SetMainTransparency(80);
+  TEveElement::List_i l = lvl3->BeginChildren();
+
+  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+  lvl4->SetRnrSelf(kFALSE);
+  TEveElement::List_i m = lvl4->BeginChildren();
+
+  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+  tpc1->SetRnrSelf(kTRUE);
+  tpc1->SetMainColor(0);
+  tpc1->SetMainTransparency(80);
+  m++;
+
+  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+  tpc2->SetMainColor(kGray);
+  tpc2->SetMainColor(0);
+  tpc2->SetMainTransparency(80);
+  m++;
+
+  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+  tpc3->SetRnrSelf(kTRUE);
+  tpc3->SetMainColor(0);
+  tpc3->SetMainTransparency(80);
+  m++;
+
+//TRD+TOF
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+//  TEveElement::List_i j = lvl1->BeginChildren();
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(0);
+      lvl2->SetMainTransparency(80);
+
+    }
+
+//PHOS
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+//  TEveElement::List_i j = lvl1->BeginChildren();
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(0);
+      lvl2->SetMainTransparency(80);
+    }
+
+//HMPID
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+//  TEveElement::List_i j = lvl1->BeginChildren();
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(0);
+      lvl2->SetMainTransparency(80);
+    }
+
+//======================================
+
+  // The resulting geometry is NOT added into the global scene!
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  // Fix visibility, color and transparency
+
+  gsre2->SetRnrSelf(kFALSE);
+  TEveElement::List_i i = gsre2->BeginChildren();
+
+//ITS
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* its1 = (TEveGeoShape*) *k;
+  its1->SetRnrSelf(kTRUE);
+  its1->SetMainColor(0);
+  its1->SetMainTransparency(80);
+
+  k++;
+
+  TEveGeoShape* its2 = (TEveGeoShape*) *k;
+  its2->SetRnrSelf(kTRUE);
+  its2->SetMainColor(0);
+  its2->SetMainTransparency(80);
+  k++;
+
+  TEveGeoShape* its3 = (TEveGeoShape*) *k;
+  its3->SetRnrSelf(kTRUE);
+  its3->SetMainColor(0);
+  its3->SetMainTransparency(80);
+
+//TPC
+
+  i++;
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+//  TEveElement::List_i j = lvl1->BeginChildren();
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(0);
+      lvl2->SetMainTransparency(80);
+    }
+
+//PHOS
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+//  TEveElement::List_i j = lvl1->BeginChildren();
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(0);
+      lvl2->SetMainTransparency(80);
+
+    }
+
+//HMPID
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+//  TEveElement::List_i j = lvl1->BeginChildren();
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(0);
+      lvl2->SetMainTransparency(80);
+    }
+
+//======================================
+
+  // The resulting geometry is NOT added into the global scene!
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  // Fix visibility, color and transparency
+
+  gsre3->SetRnrSelf(kFALSE);
+  TEveElement::List_i i = gsre3->BeginChildren();
+
+//ITS
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* its1 = (TEveGeoShape*) *k;
+  its1->SetRnrSelf(kTRUE);
+  its1->SetMainColor(0);
+  k++;
+
+  TEveGeoShape* its2 = (TEveGeoShape*) *k;
+  its2->SetRnrSelf(kTRUE);
+  its2->SetMainColor(0);
+  k++;
+
+  TEveGeoShape* its3 = (TEveGeoShape*) *k;
+  its3->SetRnrSelf(kTRUE);
+  its3->SetMainColor(0);
+
+//TPC
+
+  i++;
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+//  TEveElement::List_i j = lvl1->BeginChildren();
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(0);
+      lvl2->SetMainTransparency(80);
+
+    }
+
+//PHOS
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+//  TEveElement::List_i j = lvl1->BeginChildren();
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(0);
+      lvl2->SetMainTransparency(80);
+    }
+
+//HMPID
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+//  TEveElement::List_i j = lvl1->BeginChildren();
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(0);
+      lvl2->SetMainTransparency(80);
+    }
+
+//======================================
+
+
+  TEveElement* top = gEve->GetCurrentEvent();
+
+  AliEveMultiView *mv = AliEveMultiView::Instance();
+
+  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+
+  gEve->FullRedraw3D(kTRUE, kTRUE);
+
+}
diff --git a/EVE/alice-macros/geom_gentle_transparentlight.C b/EVE/alice-macros/geom_gentle_transparentlight.C
new file mode 100644 (file)
index 0000000..e1732c8
--- /dev/null
@@ -0,0 +1,309 @@
+void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
+{
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  if (register_as_global)
+  {
+    gEve->AddGlobalElement(gsre1);
+  }
+
+  // Fix visibility, color and transparency
+
+  gsre1->SetRnrSelf(kFALSE);
+  TEveElement::List_i i = gsre1->BeginChildren();
+
+//ITS
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* its1 = (TEveGeoShape*) *k;
+  its1->SetRnrSelf(kTRUE);
+  its1->SetMainColor(1);
+  its1->SetMainTransparency(80);
+  k++;
+
+  TEveGeoShape* its2 = (TEveGeoShape*) *k;
+  its2->SetRnrSelf(kTRUE);
+  its2->SetMainColor(1);
+  its2->SetMainTransparency(80);
+  k++;
+
+  TEveGeoShape* its3 = (TEveGeoShape*) *k;
+  its3->SetRnrSelf(kTRUE);
+  its3->SetMainColor(1);
+  its3->SetMainTransparency(80);
+
+//TPC
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
+  lvl3->SetRnrSelf(kFALSE);
+  lvl3->SetMainColor(1);
+  lvl3->SetMainTransparency(80);
+  TEveElement::List_i l = lvl3->BeginChildren();
+
+  TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
+  lvl4->SetRnrSelf(kFALSE);
+  TEveElement::List_i m = lvl4->BeginChildren();
+
+  TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
+  tpc1->SetRnrSelf(kTRUE);
+  tpc1->SetMainColor(1);
+  tpc1->SetMainTransparency(80);
+  m++;
+
+  TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
+  tpc2->SetMainColor(kGray);
+  tpc2->SetMainColor(1);
+  tpc2->SetMainTransparency(80);
+  m++;
+
+  TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
+  tpc3->SetRnrSelf(kTRUE);
+  tpc3->SetMainColor(1);
+  tpc3->SetMainTransparency(80);
+  m++;
+
+//TRD+TOF
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(1);
+      lvl2->SetMainTransparency(80);
+
+    }
+
+//PHOS
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(1);
+      lvl2->SetMainTransparency(80);
+    }
+
+//HMPID
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(1);
+      lvl2->SetMainTransparency(80);
+    }
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  // Fix visibility, color and transparency
+
+  gsre2->SetRnrSelf(kFALSE);
+  TEveElement::List_i i = gsre2->BeginChildren();
+
+//ITS
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* its1 = (TEveGeoShape*) *k;
+  its1->SetRnrSelf(kTRUE);
+  its1->SetMainColor(1);
+  its1->SetMainTransparency(80);
+
+  k++;
+
+  TEveGeoShape* its2 = (TEveGeoShape*) *k;
+  its2->SetRnrSelf(kTRUE);
+  its2->SetMainColor(1);
+  its2->SetMainTransparency(80);
+  k++;
+
+  TEveGeoShape* its3 = (TEveGeoShape*) *k;
+  its3->SetRnrSelf(kTRUE);
+  its3->SetMainColor(1);
+  its3->SetMainTransparency(80);
+
+//TPC
+
+  i++;
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(1);
+      lvl2->SetMainTransparency(80);
+    }
+
+//PHOS
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(1);
+      lvl2->SetMainTransparency(80);
+
+    }
+
+//HMPID
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(1);
+      lvl2->SetMainTransparency(80);
+    }
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  // Fix visibility, color and transparency
+
+  gsre3->SetRnrSelf(kFALSE);
+  TEveElement::List_i i = gsre3->BeginChildren();
+
+//ITS
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
+
+  TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+  lvl2->SetRnrSelf(kFALSE);
+  TEveElement::List_i k = lvl2->BeginChildren();
+
+  TEveGeoShape* its1 = (TEveGeoShape*) *k;
+  its1->SetRnrSelf(kTRUE);
+  its1->SetMainColor(1);
+  k++;
+
+  TEveGeoShape* its2 = (TEveGeoShape*) *k;
+  its2->SetRnrSelf(kTRUE);
+  its2->SetMainColor(1);
+  k++;
+
+  TEveGeoShape* its3 = (TEveGeoShape*) *k;
+  its3->SetRnrSelf(kTRUE);
+  its3->SetMainColor(1);
+
+//TPC
+
+  i++;
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(1);
+      lvl2->SetMainTransparency(80);
+
+    }
+
+//PHOS
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(1);
+      lvl2->SetMainTransparency(80);
+    }
+
+//HMPID
+
+  i++;
+
+  TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
+  lvl1->SetRnrSelf(kFALSE);
+
+  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
+    {
+      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
+      lvl2->SetRnrSelf(kTRUE);
+      lvl2->SetMainColor(1);
+      lvl2->SetMainTransparency(80);
+    }
+
+
+//fix all the viewers
+
+  TEveElement* top = gEve->GetCurrentEvent();
+
+  AliEveMultiView *mv = AliEveMultiView::Instance();
+
+  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+
+  gEve->FullRedraw3D(kTRUE, kTRUE);
+
+}
index 358c57e..9635bfe 100644 (file)
@@ -25,7 +25,7 @@ TEveGeoShape* geom_gentle_trd()
     {
       TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
       lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(3);
+      lvl2->SetMainColor(0);
       lvl2->SetMainTransparency(80);
     }
     
index 6893261..360459a 100644 (file)
@@ -177,7 +177,7 @@ primary_vertex(Bool_t use_sigma=kTRUE, Float_t fx=1, Float_t fy=1, Float_t fz=1)
   }
 
   TEveStraightLineSet* ls = make_vertex_cross(pv, use_sigma, fx, fy, fz);
-  ls->ApplyVizTag("PVTX");
+  ls->ApplyVizTag("REC PVTX");
   assert_vertex_parent("Primary Vertex", 7)->AddElement(ls);
   gEve->Redraw3D();
   return ls;
@@ -194,7 +194,7 @@ primary_vertex_spd(Bool_t use_sigma=kTRUE, Float_t fx=1, Float_t fy=1, Float_t f
   }
 
   TEveStraightLineSet* ls = make_vertex_cross(spdv, use_sigma, fx, fy, fz);
-  ls->ApplyVizTag("PVTX SPD");
+  ls->ApplyVizTag("REC PVTX SPD");
   assert_vertex_parent("Primary Vertex SPD", 6)->AddElement(ls);
   gEve->Redraw3D();
   return ls;
@@ -211,7 +211,7 @@ primary_vertex_tpc(Bool_t use_sigma=kTRUE, Float_t fx=1, Float_t fy=1, Float_t f
   }
 
   TEveStraightLineSet* ls = make_vertex_cross(tpcv, use_sigma, fx, fy, fz);
-  ls->ApplyVizTag("PVTX TPC");
+  ls->ApplyVizTag("REC PVTX TPC");
   assert_vertex_parent("Primary Vertex TPC", 5)->AddElement(ls);
   gEve->Redraw3D();
   return ls;
@@ -232,7 +232,7 @@ primary_vertex_ellipse(Bool_t use_sigma=kTRUE, Float_t fx=30, Float_t fy=30, Flo
   }
 
   TEveStraightLineSet* ls = make_vertex_ellipse(pv, use_sigma, fx, fy, fz);
-  ls->ApplyVizTag("PVTX Ellipse");
+  ls->ApplyVizTag("REC PVTX Ellipse");
   assert_vertex_parent("Primary Vertex", 7)->AddElement(ls);
   gEve->Redraw3D();
   return ls;
@@ -249,7 +249,7 @@ primary_vertex_ellipse_spd(Bool_t use_sigma=kTRUE, Float_t fx=30, Float_t fy=30,
   }
 
   TEveStraightLineSet* ls = make_vertex_ellipse(spdv, use_sigma, fx, fy, fz);
-  ls->ApplyVizTag("PVTX Ellipse SPD");
+  ls->ApplyVizTag("REC PVTX Ellipse SPD");
   assert_vertex_parent("Primary Vertex SPD", 6)->AddElement(ls);
   gEve->Redraw3D();
   return ls;
@@ -266,7 +266,7 @@ primary_vertex_ellipse_tpc(Bool_t use_sigma=kTRUE, Float_t fx=30, Float_t fy=30,
   }
 
   TEveStraightLineSet* ls = make_vertex_ellipse(tpcv, use_sigma, fx, fy, fz);
-  ls->ApplyVizTag("PVTX Ellipse TPC");
+  ls->ApplyVizTag("REC PVTX Ellipse TPC");
   assert_vertex_parent("Primary Vertex TPC", 5)->AddElement(ls);
   gEve->Redraw3D();
   return ls;
@@ -287,7 +287,7 @@ primary_vertex_box(Bool_t use_sigma=kTRUE, Float_t fx=30, Float_t fy=30, Float_t
   }
 
   TEveStraightLineSet* ls = make_vertex_box(pv, use_sigma, fx, fy, fz);
-  ls->ApplyVizTag("PVTX Box");
+  ls->ApplyVizTag("REC PVTX Box");
   assert_vertex_parent("Primary Vertex", 7)->AddElement(ls);
   gEve->Redraw3D();
   return ls;
@@ -304,7 +304,7 @@ primary_vertex_box_spd(Bool_t use_sigma=kTRUE, Float_t fx=30, Float_t fy=30, Flo
   }
 
   TEveStraightLineSet* ls = make_vertex_box(spdv, use_sigma, fx, fy, fz);
-  ls->ApplyVizTag("PVTX Box SPD");
+  ls->ApplyVizTag("REC PVTX Box SPD");
   assert_vertex_parent("Primary Vertex SPD", 6)->AddElement(ls);
   gEve->Redraw3D();
   return ls;
@@ -321,7 +321,7 @@ primary_vertex_box_tpc(Bool_t use_sigma=kTRUE, Float_t fx=30, Float_t fy=30, Flo
   }
 
   TEveStraightLineSet* ls = make_vertex_box(tpcv, use_sigma, fx, fy, fz);
-  ls->ApplyVizTag("PVTX Box TPC");
+  ls->ApplyVizTag("REC PVTX Box TPC");
   assert_vertex_parent("Primary Vertex TPC", 5)->AddElement(ls);
   gEve->Redraw3D();
   return ls;
index 3e93d56..243b702 100644 (file)
@@ -1,7 +1,9 @@
 void VizDB_scan()
 {
+
   TEvePointSet        *ps = 0;
   TEveStraightLineSet *ls = 0;
+  TEveTrackList       *tl = 0;
 
   //============================================================================
   // Hits
@@ -18,7 +20,7 @@ void VizDB_scan()
   ps->SetMarkerSize(0.5);
   ps->SetMarkerStyle(2);
   gEve->InsertVizDBEntry("SIM Hits ITS", ps);
-  
+
   ps = new TEvePointSet();
   ps->SetMarkerColor(3);
   ps->SetMarkerSize(0.5);
@@ -88,7 +90,7 @@ void VizDB_scan()
   ps->SetMarkerSize(0.2);
   ps->SetMarkerStyle(2);
   gEve->InsertVizDBEntry("REC Clusters ITS", ps);
-  
+
   ps = new TEvePointSet();
   ps->SetMarkerColor(kBlue);
   ps->SetMarkerSize(0.2);
@@ -119,7 +121,6 @@ void VizDB_scan()
   ps->SetMarkerStyle(2);
   gEve->InsertVizDBEntry("REC Clusters PHOS", ps);
 
-
   //============================================================================
   // Primary vertex
   //============================================================================
@@ -131,21 +132,21 @@ void VizDB_scan()
   ls->SetMarkerColor(7);
   ls->SetLineColor(7);
   ls->SetLineWidth(3);
-  gEve->InsertVizDBEntry("PVTX", ls);
+  gEve->InsertVizDBEntry("REC PVTX", ls);
 
   ls = new TEveStraightLineSet;
   ls->SetMarkerStyle(2);
   ls->SetMarkerColor(7);
   ls->SetLineColor(7);
   ls->SetLineWidth(1);
-  gEve->InsertVizDBEntry("PVTX Ellipse", ls);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse", ls);
 
   ls = new TEveStraightLineSet;
   ls->SetMarkerStyle(2);
   ls->SetMarkerColor(7);
   ls->SetLineColor(7);
   ls->SetLineWidth(1);
-  gEve->InsertVizDBEntry("PVTX Box", ls);
+  gEve->InsertVizDBEntry("REC PVTX Box", ls);
 
   // SPD vertex
 
@@ -154,21 +155,21 @@ void VizDB_scan()
   ls->SetMarkerColor(6);
   ls->SetLineColor(6);
   ls->SetLineWidth(3);
-  gEve->InsertVizDBEntry("PVTX SPD", ls);
+  gEve->InsertVizDBEntry("REC PVTX SPD", ls);
 
   ls = new TEveStraightLineSet;
   ls->SetMarkerStyle(2);
   ls->SetMarkerColor(6);
   ls->SetLineColor(6);
   ls->SetLineWidth(1);
-  gEve->InsertVizDBEntry("PVTX Ellipse SPD", ls);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse SPD", ls);
 
   ls = new TEveStraightLineSet;
   ls->SetMarkerStyle(2);
   ls->SetMarkerColor(6);
   ls->SetLineColor(6);
   ls->SetLineWidth(1);
-  gEve->InsertVizDBEntry("PVTX Box SPD", ls);
+  gEve->InsertVizDBEntry("REC PVTX Box SPD", ls);
 
   // TPC vertex
 
@@ -177,19 +178,113 @@ void VizDB_scan()
   ls->SetMarkerColor(5);
   ls->SetLineColor(5);
   ls->SetLineWidth(3);
-  gEve->InsertVizDBEntry("PVTX TPC", ls);
+  gEve->InsertVizDBEntry("REC PVTX TPC", ls);
 
   ls = new TEveStraightLineSet;
   ls->SetMarkerStyle(2);
   ls->SetMarkerColor(5);
   ls->SetLineColor(5);
   ls->SetLineWidth(1);
-  gEve->InsertVizDBEntry("PVTX Ellipse TPC", ls);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse TPC", ls);
 
   ls = new TEveStraightLineSet;
   ls->SetMarkerStyle(2);
   ls->SetMarkerColor(5);
   ls->SetLineColor(5);
   ls->SetLineWidth(1);
-  gEve->InsertVizDBEntry("PVTX Box TPC", ls);
+  gEve->InsertVizDBEntry("REC PVTX Box TPC", ls);
+
+
+  //============================================================================
+  // Tracks
+  //============================================================================
+
+  tl = new TEveTrackList("ESD Tracks");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks", tl);
+
+  tl = new TEveTrackList("ESD Tracks MI");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks MI", tl);
+
+
+  // esd_tracks_by_category()
+
+  tl = new TEveTrackList("Sigma < 3");
+  tl->SetLineStyle(6);
+  tl->SetLineColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks ByCat 0", tl);
+
+  tl = new TEveTrackList("3 < Sigma < 5");
+  tl->SetLineStyle(6);
+  tl->SetLineColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks ByCat 1", tl);
+
+  tl = new TEveTrackList("5 < Sigma");
+  tl->SetLineStyle(6);
+  tl->SetLineColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks ByCat 2", tl);
+
+  tl = new TEveTrackList("no ITS refit; Sigma < 5");
+  tl->SetLineStyle(6);
+  tl->SetLineColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks ByCat 3", tl);
+
+  tl = new TEveTrackList("no ITS refit; Sigma > 5");
+  tl->SetLineStyle(6);
+  tl->SetLineColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks ByCat 4", tl);
+
+  tl = new TEveTrackList("no TPC refit");
+  tl->SetLineStyle(6);
+  tl->SetLineColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks ByCat 5", tl);
+
+  tl = new TEveTrackList("ITS stand-alone");
+  tl->SetLineStyle(6);
+  tl->SetLineColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks ByCat 6", tl);
+
+
+  // esd_tracks_by_anal_cuts()
+
+  tl = new TEveTrackList("Passed");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks ByAnCuts Passed", tl);
+
+  tl = new TEveTrackList("Rejected");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks ByAnCuts Rejected", tl);
+
+
+  //============================================================================
+  // SPD tracklets
+  //============================================================================
+
+  tl = new TEveTrackList("Good");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracklet Good", tl);
+
+  tl = new TEveTrackList("Bad");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracklet Bad", tl);
 }
diff --git a/EVE/macros/VizDB_scan_projector.C b/EVE/macros/VizDB_scan_projector.C
new file mode 100644 (file)
index 0000000..7782275
--- /dev/null
@@ -0,0 +1,291 @@
+void VizDB_scan_projector()
+{
+
+  TEvePointSet        *ps = 0;
+  TEveStraightLineSet *ls = 0;
+
+  //============================================================================
+  // Hits
+  //============================================================================
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("Hits", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("SIM Hits ITS", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(3);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("SIM Hits TPC", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(3);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits T0", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits FMD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits ACORDE", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits EMCAL", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits PMD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits TOF", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(7);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits TRD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits VZERO", ps);
+
+  //============================================================================
+  // Clusters
+  //============================================================================
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("Clusters", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(5);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters ITS", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters TPC", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(7);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("REC Clusters TRD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(kOrange);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("REC Clusters TOF", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters HMPID", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters PHOS", ps);
+
+  //============================================================================
+  // Primary vertex
+  //============================================================================
+
+  // Combined vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box", ls);
+
+  // SPD vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX SPD", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse SPD", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box SPD", ls);
+
+  // TPC vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX TPC", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse TPC", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box TPC", ls);
+
+  //Tracks
+
+  tl = new TEveTrackList("ESD Tracks");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks",tl);
+
+  tl = new TEveTrackList("ESD Tracks MI");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks MI",tl);
+
+  TEveElementList* el = new TEveElementList("ESD Tracks by category");
+  TEveTrackList *tltemp[7];
+  tltemp[0] = new TEveTrackList("Sigma < 3");
+  tltemp[0]->SetLineStyle(6);
+  tltemp[0]->SetLineColor(1);
+  tltemp[0]->SetLineWidth(1);
+  el->AddElement(tltemp[0]);
+
+  tltemp[1] = new TEveTrackList("3 < Sigma < 5");
+  tltemp[1]->SetLineStyle(6);
+  tltemp[1]->SetLineColor(1);
+  tltemp[1]->SetLineWidth(1);
+  el->AddElement(tltemp[1]);
+
+  tltemp[2] = new TEveTrackList("5 < Sigma");
+  tltemp[2]->SetLineStyle(6);
+  tltemp[2]->SetLineColor(1);
+  tltemp[2]->SetLineWidth(1);
+  el->AddElement(tltemp[2]);
+
+  tltemp[3] = new TEveTrackList("no ITS refit; Sigma < 5");
+  tltemp[3]->SetLineStyle(6);
+  tltemp[3]->SetLineColor(1);
+  tltemp[3]->SetLineWidth(1);
+  el->AddElement(tltemp[3]);
+
+  tltemp[4] = new TEveTrackList("no ITS refit; Sigma > 5");
+  tltemp[4]->SetLineStyle(6);
+  tltemp[4]->SetLineColor(1);
+  tltemp[4]->SetLineWidth(1);
+  el->AddElement(tltemp[4]);
+
+  tltemp[5] = new TEveTrackList("no TPC refit");
+  tltemp[5]->SetLineStyle(6);
+  tltemp[5]->SetLineColor(1);
+  tltemp[5]->SetLineWidth(1);
+  el->AddElement(tltemp[5]);
+
+  tltemp[6] = new TEveTrackList("ITS stand-alone");
+  tltemp[6]->SetLineStyle(6);
+  tltemp[6]->SetLineColor(1);
+  tltemp[6]->SetLineWidth(1);
+  el->AddElement(tltemp[6]);
+
+  el->SetVizTag("ESD Tracks by category");
+  gEve->AddElement(el);
+
+  TEveElementList* el = new TEveElementList("ESD Tracks by anal cuts");
+  TEveTrackList *tlac[2];
+  tlac[0] = new TEveTrackList("Passed");
+  tlac[0]->SetLineStyle(6);
+  tlac[0]->SetMainColor(1);
+  tlac[0]->SetLineWidth(1);
+  el->AddElement(tlac[0]);
+
+  tlac[1] = new TEveTrackList("Rejected");
+  tlac[1]->SetLineStyle(6);
+  tlac[1]->SetMainColor(1);
+  tlac[1]->SetLineWidth(1);
+  el->AddElement(tlac[1]);
+
+  el->SetVizTag("ESD Tracks by anal cut");
+  gEve->AddElement(el);
+
+  TEveElementList* el = new TEveElementList("ESD Tracklets SPD");
+  TEveTrackList *tlac[2];
+  tlac[0] = new TEveTrackList("Good");
+  tlac[0]->SetLineStyle(6);
+  tlac[0]->SetMainColor(1);
+  tlac[0]->SetLineWidth(1);
+  el->AddElement(tlac[0]);
+
+  tlac[1] = new TEveTrackList("Bad");
+  tlac[1]->SetLineStyle(6);
+  tlac[1]->SetMainColor(1);
+  tlac[1]->SetLineWidth(1);
+  el->AddElement(tlac[1]);
+
+  el->SetVizTag("ESD Tracklets SPD");
+  gEve->AddElement(el);
+
+}
diff --git a/EVE/macros/VizDB_scan_screen.C b/EVE/macros/VizDB_scan_screen.C
new file mode 100644 (file)
index 0000000..dc4203d
--- /dev/null
@@ -0,0 +1,291 @@
+void VizDB_scan_screen()
+{
+
+  TEvePointSet        *ps = 0;
+  TEveStraightLineSet *ls = 0;
+
+  //============================================================================
+  // Hits
+  //============================================================================
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("Hits", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("SIM Hits ITS", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(3);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("SIM Hits TPC", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(3);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits T0", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits FMD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits ACORDE", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits EMCAL", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits PMD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits TOF", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(7);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits TRD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits VZERO", ps);
+
+  //============================================================================
+  // Clusters
+  //============================================================================
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("Clusters", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(5);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters ITS", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters TPC", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(7);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("REC Clusters TRD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(kOrange);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("REC Clusters TOF", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters HMPID", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters PHOS", ps);
+
+  //============================================================================
+  // Primary vertex
+  //============================================================================
+
+  // Combined vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box", ls);
+
+  // SPD vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX SPD", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse SPD", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box SPD", ls);
+
+  // TPC vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX TPC", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse TPC", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box TPC", ls);
+
+  //Tracks
+
+  tl = new TEveTrackList("ESD Tracks");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks",tl);
+
+  tl = new TEveTrackList("ESD Tracks MI");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks MI",tl);
+
+  TEveElementList* el = new TEveElementList("ESD Tracks by category");
+  TEveTrackList *tltemp[7];
+  tltemp[0] = new TEveTrackList("Sigma < 3");
+  tltemp[0]->SetLineStyle(6);
+  tltemp[0]->SetLineColor(1);
+  tltemp[0]->SetLineWidth(1);
+  el->AddElement(tltemp[0]);
+
+  tltemp[1] = new TEveTrackList("3 < Sigma < 5");
+  tltemp[1]->SetLineStyle(6);
+  tltemp[1]->SetLineColor(1);
+  tltemp[1]->SetLineWidth(1);
+  el->AddElement(tltemp[1]);
+
+  tltemp[2] = new TEveTrackList("5 < Sigma");
+  tltemp[2]->SetLineStyle(6);
+  tltemp[2]->SetLineColor(1);
+  tltemp[2]->SetLineWidth(1);
+  el->AddElement(tltemp[2]);
+
+  tltemp[3] = new TEveTrackList("no ITS refit; Sigma < 5");
+  tltemp[3]->SetLineStyle(6);
+  tltemp[3]->SetLineColor(1);
+  tltemp[3]->SetLineWidth(1);
+  el->AddElement(tltemp[3]);
+
+  tltemp[4] = new TEveTrackList("no ITS refit; Sigma > 5");
+  tltemp[4]->SetLineStyle(6);
+  tltemp[4]->SetLineColor(1);
+  tltemp[4]->SetLineWidth(1);
+  el->AddElement(tltemp[4]);
+
+  tltemp[5] = new TEveTrackList("no TPC refit");
+  tltemp[5]->SetLineStyle(6);
+  tltemp[5]->SetLineColor(1);
+  tltemp[5]->SetLineWidth(1);
+  el->AddElement(tltemp[5]);
+
+  tltemp[6] = new TEveTrackList("ITS stand-alone");
+  tltemp[6]->SetLineStyle(6);
+  tltemp[6]->SetLineColor(1);
+  tltemp[6]->SetLineWidth(1);
+  el->AddElement(tltemp[6]);
+
+  el->SetVizTag("ESD Tracks by category");
+  gEve->AddElement(el);
+
+  TEveElementList* el = new TEveElementList("ESD Tracks by anal cuts");
+  TEveTrackList *tlac[2];
+  tlac[0] = new TEveTrackList("Passed");
+  tlac[0]->SetLineStyle(6);
+  tlac[0]->SetMainColor(1);
+  tlac[0]->SetLineWidth(1);
+  el->AddElement(tlac[0]);
+
+  tlac[1] = new TEveTrackList("Rejected");
+  tlac[1]->SetLineStyle(6);
+  tlac[1]->SetMainColor(1);
+  tlac[1]->SetLineWidth(1);
+  el->AddElement(tlac[1]);
+
+  el->SetVizTag("ESD Tracks by anal cut");
+  gEve->AddElement(el);
+
+  TEveElementList* el = new TEveElementList("ESD Tracklets SPD");
+  TEveTrackList *tlac[2];
+  tlac[0] = new TEveTrackList("Good");
+  tlac[0]->SetLineStyle(6);
+  tlac[0]->SetMainColor(1);
+  tlac[0]->SetLineWidth(1);
+  el->AddElement(tlac[0]);
+
+  tlac[1] = new TEveTrackList("Bad");
+  tlac[1]->SetLineStyle(6);
+  tlac[1]->SetMainColor(1);
+  tlac[1]->SetLineWidth(1);
+  el->AddElement(tlac[1]);
+
+  el->SetVizTag("ESD Tracklets SPD");
+  gEve->AddElement(el);
+
+}
diff --git a/EVE/macros/VizDB_scan_tpc.C b/EVE/macros/VizDB_scan_tpc.C
new file mode 100644 (file)
index 0000000..d33faae
--- /dev/null
@@ -0,0 +1,293 @@
+void VizDB_scan_tpc()
+{
+
+  TEvePointSet        *ps = 0;
+  TEveStraightLineSet *ls = 0;
+//  TEveTrackList       *tltemp;
+//  TEveTrackList       *tl;
+
+  //============================================================================
+  // Hits
+  //============================================================================
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("Hits", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("SIM Hits ITS", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(3);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("SIM Hits TPC", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(3);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits T0", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits FMD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits ACORDE", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits EMCAL", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits PMD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits TOF", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(7);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits TRD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits VZERO", ps);
+
+  //============================================================================
+  // Clusters
+  //============================================================================
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("Clusters", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(5);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters ITS", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters TPC", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(7);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("REC Clusters TRD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(kOrange);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("REC Clusters TOF", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters HMPID", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters PHOS", ps);
+
+  //============================================================================
+  // Primary vertex
+  //============================================================================
+
+  // Combined vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box", ls);
+
+  // SPD vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX SPD", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse SPD", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box SPD", ls);
+
+  // TPC vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX TPC", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse TPC", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box TPC", ls);
+
+  //Tracks
+
+  tl = new TEveTrackList("ESD Tracks");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks",tl);
+
+  tl = new TEveTrackList("ESD Tracks MI");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks MI",tl);
+
+  TEveElementList* el = new TEveElementList("ESD Tracks by category");
+  TEveTrackList *tltemp[7];
+  tltemp[0] = new TEveTrackList("Sigma < 3");
+  tltemp[0]->SetLineStyle(6);
+  tltemp[0]->SetLineColor(1);
+  tltemp[0]->SetLineWidth(1);
+  el->AddElement(tltemp[0]);
+
+  tltemp[1] = new TEveTrackList("3 < Sigma < 5");
+  tltemp[1]->SetLineStyle(6);
+  tltemp[1]->SetLineColor(1);
+  tltemp[1]->SetLineWidth(1);
+  el->AddElement(tltemp[1]);
+
+  tltemp[2] = new TEveTrackList("5 < Sigma");
+  tltemp[2]->SetLineStyle(6);
+  tltemp[2]->SetLineColor(1);
+  tltemp[2]->SetLineWidth(1);
+  el->AddElement(tltemp[2]);
+
+  tltemp[3] = new TEveTrackList("no ITS refit; Sigma < 5");
+  tltemp[3]->SetLineStyle(6);
+  tltemp[3]->SetLineColor(1);
+  tltemp[3]->SetLineWidth(1);
+  el->AddElement(tltemp[3]);
+
+  tltemp[4] = new TEveTrackList("no ITS refit; Sigma > 5");
+  tltemp[4]->SetLineStyle(6);
+  tltemp[4]->SetLineColor(1);
+  tltemp[4]->SetLineWidth(1);
+  el->AddElement(tltemp[4]);
+
+  tltemp[5] = new TEveTrackList("no TPC refit");
+  tltemp[5]->SetLineStyle(6);
+  tltemp[5]->SetLineColor(1);
+  tltemp[5]->SetLineWidth(1);
+  el->AddElement(tltemp[5]);
+
+  tltemp[6] = new TEveTrackList("ITS stand-alone");
+  tltemp[6]->SetLineStyle(6);
+  tltemp[6]->SetLineColor(1);
+  tltemp[6]->SetLineWidth(1);
+  el->AddElement(tltemp[6]);
+
+  el->SetVizTag("ESD Tracks by category");
+  gEve->AddElement(el);
+
+  TEveElementList* el = new TEveElementList("ESD Tracks by anal cuts");
+  TEveTrackList *tlac[2];
+  tlac[0] = new TEveTrackList("Passed");
+  tlac[0]->SetLineStyle(6);
+  tlac[0]->SetMainColor(1);
+  tlac[0]->SetLineWidth(1);
+  el->AddElement(tlac[0]);
+
+  tlac[1] = new TEveTrackList("Rejected");
+  tlac[1]->SetLineStyle(6);
+  tlac[1]->SetMainColor(1);
+  tlac[1]->SetLineWidth(1);
+  el->AddElement(tlac[1]);
+
+  el->SetVizTag("ESD Tracks by anal cut");
+  gEve->AddElement(el);
+
+  TEveElementList* el = new TEveElementList("ESD Tracklets SPD");
+  TEveTrackList *tlac[2];
+  tlac[0] = new TEveTrackList("Good");
+  tlac[0]->SetLineStyle(6);
+  tlac[0]->SetMainColor(1);
+  tlac[0]->SetLineWidth(1);
+  el->AddElement(tlac[0]);
+
+  tlac[1] = new TEveTrackList("Bad");
+  tlac[1]->SetLineStyle(6);
+  tlac[1]->SetMainColor(1);
+  tlac[1]->SetLineWidth(1);
+  el->AddElement(tlac[1]);
+
+  el->SetVizTag("ESD Tracklets SPD");
+  gEve->AddElement(el);
+
+}
diff --git a/EVE/macros/VizDB_scan_transparentdark.C b/EVE/macros/VizDB_scan_transparentdark.C
new file mode 100644 (file)
index 0000000..a5c6094
--- /dev/null
@@ -0,0 +1,291 @@
+void VizDB_scan_transparentdark()
+{
+
+  TEvePointSet        *ps = 0;
+  TEveStraightLineSet *ls = 0;
+
+  //============================================================================
+  // Hits
+  //============================================================================
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("Hits", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("SIM Hits ITS", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(3);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("SIM Hits TPC", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(3);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits T0", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits FMD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits ACORDE", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits EMCAL", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits PMD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits TOF", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(7);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits TRD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits VZERO", ps);
+
+  //============================================================================
+  // Clusters
+  //============================================================================
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("Clusters", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(5);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters ITS", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters TPC", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(7);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("REC Clusters TRD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(kOrange);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("REC Clusters TOF", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.2);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters HMPID", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("REC Clusters PHOS", ps);
+
+  //============================================================================
+  // Primary vertex
+  //============================================================================
+
+  // Combined vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box", ls);
+
+  // SPD vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX SPD", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse SPD", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box SPD", ls);
+
+  // TPC vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX TPC", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse TPC", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box TPC", ls);
+
+  //Tracks
+
+  tl = new TEveTrackList("ESD Tracks");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks",tl);
+
+  tl = new TEveTrackList("ESD Tracks MI");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks MI",tl);
+
+  TEveElementList* el = new TEveElementList("ESD Tracks by category");
+  TEveTrackList *tltemp[7];
+  tltemp[0] = new TEveTrackList("Sigma < 3");
+  tltemp[0]->SetLineStyle(6);
+  tltemp[0]->SetLineColor(1);
+  tltemp[0]->SetLineWidth(1);
+  el->AddElement(tltemp[0]);
+
+  tltemp[1] = new TEveTrackList("3 < Sigma < 5");
+  tltemp[1]->SetLineStyle(6);
+  tltemp[1]->SetLineColor(1);
+  tltemp[1]->SetLineWidth(1);
+  el->AddElement(tltemp[1]);
+
+  tltemp[2] = new TEveTrackList("5 < Sigma");
+  tltemp[2]->SetLineStyle(6);
+  tltemp[2]->SetLineColor(1);
+  tltemp[2]->SetLineWidth(1);
+  el->AddElement(tltemp[2]);
+
+  tltemp[3] = new TEveTrackList("no ITS refit; Sigma < 5");
+  tltemp[3]->SetLineStyle(6);
+  tltemp[3]->SetLineColor(1);
+  tltemp[3]->SetLineWidth(1);
+  el->AddElement(tltemp[3]);
+
+  tltemp[4] = new TEveTrackList("no ITS refit; Sigma > 5");
+  tltemp[4]->SetLineStyle(6);
+  tltemp[4]->SetLineColor(1);
+  tltemp[4]->SetLineWidth(1);
+  el->AddElement(tltemp[4]);
+
+  tltemp[5] = new TEveTrackList("no TPC refit");
+  tltemp[5]->SetLineStyle(6);
+  tltemp[5]->SetLineColor(1);
+  tltemp[5]->SetLineWidth(1);
+  el->AddElement(tltemp[5]);
+
+  tltemp[6] = new TEveTrackList("ITS stand-alone");
+  tltemp[6]->SetLineStyle(6);
+  tltemp[6]->SetLineColor(1);
+  tltemp[6]->SetLineWidth(1);
+  el->AddElement(tltemp[6]);
+
+  el->SetVizTag("ESD Tracks by category");
+  gEve->AddElement(el);
+
+  TEveElementList* el = new TEveElementList("ESD Tracks by anal cuts");
+  TEveTrackList *tlac[2];
+  tlac[0] = new TEveTrackList("Passed");
+  tlac[0]->SetLineStyle(6);
+  tlac[0]->SetMainColor(1);
+  tlac[0]->SetLineWidth(1);
+  el->AddElement(tlac[0]);
+
+  tlac[1] = new TEveTrackList("Rejected");
+  tlac[1]->SetLineStyle(6);
+  tlac[1]->SetMainColor(1);
+  tlac[1]->SetLineWidth(1);
+  el->AddElement(tlac[1]);
+
+  el->SetVizTag("ESD Tracks by anal cut");
+  gEve->AddElement(el);
+
+  TEveElementList* el = new TEveElementList("ESD Tracklets SPD");
+  TEveTrackList *tlac[2];
+  tlac[0] = new TEveTrackList("Good");
+  tlac[0]->SetLineStyle(6);
+  tlac[0]->SetMainColor(1);
+  tlac[0]->SetLineWidth(1);
+  el->AddElement(tlac[0]);
+
+  tlac[1] = new TEveTrackList("Bad");
+  tlac[1]->SetLineStyle(6);
+  tlac[1]->SetMainColor(1);
+  tlac[1]->SetLineWidth(1);
+  el->AddElement(tlac[1]);
+
+  el->SetVizTag("ESD Tracklets SPD");
+  gEve->AddElement(el);
+
+}
diff --git a/EVE/macros/VizDB_scan_transparentlight.C b/EVE/macros/VizDB_scan_transparentlight.C
new file mode 100644 (file)
index 0000000..5c6242f
--- /dev/null
@@ -0,0 +1,291 @@
+void VizDB_scan_transparentlight()
+{
+
+  TEvePointSet        *ps = 0;
+  TEveStraightLineSet *ls = 0;
+
+  //============================================================================
+  // Hits
+  //============================================================================
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("Hits", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("SIM Hits ITS", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(3);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("SIM Hits TPC", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(3);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits T0", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits FMD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits ACORDE", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits EMCAL", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits PMD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits TOF", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(7);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits TRD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(.5);
+  ps->SetMarkerStyle(4);
+  gEve->InsertVizDBEntry("SIM Hits VZERO", ps);
+
+  //============================================================================
+  // Clusters
+  //============================================================================
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(0.5);
+  ps->SetMarkerStyle(2);
+  gEve->InsertVizDBEntry("Clusters", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(5);
+  ps->SetMarkerSize(1);
+  ps->SetMarkerStyle(8);
+  gEve->InsertVizDBEntry("REC Clusters ITS", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(4);
+  ps->SetMarkerSize(1);
+  ps->SetMarkerStyle(8);
+  gEve->InsertVizDBEntry("REC Clusters TPC", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(2);
+  ps->SetMarkerSize(1);
+  ps->SetMarkerStyle(8);
+  gEve->InsertVizDBEntry("REC Clusters TRD", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(kOrange);
+  ps->SetMarkerSize(1);
+  ps->SetMarkerStyle(8);
+  gEve->InsertVizDBEntry("REC Clusters TOF", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(5);
+  ps->SetMarkerSize(1);
+  ps->SetMarkerStyle(8);
+  gEve->InsertVizDBEntry("REC Clusters HMPID", ps);
+
+  ps = new TEvePointSet();
+  ps->SetMarkerColor(5);
+  ps->SetMarkerSize(1);
+  ps->SetMarkerStyle(8);
+  gEve->InsertVizDBEntry("REC Clusters PHOS", ps);
+
+  //============================================================================
+  // Primary vertex
+  //============================================================================
+
+  // Combined vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(7);
+  ls->SetLineColor(7);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box", ls);
+
+  // SPD vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX SPD", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse SPD", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(6);
+  ls->SetLineColor(6);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box SPD", ls);
+
+  // TPC vertex
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(3);
+  gEve->InsertVizDBEntry("REC PVTX TPC", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Ellipse TPC", ls);
+
+  ls = new TEveStraightLineSet;
+  ls->SetMarkerStyle(2);
+  ls->SetMarkerColor(5);
+  ls->SetLineColor(5);
+  ls->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC PVTX Box TPC", ls);
+
+  //Tracks
+
+  tl = new TEveTrackList("ESD Tracks");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks",tl);
+
+  tl = new TEveTrackList("ESD Tracks MI");
+  tl->SetLineStyle(6);
+  tl->SetMainColor(1);
+  tl->SetLineWidth(1);
+  gEve->InsertVizDBEntry("REC Tracks MI",tl);
+
+  TEveElementList* el = new TEveElementList("ESD Tracks by category");
+  TEveTrackList *tltemp[7];
+  tltemp[0] = new TEveTrackList("Sigma < 3");
+  tltemp[0]->SetLineStyle(6);
+  tltemp[0]->SetLineColor(1);
+  tltemp[0]->SetLineWidth(1);
+  el->AddElement(tltemp[0]);
+
+  tltemp[1] = new TEveTrackList("3 < Sigma < 5");
+  tltemp[1]->SetLineStyle(6);
+  tltemp[1]->SetLineColor(1);
+  tltemp[1]->SetLineWidth(1);
+  el->AddElement(tltemp[1]);
+
+  tltemp[2] = new TEveTrackList("5 < Sigma");
+  tltemp[2]->SetLineStyle(6);
+  tltemp[2]->SetLineColor(1);
+  tltemp[2]->SetLineWidth(1);
+  el->AddElement(tltemp[2]);
+
+  tltemp[3] = new TEveTrackList("no ITS refit; Sigma < 5");
+  tltemp[3]->SetLineStyle(6);
+  tltemp[3]->SetLineColor(1);
+  tltemp[3]->SetLineWidth(1);
+  el->AddElement(tltemp[3]);
+
+  tltemp[4] = new TEveTrackList("no ITS refit; Sigma > 5");
+  tltemp[4]->SetLineStyle(6);
+  tltemp[4]->SetLineColor(1);
+  tltemp[4]->SetLineWidth(1);
+  el->AddElement(tltemp[4]);
+
+  tltemp[5] = new TEveTrackList("no TPC refit");
+  tltemp[5]->SetLineStyle(6);
+  tltemp[5]->SetLineColor(1);
+  tltemp[5]->SetLineWidth(1);
+  el->AddElement(tltemp[5]);
+
+  tltemp[6] = new TEveTrackList("ITS stand-alone");
+  tltemp[6]->SetLineStyle(6);
+  tltemp[6]->SetLineColor(1);
+  tltemp[6]->SetLineWidth(1);
+  el->AddElement(tltemp[6]);
+
+  el->SetVizTag("ESD Tracks by category");
+  gEve->AddElement(el);
+
+  TEveElementList* el = new TEveElementList("ESD Tracks by anal cuts");
+  TEveTrackList *tlac[2];
+  tlac[0] = new TEveTrackList("Passed");
+  tlac[0]->SetLineStyle(6);
+  tlac[0]->SetMainColor(1);
+  tlac[0]->SetLineWidth(1);
+  el->AddElement(tlac[0]);
+
+  tlac[1] = new TEveTrackList("Rejected");
+  tlac[1]->SetLineStyle(6);
+  tlac[1]->SetMainColor(1);
+  tlac[1]->SetLineWidth(1);
+  el->AddElement(tlac[1]);
+
+  el->SetVizTag("ESD Tracks by anal cut");
+  gEve->AddElement(el);
+
+  TEveElementList* el = new TEveElementList("ESD Tracklets SPD");
+  TEveTrackList *tlac[2];
+  tlac[0] = new TEveTrackList("Good");
+  tlac[0]->SetLineStyle(6);
+  tlac[0]->SetMainColor(1);
+  tlac[0]->SetLineWidth(1);
+  el->AddElement(tlac[0]);
+
+  tlac[1] = new TEveTrackList("Bad");
+  tlac[1]->SetLineStyle(6);
+  tlac[1]->SetMainColor(1);
+  tlac[1]->SetLineWidth(1);
+  el->AddElement(tlac[1]);
+
+  el->SetVizTag("ESD Tracklets SPD");
+  gEve->AddElement(el);
+
+}
index b0689ef..65cf275 100644 (file)
@@ -102,9 +102,9 @@ void visscan_init(const TString& cdburi = "",
   exec->AddMacro(new AliEveMacro(AliEveMacro::kRawReader, "RAW VZERO",   "vzero_raw.C",   "vzero_raw",   "", kFALSE));
   exec->AddMacro(new AliEveMacro(AliEveMacro::kRawReader, "RAW ACORDE",  "acorde_raw.C",  "acorde_raw",  "", kFALSE));
 
-  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC PVTX",         "primary_vertex.C+", "primary_vertex",             "",                kTRUE));
-  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC PVTX Ellipse", "primary_vertex.C+", "primary_vertex_ellipse",     "",                kTRUE));
-  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC PVTX Box",     "primary_vertex.C+", "primary_vertex_box",         "kFALSE, 3, 3, 3", kFALSE));
+  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC PVTX",             "primary_vertex.C+", "primary_vertex",             "",                kTRUE));
+  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC PVTX Ellipse",     "primary_vertex.C+", "primary_vertex_ellipse",     "",                kTRUE));
+  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC PVTX Box",         "primary_vertex.C+", "primary_vertex_box",         "kFALSE, 3, 3, 3", kFALSE));
   exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC PVTX SPD",         "primary_vertex.C+", "primary_vertex_spd",         "",                kTRUE));
   exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC PVTX Ellipse SPD", "primary_vertex.C+", "primary_vertex_ellipse_spd", "",                kTRUE));
   exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC PVTX Box SPD",     "primary_vertex.C+", "primary_vertex_box_spd",     "kFALSE, 3, 3, 3", kFALSE));
@@ -120,12 +120,12 @@ void visscan_init(const TString& cdburi = "",
   exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC KINK", "esd_kink_points.C",     "esd_kink_points"));
   exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC KINK", "esd_kink.C",            "esd_kink"));
 
-  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Track", "esd_tracks.C+", "esd_tracks",              "", kFALSE));
-  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Track", "esd_tracks.C+", "esd_tracks_MI",           "", kFALSE));
-  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Track", "esd_tracks.C+", "esd_tracks_by_category",  "", kTRUE));
-  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Track", "esd_tracks.C+", "esd_tracks_by_anal_cuts", "", kFALSE));
+  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Tracks",              "esd_tracks.C+", "esd_tracks",              "", kFALSE));
+  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 Tracklet", "esd_spd_tracklets.C", "esd_spd_tracklets", "", kTRUE));
+  exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC Tracklets SPD", "esd_spd_tracklets.C", "esd_spd_tracklets", "", kTRUE));
 
   exec->AddMacro(new AliEveMacro(AliEveMacro::kESD, "REC ZDC",      "esd_zdc.C", "esd_zdc", "", kFALSE));