]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STRUCT/AliFRAMEv0.cxx
Volume placed outside mother volume (DDIP) corrected (Galina Chabratova)
[u/mrichter/AliRoot.git] / STRUCT / AliFRAMEv0.cxx
CommitLineData
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$
b43eb0dc 18Revision 1.12 2000/02/23 16:25:24 fca
19AliVMC and AliGeant3 classes introduced
20ReadEuclid moved from AliRun to AliModule
21
b13db077 22Revision 1.11 1999/11/01 20:42:42 fca
23FRAME version 1 is now the symmetric one.
24
ba25f477 25Revision 1.10 1999/10/06 20:56:55 fca
26Introducing new frame 1099
27
90a46d5c 28Revision 1.9 1999/09/29 09:24:30 fca
29Introduction of the Copyright and cvs Log
30
4c039060 31*/
32
fe4da5cc 33////////////////////////////////////////////////
34// space frame class /
35////////////////////////////////////////////////
36
fe4da5cc 37#include "AliFRAMEv0.h"
38#include "AliRun.h"
fe4da5cc 39#include "TSystem.h"
40
41ClassImp(AliFRAMEv0)
42
43//_____________________________________________________________________________
b8032157 44AliFRAMEv0::AliFRAMEv0()
fe4da5cc 45{
b43eb0dc 46// Constructor
fe4da5cc 47}
48
49//_____________________________________________________________________________
50AliFRAMEv0::AliFRAMEv0(const char *name, const char *title)
51 : AliFRAME(name,title)
52{
b43eb0dc 53// Constructor
dda5e866 54 printf("Create FRAMEv0 object\n");
90a46d5c 55 fEuclidGeometry="$(ALICE_ROOT)/Euclid/frame1099h.euc";
dda5e866 56 fEuclidMaterial="$(ALICE_ROOT)/Euclid/frame.tme";
fe4da5cc 57}
58
59
60//___________________________________________
61void AliFRAMEv0::CreateGeometry()
62{
fe4da5cc 63//Begin_Html
64/*
1439f98e 65<img src="picts/frame.gif">
fe4da5cc 66*/
67//End_Html
68
69
70//Begin_Html
71/*
1439f98e 72<img src="picts/tree_frame.gif">
fe4da5cc 73*/
74//End_Html
75
fe4da5cc 76 char *filetmp;
fe4da5cc 77 char topvol[5];
fe4da5cc 78
79//
80// The Space frame
dda5e866 81 filetmp = gSystem->ExpandPathName(fEuclidGeometry.Data());
fe4da5cc 82 FILE *file = fopen(filetmp,"r");
83 delete [] filetmp;
84 if(file) {
85 fclose(file);
dda5e866 86 printf(" Reading FRAME geometry\n");
b13db077 87 ReadEuclid(fEuclidGeometry.Data(),topvol);
fe4da5cc 88 } else {
dda5e866 89 Warning("CreateGeometry","The Euclid file %s does not exist!\n",
90 fEuclidGeometry.Data());
fe4da5cc 91 exit(1);
92 }
93//
94// --- Place the FRAME ghost volume (B010) in its mother volume (ALIC)
95// and make it invisible
96//
97// AliMatrix(idrotm[2001],90.,0.,90.,90.,180.,0.);
fe4da5cc 98
dda5e866 99 gMC->Gspos(topvol,1,"ALIC",0,0,0,0,"ONLY");
100
101 gMC->Gsatt(topvol, "SEEN", 0);
fe4da5cc 102}
103
104
fe4da5cc 105//___________________________________________
106void AliFRAMEv0::CreateMaterials()
107{
108 char *filetmp;
dda5e866 109 printf("Create FRAMEv0 materials\n");
110 filetmp = gSystem->ExpandPathName(fEuclidMaterial.Data());
fe4da5cc 111 FILE *file = fopen(filetmp,"r");
112 delete [] filetmp;
113 if(file) {
114 fclose(file);
b13db077 115 ReadEuclidMedia(fEuclidMaterial.Data());
fe4da5cc 116 } else {
dda5e866 117 Warning("CreateMaterials","The material file %s does not exist!\n",
118 fEuclidMaterial.Data());
fe4da5cc 119 exit(1);
120 }
121}
122
ba25f477 123//_____________________________________________________________________________
124void AliFRAMEv0::Init()
125{
126 //
127 // Initialise the module after the geometry has been defined
128 //
129
130 printf("**************************************"
131 " FRAME "
132 "**************************************\n");
133 printf("\n Version 0 of FRAME initialised, "
134 "with openings for PHOS and RICH\n\n");
135 printf("**************************************"
136 " FRAME "
137 "**************************************\n");
138
139}
fe4da5cc 140
141
142
143
144
145
146
147
148
149
150
151
152