]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/ViewFMD.C
New class AliESDEvent, backward compatibility with the old AliESD (Christian)
[u/mrichter/AliRoot.git] / FMD / ViewFMD.C
index cd7e3f2cfa0e0a747d1dc5e8b123aa096f577dd9..1037393c9d4fb2dd4b6f5871f729048982613edc 100644 (file)
@@ -1,18 +1,80 @@
+/** @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("FMD1","seen",0);
-   gMC->Gsatt("FMD2","seen",0);
-   gMC->Gsatt("FMD3","seen",0);
-   gMC->Gsatt("RNGI","seen",0);
-   gMC->Gsatt("RNGO","seen",0);
-   gMC->Gsatt("VFI","seen",0);
-   gMC->Gsatt("VFO","seen",0);
-   gMC->Gsatt("VBI","seen",0);
-   gMC->Gsatt("VBO","seen",0);
-   gMC->Gsatt("ACTI","seen",1);
-   gMC->Gsatt("ACTO","seen",1);
-   gMC->Gsatt("PBTI","seen",1);
-   gMC->Gsatt("PBTO","seen",1);
-   gMC->Gsatt("PBBI","seen",1);
-   gMC->Gsatt("PBBO","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
 }