VZERO added.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Sep 2002 14:32:04 +0000 (14:32 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Sep 2002 14:32:04 +0000 (14:32 +0000)
macros/DrawPictures.C
macros/DrawTrees.C
macros/DrawVZERO.C [new file with mode: 0755]
macros/ViewVZERO.C [new file with mode: 0755]

index 46ee82f579d9e8c41fb992e4aeffeaa1035a1dc9..03d8b51c30535084609b0ac8f5dd09bb6785b02f 100644 (file)
@@ -16,9 +16,10 @@ void DrawPictures()
    menu->AddButton("PMD shaded",   ".x DrawPMD.C","Draw a shaded view of PMD");
    menu->AddButton("RICH shaded",  ".x DrawRICH.C","Draw a shaded view of RICH");
    menu->AddButton("SHIL shaded",  ".x DrawSHIL.C","Draw a shaded view of SHIL");
-   menu->AddButton("START shaded",  ".x DrawSTART.C","Draw a shaded view of START");
+   menu->AddButton("START shaded", ".x DrawSTART.C","Draw a shaded view of START");
    menu->AddButton("TOF shaded",   ".x DrawTOF.C","Draw a shaded view of TOF");
    menu->AddButton("TRD shaded",   ".x DrawTRD.C","Draw a shaded view of TRD");
    menu->AddButton("ZDC shaded",   ".x DrawZDC.C","Draw a shaded view of ZDC");
+   menu->AddButton("VZERO shaded", ".x DrawVZERO.C","Draw a shaded view of VZERO"); 
    menu->Show();
 }
index 0329b4bec308381d326a45748b51dc33899e182f..2ed4a8a406dfc5945efc06e6be032c888d8555cc 100644 (file)
@@ -20,6 +20,8 @@ void DrawTrees()
    menu->AddButton("TOF tree",     "((TGeant3*)gMC)->Gdtree(\"FBAR\")","Shows the Geant tree for the TOF");
    menu->AddButton("TRD tree",     "((TGeant3*)gMC)->Gdtree(\"trd\")","Shows the Geant tree for the TRD");
    menu->AddButton("ZDC tree",     "((TGeant3*)gMC)->Gdtree(\"zdc\")","Shows the Geant tree for the ZDC");
+   menu->AddButton("V0R tree", "((TGeant3*)gMC)->Gdtree(\"V0RI\")","Shows the Geant tree for the V0R");
+   menu->AddButton("V0L tree", "((TGeant3*)gMC)->Gdtree(\"V0LE\")","Shows the Geant tree for the V0L");
    menu->Show();
 }
 
diff --git a/macros/DrawVZERO.C b/macros/DrawVZERO.C
new file mode 100755 (executable)
index 0000000..e02706e
--- /dev/null
@@ -0,0 +1,28 @@
+void DrawVZERO()
+
+{
+   gMC->Gsatt("*", "seen", -1);
+   gMC->Gsatt("alic", "seen", 0);
+   gROOT->LoadMacro("ViewVZERO.C");
+   gInterpreter->ProcessLine("ViewVZERO()");
+   gMC->Gdopt("hide", "off");
+   gMC->Gdopt("shad", "off");
+   gMC->Gsatt("*", "fill", 7);
+   gMC->SetClipBox(".");
+   gMC->DefaultRange();
+   
+//   Vues de la partie gauche :
+
+//   gMC->Gdraw("alic", 30, 0, 0, -25, 10, 0.2, 0.2);
+
+//   Vues de la partie droite :
+
+//  gMC->Gdraw("alic", 0, 0, 0, 10, 10, 0.2, 0.2);
+
+
+    gMC->Gdraw("alic", 90, 0, 0, 90, 9, 0.92, 0.2 );
+  
+    gMC->Gdhead(1111, "VZERO Detector");
+
+
+}
diff --git a/macros/ViewVZERO.C b/macros/ViewVZERO.C
new file mode 100755 (executable)
index 0000000..24b758f
--- /dev/null
@@ -0,0 +1,20 @@
+void ViewVZERO()
+{
+
+     gMC->Gsatt("V0RI","seen",0);
+     
+     gMC->Gsatt("V0CA","seen",1);
+     gMC->Gsatt("V0IR","seen",1);
+     gMC->Gsatt("V0ER","seen",1);
+     
+     gMC->Gsatt("V0R0","seen",0);     
+     gMC->Gsatt("V0R1","seen",1);
+     gMC->Gsatt("V0R2","seen",1);
+     gMC->Gsatt("V0R3","seen",1);
+     gMC->Gsatt("V0R4","seen",1);
+     gMC->Gsatt("V0R5","seen",1); 
+     gMC->Gsatt("V0R6","seen",1); 
+    
+}
+
+