]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/macros/VizDB_scan.C
Implemented Mutex
[u/mrichter/AliRoot.git] / EVE / macros / VizDB_scan.C
index b1c5448c13296da19a32f9ba597f8bc057da4c9b..243b7026117418b38d2490b020feda2342847ccf 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);
@@ -37,6 +39,41 @@ void VizDB_scan()
   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
@@ -49,13 +86,13 @@ void VizDB_scan()
   gEve->InsertVizDBEntry("Clusters", ps);
 
   ps = new TEvePointSet();
-  ps->SetMarkerColor(5);
+  ps->SetMarkerColor(kBlue);
   ps->SetMarkerSize(0.2);
   ps->SetMarkerStyle(2);
   gEve->InsertVizDBEntry("REC Clusters ITS", ps);
-  
+
   ps = new TEvePointSet();
-  ps->SetMarkerColor(4);
+  ps->SetMarkerColor(kBlue);
   ps->SetMarkerSize(0.2);
   ps->SetMarkerStyle(2);
   gEve->InsertVizDBEntry("REC Clusters TPC", ps);
@@ -67,11 +104,22 @@ void VizDB_scan()
   gEve->InsertVizDBEntry("REC Clusters TRD", ps);
 
   ps = new TEvePointSet();
-  ps->SetMarkerColor(kOrange);
+  ps->SetMarkerColor(kOrange+9);
   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
@@ -84,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
 
@@ -107,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
 
@@ -130,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);
 }