1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 Revision 1.10 2000/10/02 21:28:15 fca
19 Removal of useless dependecies via forward declarations
21 Revision 1.9 2000/06/11 12:35:02 morsch
22 Coding rule violations corrected
24 Revision 1.8 2000/02/23 16:25:24 fca
25 AliVMC and AliGeant3 classes introduced
26 ReadEuclid moved from AliRun to AliModule
28 Revision 1.7 1999/11/01 20:42:42 fca
29 FRAME version 1 is now the symmetric one.
31 Revision 1.6 1999/09/29 09:24:30 fca
32 Introduction of the Copyright and cvs Log
36 ////////////////////////////////////////////////
37 // space frame class /
38 ////////////////////////////////////////////////
40 #include "AliFRAMEv1.h"
47 //_____________________________________________________________________________
48 AliFRAMEv1::AliFRAMEv1()
53 //_____________________________________________________________________________
54 AliFRAMEv1::AliFRAMEv1(const char *name, const char *title)
55 : AliFRAME(name,title)
58 if(fDebug>1) printf("%s: Create FRAMEv1 object\n",ClassName());
59 fEuclidGeometry="$(ALICE_ROOT)/Euclid/frame1099i.euc";
60 fEuclidMaterial="$(ALICE_ROOT)/Euclid/frame.tme";
64 //___________________________________________
65 void AliFRAMEv1::CreateGeometry()
69 <img src="picts/frame.gif">
76 <img src="picts/tree_frame.gif">
85 filetmp = gSystem->ExpandPathName(fEuclidGeometry.Data());
86 FILE *file = fopen(filetmp,"r");
90 if(fDebug) printf("%s: Reading FRAME geometry\n",ClassName());
91 ReadEuclid(fEuclidGeometry.Data(),topvol);
93 Fatal("CreateGeometry","The Euclid file %s does not exist!\n",
94 fEuclidGeometry.Data());
96 // --- Place the FRAME ghost volume (B010) in its mother volume (ALIC)
97 // and make it invisible
99 // AliMatrix(idrotm[2001],90.,0.,90.,90.,180.,0.);
101 gMC->Gspos(topvol,1,"ALIC",0,0,0,0,"ONLY");
103 gMC->Gsatt(topvol, "SEEN", 0);
107 //___________________________________________
108 void AliFRAMEv1::CreateMaterials()
110 // Create materials and media (from Euclid file)
112 if(fDebug) printf("%s: Create FRAMEv1 materials\n",ClassName());
113 filetmp = gSystem->ExpandPathName(fEuclidMaterial.Data());
114 FILE *file = fopen(filetmp,"r");
118 ReadEuclidMedia(fEuclidMaterial.Data());
120 Warning("CreateMaterials","The material file %s does not exist!\n",
121 fEuclidMaterial.Data());
126 //_____________________________________________________________________________
127 void AliFRAMEv1::Init()
130 // Initialise the module after the geometry has been defined
134 printf("%s: **************************************"
136 "**************************************\n",ClassName());
137 printf("\n%s: Version 1 of FRAME initialised, symmetric FRAME\n\n",ClassName());
138 printf("%s: **************************************"
140 "**************************************\n",ClassName());