From 9fe20aac9215abe8aae5333071230a1f1ef35d30 Mon Sep 17 00:00:00 2001 From: morsch Date: Mon, 2 Sep 2002 14:32:04 +0000 Subject: [PATCH] VZERO added. --- macros/DrawPictures.C | 3 ++- macros/DrawTrees.C | 2 ++ macros/DrawVZERO.C | 28 ++++++++++++++++++++++++++++ macros/ViewVZERO.C | 20 ++++++++++++++++++++ 4 files changed, 52 insertions(+), 1 deletion(-) create mode 100755 macros/DrawVZERO.C create mode 100755 macros/ViewVZERO.C diff --git a/macros/DrawPictures.C b/macros/DrawPictures.C index 46ee82f579d..03d8b51c305 100644 --- a/macros/DrawPictures.C +++ b/macros/DrawPictures.C @@ -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(); } diff --git a/macros/DrawTrees.C b/macros/DrawTrees.C index 0329b4bec30..2ed4a8a406d 100644 --- a/macros/DrawTrees.C +++ b/macros/DrawTrees.C @@ -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 index 00000000000..e02706e0330 --- /dev/null +++ b/macros/DrawVZERO.C @@ -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 index 00000000000..24b758f588d --- /dev/null +++ b/macros/ViewVZERO.C @@ -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); + +} + + -- 2.39.3