Migrated to a geometry implemented via AliFMDGeometry (derives from
[u/mrichter/AliRoot.git] / FMD / ViewFMD.C
1 void ViewFMD()
2 {
3   gMC->Gsatt("FMD1","seen",0);
4   gMC->Gsatt("FMD2","seen",0);
5   gMC->Gsatt("FMD3","seen",0);
6
7   TString name;
8   // Rings
9   for (Int_t i = 0; i < 2; i++) {
10     char c;
11     switch (i) {
12     case 0: c = 'I'; break;
13     case 1: c = 'O'; break;
14     }
15      
16     name = Form("FMD%c", c);
17     gMC->Gsatt(name.Data(),"seen",0); // Ring volume         
18
19     name = Form("F%cFV", c);
20     gMC->Gsatt(name.Data(),"seen",0); // Virtual volume front
21
22     name = Form("F%cBV", c);
23     gMC->Gsatt(name.Data(),"seen",0); // Virtual volume back
24
25     name = Form("F%cAC", c);
26     gMC->Gsatt(name.Data(),"seen",-2); // Active volume
27
28     name =  Form("F%cSL", c);
29     gMC->Gsatt(name.Data() ,"seen",1);
30
31     name =  Form("F%cLL", c);
32     gMC->Gsatt(name.Data() ,"seen",1);
33
34     // name = Form("F%cAP", c);
35     // gMC->Gsatt(name.Data(),"seen",-1); // Phi segmentation of active
36
37     // name = Form("F%cAR", c);
38     // gMC->Gsatt(name.Data(),"seen",-1); // R segmentation of active
39
40     name = Form("F%cPT", c);
41     gMC->Gsatt(name.Data(),"seen",1); // Top of print-board
42
43     name = Form("F%cPB", c);
44     gMC->Gsatt(name.Data(),"seen",1); // Bottom of print board
45   }
46    
47   for (Int_t i = 1; i <= 3; i++) {
48     for (Int_t j = 0;  j < 2; j++) {
49       if (i == 1 && j == 1) break;
50       char c;
51       switch (j) {
52       case 0: c = 'I'; break;
53       case 1: c = 'O'; break;
54       }
55        
56       name = Form("F%d%cI", i, c);
57       gMC->Gsatt(name.Data(),"seen",-2); // Honeycomp top 
58
59       name = Form("F%d%cJ", i, c);
60       gMC->Gsatt(name.Data(),"seen",-2); // Honeycomp bottom
61
62       name = Form("F%d%cK", i, c);
63       gMC->Gsatt(name.Data(),"seen",0); // Honeycomp inner top 
64
65       name = Form("F%d%cL", i, c);
66       gMC->Gsatt(name.Data(),"seen",0); // Honeycomp inner bottom 
67     }
68   }
69
70   gMC->Gsatt("F3SN", "seen", 1); // Nose of FMD3 Cone
71   gMC->Gsatt("F3SB", "seen", 1); // Back of FMD3 Cone
72   gMC->Gsatt("F3SL", "seen", 1); // Beams of FMD3 Cone
73   gMC->Gsatt("F3SF", "seen", 1); // Flanges on FMD3 Cone
74 }