Getting rid of obsolete objects.
[u/mrichter/AliRoot.git] / FMD / ViewFMD.C
index c5a9e2c..1037393 100644 (file)
@@ -1,94 +1,80 @@
-//void ViewFMD()
+/** @file    ViewFMD.C
+    @author  Christian Holm Christensen <cholm@nbi.dk>
+    @date    Mon Mar 27 14:20:48 2006
+    @brief   Script to setup FMD volumes for viewing - obsolete
+*/
+/** Setup FMD volumes for viewing - obsolete */
+void ViewFMD()
 {
-   gMC->Gsatt("IWR3","seen",1);
-   gMC->Gsatt("FWR3","seen",1);
-   gMC->Gsatt("RWR3","seen",1);
-   gMC->Gsatt("MPR3","seen",1);
-   gMC->Gsatt("SPR3","seen",1);
-   gMC->Gsatt("SMR3","seen",1);
-   gMC->Gsatt("CPR3","seen",1);
-   gMC->Gsatt("C1R3","seen",1);
-   gMC->Gsatt("C2R3","seen",1);
-   gMC->Gsatt("GKR3","seen",1);
-   gMC->Gsatt("SCR3","seen",1);
-   gMC->Gsatt("SER3","seen",1);
-   gMC->Gsatt("CER3","seen",1);
-   gMC->Gsatt("IWL3","seen",1);
-   gMC->Gsatt("FWL3","seen",1);
-   gMC->Gsatt("RWL3","seen",1);
-   gMC->Gsatt("MPL3","seen",1);
-   gMC->Gsatt("SPL3","seen",1);
-   gMC->Gsatt("SML3","seen",1);
-   gMC->Gsatt("CPL3","seen",1);
-   gMC->Gsatt("C1L3","seen",1);
-   gMC->Gsatt("C2L3","seen",1);
-   gMC->Gsatt("GKL3","seen",1);
-   gMC->Gsatt("SCL3","seen",1);
-   gMC->Gsatt("SEL3","seen",1);
-   gMC->Gsatt("CEL3","seen",1);
-   gMC->Gsatt("IWR2","seen",1);
-   gMC->Gsatt("FWR2","seen",1);
-   gMC->Gsatt("RWR2","seen",1);
-   gMC->Gsatt("MPR2","seen",1);
-   gMC->Gsatt("SPR2","seen",1);
-   gMC->Gsatt("SMR2","seen",1);
-   gMC->Gsatt("CPR2","seen",1);
-   gMC->Gsatt("C1R2","seen",1);
-   gMC->Gsatt("C2R2","seen",1);
-   gMC->Gsatt("GKR2","seen",1);
-   gMC->Gsatt("SCR2","seen",1);
-   gMC->Gsatt("SER2","seen",1);
-   gMC->Gsatt("CER2","seen",1);
-   gMC->Gsatt("IWL2","seen",1);
-   gMC->Gsatt("FWL2","seen",1);
-   gMC->Gsatt("RWL2","seen",1);
-   gMC->Gsatt("MPL2","seen",1);
-   gMC->Gsatt("SPL2","seen",1);
-   gMC->Gsatt("SML2","seen",1);
-   gMC->Gsatt("CPL2","seen",1);
-   gMC->Gsatt("C1L2","seen",1);
-   gMC->Gsatt("C2L2","seen",1);
-   gMC->Gsatt("GKL2","seen",1);
-   gMC->Gsatt("SCL2","seen",1);
-   gMC->Gsatt("SEL2","seen",1);
-   gMC->Gsatt("CEL2","seen",1);
-   gMC->Gsatt("IWR1","seen",1);
-   gMC->Gsatt("FWR1","seen",1);
-   gMC->Gsatt("RWR1","seen",1);
-   gMC->Gsatt("MPR1","seen",1);
-   gMC->Gsatt("SPR1","seen",1);
-   gMC->Gsatt("SMR1","seen",1);
-   gMC->Gsatt("CPR1","seen",1);
-   gMC->Gsatt("C1R1","seen",1);
-   gMC->Gsatt("C2R1","seen",1);
-   gMC->Gsatt("GKR1","seen",1);
-   gMC->Gsatt("SCR1","seen",1);
-   gMC->Gsatt("SER1","seen",1);
-   gMC->Gsatt("CER1","seen",1);
-   gMC->Gsatt("IWL1","seen",1);
-   gMC->Gsatt("FWL1","seen",1);
-   gMC->Gsatt("RWL1","seen",1);
-   gMC->Gsatt("MPL1","seen",1);
-   gMC->Gsatt("SPL1","seen",1);
-   gMC->Gsatt("SML1","seen",1);
-   gMC->Gsatt("CPL1","seen",1);
-   gMC->Gsatt("C1L1","seen",1);
-   gMC->Gsatt("C2L1","seen",1);
-   gMC->Gsatt("GKL1","seen",1);
-   gMC->Gsatt("SCL1","seen",1);
-   gMC->Gsatt("SEL1","seen",1);
-   gMC->Gsatt("CEL1","seen",1);
-   gMC->Gsatt("IWL4","seen",1);
-   gMC->Gsatt("FWL4","seen",1);
-   gMC->Gsatt("RWL4","seen",1);
-   gMC->Gsatt("MPL4","seen",1);
-   gMC->Gsatt("SPL4","seen",1);
-   gMC->Gsatt("SML4","seen",1);
-   gMC->Gsatt("CPL4","seen",1);
-   gMC->Gsatt("C1L4","seen",1);
-   gMC->Gsatt("C2L4","seen",1);
-   gMC->Gsatt("GKL4","seen",1);
-   gMC->Gsatt("SCL4","seen",1);
-   gMC->Gsatt("SEL4","seen",1);
-   gMC->Gsatt("CEL4","seen",1);
+  gMC->Gsatt("FMD1","seen",0);
+  gMC->Gsatt("FMD2","seen",0);
+  gMC->Gsatt("FMD3","seen",0);
+
+  TString name;
+  // Rings
+  for (Int_t i = 0; i < 2; i++) {
+    char c;
+    switch (i) {
+    case 0: c = 'I'; break;
+    case 1: c = 'O'; break;
+    }
+     
+    name = Form("FMD%c", c);
+    gMC->Gsatt(name.Data(),"seen",0); // Ring volume        
+
+    name = Form("F%cFV", c);
+    gMC->Gsatt(name.Data(),"seen",0); // Virtual volume front
+
+    name = Form("F%cBV", c);
+    gMC->Gsatt(name.Data(),"seen",0); // Virtual volume back
+
+    name = Form("F%cAC", c);
+    gMC->Gsatt(name.Data(),"seen",-2); // Active volume
+
+    name =  Form("F%cSL", c);
+    gMC->Gsatt(name.Data() ,"seen",1);
+
+    name =  Form("F%cLL", c);
+    gMC->Gsatt(name.Data() ,"seen",1);
+
+    // name = Form("F%cAP", c);
+    // gMC->Gsatt(name.Data(),"seen",-1); // Phi segmentation of active
+
+    // name = Form("F%cAR", c);
+    // gMC->Gsatt(name.Data(),"seen",-1); // R segmentation of active
+
+    name = Form("F%cPT", c);
+    gMC->Gsatt(name.Data(),"seen",1); // Top of print-board
+
+    name = Form("F%cPB", c);
+    gMC->Gsatt(name.Data(),"seen",1); // Bottom of print board
+  }
+   
+  for (Int_t i = 1; i <= 3; i++) {
+    for (Int_t j = 0;  j < 2; j++) {
+      if (i == 1 && j == 1) break;
+      char c;
+      switch (j) {
+      case 0: c = 'I'; break;
+      case 1: c = 'O'; break;
+      }
+       
+      name = Form("F%d%cI", i, c);
+      gMC->Gsatt(name.Data(),"seen",-2); // Honeycomp top 
+
+      name = Form("F%d%cJ", i, c);
+      gMC->Gsatt(name.Data(),"seen",-2); // Honeycomp bottom
+
+      name = Form("F%d%cK", i, c);
+      gMC->Gsatt(name.Data(),"seen",0); // Honeycomp inner top 
+
+      name = Form("F%d%cL", i, c);
+      gMC->Gsatt(name.Data(),"seen",0); // Honeycomp inner bottom 
+    }
+  }
+
+  gMC->Gsatt("F3SN", "seen", 1); // Nose of FMD3 Cone
+  gMC->Gsatt("F3SB", "seen", 1); // Back of FMD3 Cone
+  gMC->Gsatt("F3SL", "seen", 1); // Beams of FMD3 Cone
+  gMC->Gsatt("F3SF", "seen", 1); // Flanges on FMD3 Cone
 }