Macros to draw nice pictures of the SPD part of the ITS.
authornilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 15 Sep 2002 14:26:41 +0000 (14:26 +0000)
committernilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 15 Sep 2002 14:26:41 +0000 (14:26 +0000)
ITS/DrawSPD.C [new file with mode: 0644]
ITS/ViewSPD.C [new file with mode: 0644]

diff --git a/ITS/DrawSPD.C b/ITS/DrawSPD.C
new file mode 100644 (file)
index 0000000..ebb26f7
--- /dev/null
@@ -0,0 +1,16 @@
+void DrawSPD()
+{
+   gMC->Gsatt("*", "seen", -1);
+   gMC->Gsatt("alic", "seen", 0);
+   gROOT->LoadMacro("ViewSPD.C");
+   gInterpreter->ProcessLine("ViewSPD()");
+   gMC->Gdopt("hide", "on");
+   gMC->Gdopt("shad", "on");
+   gMC->Gsatt("*", "fill", 7);
+   gMC->SetClipBox(".");
+   gMC->SetClipBox("*", 0, 100, -1000, 1000, -1000, 1000);
+   gMC->DefaultRange();
+   gMC->Gdraw("alic", 40, 30, 0, 10, 10, .5, .5);
+   gMC->Gdhead(1111, "Inner Tracking System");
+   gMC->Gdman(16, 6, "MAN");
+}
diff --git a/ITS/ViewSPD.C b/ITS/ViewSPD.C
new file mode 100644 (file)
index 0000000..4abf2c9
--- /dev/null
@@ -0,0 +1,55 @@
+void ViewSPD(){
+    gMC->Gsatt("ITSV","seen",0);
+      gMC->Gsatt("ITSD","seen",0);
+        gMC->Gsatt("IT12","seen",0);
+          gMC->Gsatt("I12B","seen",0);
+            gMC->Gsatt("I10B","seen",0);
+              gMC->Gsatt("I105","seen",1);
+              gMC->Gsatt("I108","seen",1);
+              gMC->Gsatt("I109","seen",1);
+              gMC->Gsatt("I107","seen",0);
+                gMC->Gsatt("I106","seen",1);
+                gMC->Gsatt("I101","seen",0);
+                  gMC->Gsatt("ITS1","seen",1);
+            gMC->Gsatt("I20B","seen",0);
+              gMC->Gsatt("I105","seen",1);
+              gMC->Gsatt("I109","seen",1);
+              gMC->Gsatt("I108","seen",1);
+              gMC->Gsatt("I107","seen",0);
+                gMC->Gsatt("I1D6","seen",1);
+                gMC->Gsatt("I1D1","seen",0);
+                  gMC->Gsatt("ITS2","seen",1);
+            gMC->Gsatt("I123","seen",1);
+            gMC->Gsatt("I121","seen",1);
+            gMC->Gsatt("I122","seen",1);
+            gMC->Gsatt("I120","seen",1);
+            gMC->Gsatt("I144","seen",1);
+            gMC->Gsatt("I143","seen",1);
+            gMC->Gsatt("I142","seen",1);
+            gMC->Gsatt("I141","seen",1);
+            gMC->Gsatt("I140","seen",1);
+            gMC->Gsatt("I139","seen",1);
+            gMC->Gsatt("I138","seen",1);
+            gMC->Gsatt("I137","seen",1);
+            gMC->Gsatt("I136","seen",1);
+            gMC->Gsatt("I135","seen",1);
+            gMC->Gsatt("I134","seen",1);
+            gMC->Gsatt("I133","seen",1);
+            gMC->Gsatt("I132","seen",1);
+            gMC->Gsatt("I131","seen",1);
+            gMC->Gsatt("I130","seen",1);
+            gMC->Gsatt("I129","seen",1);
+            gMC->Gsatt("I128","seen",1);
+            gMC->Gsatt("I126","seen",1);
+            gMC->Gsatt("I125","seen",1);
+            gMC->Gsatt("I124","seen",1);
+            gMC->Gsatt("I113","seen",0);
+              gMC->Gsatt("I112","seen",1);
+              gMC->Gsatt("I111","seen",1);
+              gMC->Gsatt("I118","seen",1);
+              gMC->Gsatt("I110","seen",1);
+              gMC->Gsatt("I114","seen",1);
+              gMC->Gsatt("I115","seen",1);
+              gMC->Gsatt("I116","seen",0);
+                gMC->Gsatt("I117","seen",1);
+}