]>
Commit | Line | Data |
---|---|---|
4c039060 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | /* | |
17 | $Log$ | |
b13db077 | 18 | Revision 1.11 1999/11/01 20:42:42 fca |
19 | FRAME version 1 is now the symmetric one. | |
20 | ||
ba25f477 | 21 | Revision 1.10 1999/10/06 20:56:55 fca |
22 | Introducing new frame 1099 | |
23 | ||
90a46d5c | 24 | Revision 1.9 1999/09/29 09:24:30 fca |
25 | Introduction of the Copyright and cvs Log | |
26 | ||
4c039060 | 27 | */ |
28 | ||
fe4da5cc | 29 | //////////////////////////////////////////////// |
30 | // space frame class / | |
31 | //////////////////////////////////////////////// | |
32 | ||
fe4da5cc | 33 | #include "AliFRAMEv0.h" |
34 | #include "AliRun.h" | |
fe4da5cc | 35 | #include "TSystem.h" |
36 | ||
37 | ClassImp(AliFRAMEv0) | |
38 | ||
39 | //_____________________________________________________________________________ | |
b8032157 | 40 | AliFRAMEv0::AliFRAMEv0() |
fe4da5cc | 41 | { |
42 | } | |
43 | ||
44 | //_____________________________________________________________________________ | |
45 | AliFRAMEv0::AliFRAMEv0(const char *name, const char *title) | |
46 | : AliFRAME(name,title) | |
47 | { | |
dda5e866 | 48 | printf("Create FRAMEv0 object\n"); |
90a46d5c | 49 | fEuclidGeometry="$(ALICE_ROOT)/Euclid/frame1099h.euc"; |
dda5e866 | 50 | fEuclidMaterial="$(ALICE_ROOT)/Euclid/frame.tme"; |
fe4da5cc | 51 | } |
52 | ||
53 | ||
54 | //___________________________________________ | |
55 | void AliFRAMEv0::CreateGeometry() | |
56 | { | |
fe4da5cc | 57 | //Begin_Html |
58 | /* | |
1439f98e | 59 | <img src="picts/frame.gif"> |
fe4da5cc | 60 | */ |
61 | //End_Html | |
62 | ||
63 | ||
64 | //Begin_Html | |
65 | /* | |
1439f98e | 66 | <img src="picts/tree_frame.gif"> |
fe4da5cc | 67 | */ |
68 | //End_Html | |
69 | ||
fe4da5cc | 70 | char *filetmp; |
fe4da5cc | 71 | char topvol[5]; |
fe4da5cc | 72 | |
73 | // | |
74 | // The Space frame | |
dda5e866 | 75 | filetmp = gSystem->ExpandPathName(fEuclidGeometry.Data()); |
fe4da5cc | 76 | FILE *file = fopen(filetmp,"r"); |
77 | delete [] filetmp; | |
78 | if(file) { | |
79 | fclose(file); | |
dda5e866 | 80 | printf(" Reading FRAME geometry\n"); |
b13db077 | 81 | ReadEuclid(fEuclidGeometry.Data(),topvol); |
fe4da5cc | 82 | } else { |
dda5e866 | 83 | Warning("CreateGeometry","The Euclid file %s does not exist!\n", |
84 | fEuclidGeometry.Data()); | |
fe4da5cc | 85 | exit(1); |
86 | } | |
87 | // | |
88 | // --- Place the FRAME ghost volume (B010) in its mother volume (ALIC) | |
89 | // and make it invisible | |
90 | // | |
91 | // AliMatrix(idrotm[2001],90.,0.,90.,90.,180.,0.); | |
fe4da5cc | 92 | |
dda5e866 | 93 | gMC->Gspos(topvol,1,"ALIC",0,0,0,0,"ONLY"); |
94 | ||
95 | gMC->Gsatt(topvol, "SEEN", 0); | |
fe4da5cc | 96 | } |
97 | ||
98 | ||
fe4da5cc | 99 | //___________________________________________ |
100 | void AliFRAMEv0::CreateMaterials() | |
101 | { | |
102 | char *filetmp; | |
dda5e866 | 103 | printf("Create FRAMEv0 materials\n"); |
104 | filetmp = gSystem->ExpandPathName(fEuclidMaterial.Data()); | |
fe4da5cc | 105 | FILE *file = fopen(filetmp,"r"); |
106 | delete [] filetmp; | |
107 | if(file) { | |
108 | fclose(file); | |
b13db077 | 109 | ReadEuclidMedia(fEuclidMaterial.Data()); |
fe4da5cc | 110 | } else { |
dda5e866 | 111 | Warning("CreateMaterials","The material file %s does not exist!\n", |
112 | fEuclidMaterial.Data()); | |
fe4da5cc | 113 | exit(1); |
114 | } | |
115 | } | |
116 | ||
ba25f477 | 117 | //_____________________________________________________________________________ |
118 | void AliFRAMEv0::Init() | |
119 | { | |
120 | // | |
121 | // Initialise the module after the geometry has been defined | |
122 | // | |
123 | ||
124 | printf("**************************************" | |
125 | " FRAME " | |
126 | "**************************************\n"); | |
127 | printf("\n Version 0 of FRAME initialised, " | |
128 | "with openings for PHOS and RICH\n\n"); | |
129 | printf("**************************************" | |
130 | " FRAME " | |
131 | "**************************************\n"); | |
132 | ||
133 | } | |
fe4da5cc | 134 | |
135 | ||
136 | ||
137 | ||
138 | ||
139 | ||
140 | ||
141 | ||
142 | ||
143 | ||
144 | ||
145 | ||
146 |