]>
Commit | Line | Data |
---|---|---|
c2fc1258 | 1 | /** @file ViewFMD.C |
2 | @author Christian Holm Christensen <cholm@nbi.dk> | |
3 | @date Mon Mar 27 14:20:48 2006 | |
4 | @brief Script to setup FMD volumes for viewing - obsolete | |
5 | */ | |
6 | /** Setup FMD volumes for viewing - obsolete */ | |
4e47b882 | 7 | void ViewFMD() |
fe4da5cc | 8 | { |
7684b53c | 9 | gMC->Gsatt("FMD1","seen",0); |
10 | gMC->Gsatt("FMD2","seen",0); | |
11 | gMC->Gsatt("FMD3","seen",0); | |
7684b53c | 12 | |
13 | TString name; | |
14 | // Rings | |
15 | for (Int_t i = 0; i < 2; i++) { | |
16 | char c; | |
17 | switch (i) { | |
18 | case 0: c = 'I'; break; | |
19 | case 1: c = 'O'; break; | |
20 | } | |
21 | ||
1a1fdef7 | 22 | name = Form("FMD%c", c); |
7684b53c | 23 | gMC->Gsatt(name.Data(),"seen",0); // Ring volume |
24 | ||
1a1fdef7 | 25 | name = Form("F%cFV", c); |
7684b53c | 26 | gMC->Gsatt(name.Data(),"seen",0); // Virtual volume front |
27 | ||
1a1fdef7 | 28 | name = Form("F%cBV", c); |
7684b53c | 29 | gMC->Gsatt(name.Data(),"seen",0); // Virtual volume back |
30 | ||
31 | name = Form("F%cAC", c); | |
32 | gMC->Gsatt(name.Data(),"seen",-2); // Active volume | |
33 | ||
1a1fdef7 | 34 | name = Form("F%cSL", c); |
35 | gMC->Gsatt(name.Data() ,"seen",1); | |
36 | ||
37 | name = Form("F%cLL", c); | |
38 | gMC->Gsatt(name.Data() ,"seen",1); | |
39 | ||
7684b53c | 40 | // name = Form("F%cAP", c); |
41 | // gMC->Gsatt(name.Data(),"seen",-1); // Phi segmentation of active | |
42 | ||
43 | // name = Form("F%cAR", c); | |
44 | // gMC->Gsatt(name.Data(),"seen",-1); // R segmentation of active | |
45 | ||
46 | name = Form("F%cPT", c); | |
47 | gMC->Gsatt(name.Data(),"seen",1); // Top of print-board | |
48 | ||
49 | name = Form("F%cPB", c); | |
50 | gMC->Gsatt(name.Data(),"seen",1); // Bottom of print board | |
51 | } | |
52 | ||
53 | for (Int_t i = 1; i <= 3; i++) { | |
54 | for (Int_t j = 0; j < 2; j++) { | |
55 | if (i == 1 && j == 1) break; | |
56 | char c; | |
57 | switch (j) { | |
58 | case 0: c = 'I'; break; | |
59 | case 1: c = 'O'; break; | |
60 | } | |
61 | ||
1a1fdef7 | 62 | name = Form("F%d%cI", i, c); |
7684b53c | 63 | gMC->Gsatt(name.Data(),"seen",-2); // Honeycomp top |
64 | ||
1a1fdef7 | 65 | name = Form("F%d%cJ", i, c); |
7684b53c | 66 | gMC->Gsatt(name.Data(),"seen",-2); // Honeycomp bottom |
67 | ||
1a1fdef7 | 68 | name = Form("F%d%cK", i, c); |
7684b53c | 69 | gMC->Gsatt(name.Data(),"seen",0); // Honeycomp inner top |
70 | ||
1a1fdef7 | 71 | name = Form("F%d%cL", i, c); |
7684b53c | 72 | gMC->Gsatt(name.Data(),"seen",0); // Honeycomp inner bottom |
73 | } | |
74 | } | |
75 | ||
76 | gMC->Gsatt("F3SN", "seen", 1); // Nose of FMD3 Cone | |
77 | gMC->Gsatt("F3SB", "seen", 1); // Back of FMD3 Cone | |
78 | gMC->Gsatt("F3SL", "seen", 1); // Beams of FMD3 Cone | |
79 | gMC->Gsatt("F3SF", "seen", 1); // Flanges on FMD3 Cone | |
fe4da5cc | 80 | } |