clusters->SetTitle(tip);
const TString viz_tag("ITS Clusters");
- if (gEve->FindVizDBEntry(viz_tag) == 0)
- {
- TEvePointSet* m = new TEvePointSet();
- m->SetMarkerColor(4);
- m->SetMarkerSize(0.2);
- m->SetMarkerStyle(2);
- gEve->InsertVizDBEntry(viz_tag, m);
- }
- // The above can be removed when going to new root - then call:
+ // When going to new root call:
// clusters->ApplyVizTag(viz_tag, "Clusters");
clusters->ApplyVizTag(viz_tag);
clusters->SetTitle(tip);
const TString viz_tag("TOF Clusters");
- if (gEve->FindVizDBEntry(viz_tag) == 0)
- {
- TEvePointSet* m = new TEvePointSet();
- m->SetMarkerColor(4);
- m->SetMarkerSize(0.2);
- m->SetMarkerStyle(2);
- gEve->InsertVizDBEntry(viz_tag, m);
- }
+ // when going to new root call:
+ // clusters->ApplyVizTag(viz_tag, "Clusters");
clusters->ApplyVizTag(viz_tag);
gEve->AddElement(clusters, cont);
clusters->SetTitle(tip);
const TString viz_tag("TOF Clusters");
- if (gEve->FindVizDBEntry(viz_tag) == 0)
- {
- TEvePointSet* m = new TEvePointSet();
- m->SetMarkerColor(4);
- m->SetMarkerSize(0.2);
- m->SetMarkerStyle(2);
- gEve->InsertVizDBEntry(viz_tag, m);
- }
- // The above can be removed when going to new root - then call:
+ // when going to new root call:
// clusters->ApplyVizTag(viz_tag, "Clusters");
clusters->ApplyVizTag(viz_tag);
clusters->SetTitle(tip);
const TString viz_tag("TPC Clusters");
- if (gEve->FindVizDBEntry(viz_tag) == 0)
- {
- TEvePointSet* m = new TEvePointSet();
- m->SetMarkerColor(4);
- m->SetMarkerSize(0.2);
- m->SetMarkerStyle(2);
- gEve->InsertVizDBEntry(viz_tag, m);
- }
- // The above can be removed when going to new root - then call:
+ // when going to new root call:
// clusters->ApplyVizTag(viz_tag, "Clusters");
clusters->ApplyVizTag(viz_tag);
clusters->SetTitle(tip);
const TString viz_tag("TRD Clusters");
- if (gEve->FindVizDBEntry(viz_tag) == 0)
- {
- TEvePointSet* m = new TEvePointSet();
- m->SetMarkerColor(4);
- m->SetMarkerSize(0.2);
- m->SetMarkerStyle(2);
- gEve->InsertVizDBEntry(viz_tag, m);
- }
- // The above can be removed when going to new root - then call:
+ // when going to new root call:
// clusters->ApplyVizTag(viz_tag, "Clusters");
clusters->ApplyVizTag(viz_tag);
alieve_init_import_macros();
gSystem->cd(hack);
- alieve_init_basic_vizdb();
+ // Temporarily assert default vizdb
+ TEveUtil::AssertMacro("VizDB_scan.C");
gSystem->ProcessEvents();
}
}
}
-
-void alieve_init_basic_vizdb()
-{
- // For now this is copy from the VizDB_scan ... this should be
- // reduced when going to a newer root (remove box/ellipse).
-
- TEveStraightLineSet *ls = 0;
-
- //============================================================================
- // Primary vertex
- //============================================================================
-
- // Combined vertex
-
- ls = new TEveStraightLineSet;
- ls->SetMarkerStyle(2);
- ls->SetMarkerColor(7);
- ls->SetLineColor(7);
- ls->SetLineWidth(3);
- gEve->InsertVizDBEntry("PVTX", ls);
-
- ls = new TEveStraightLineSet;
- ls->SetMarkerStyle(2);
- ls->SetMarkerColor(7);
- ls->SetLineColor(7);
- ls->SetLineWidth(1);
- gEve->InsertVizDBEntry("PVTX Ellipse", ls);
-
- ls = new TEveStraightLineSet;
- ls->SetMarkerStyle(2);
- ls->SetMarkerColor(7);
- ls->SetLineColor(7);
- ls->SetLineWidth(1);
- gEve->InsertVizDBEntry("PVTX Box", ls);
-
- // SPD vertex
-
- ls = new TEveStraightLineSet;
- ls->SetMarkerStyle(2);
- ls->SetMarkerColor(6);
- ls->SetLineColor(6);
- ls->SetLineWidth(3);
- gEve->InsertVizDBEntry("PVTX SPD", ls);
-
- ls = new TEveStraightLineSet;
- ls->SetMarkerStyle(2);
- ls->SetMarkerColor(6);
- ls->SetLineColor(6);
- ls->SetLineWidth(1);
- gEve->InsertVizDBEntry("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);
-
- // TPC vertex
-
- ls = new TEveStraightLineSet;
- ls->SetMarkerStyle(2);
- ls->SetMarkerColor(5);
- ls->SetLineColor(5);
- ls->SetLineWidth(3);
- gEve->InsertVizDBEntry("PVTX TPC", ls);
-
- ls = new TEveStraightLineSet;
- ls->SetMarkerStyle(2);
- ls->SetMarkerColor(5);
- ls->SetLineColor(5);
- ls->SetLineWidth(1);
- gEve->InsertVizDBEntry("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);
-}