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.12 2000/02/23 16:25:24 fca
19 AliVMC and AliGeant3 classes introduced
20 ReadEuclid moved from AliRun to AliModule
22 Revision 1.11 1999/11/01 20:42:42 fca
23 FRAME version 1 is now the symmetric one.
25 Revision 1.10 1999/10/06 20:56:55 fca
26 Introducing new frame 1099
28 Revision 1.9 1999/09/29 09:24:30 fca
29 Introduction of the Copyright and cvs Log
33 ////////////////////////////////////////////////
34 // space frame class /
35 ////////////////////////////////////////////////
37 #include "AliFRAMEv0.h"
43 //_____________________________________________________________________________
44 AliFRAMEv0::AliFRAMEv0()
49 //_____________________________________________________________________________
50 AliFRAMEv0::AliFRAMEv0(const char *name, const char *title)
51 : AliFRAME(name,title)
54 printf("Create FRAMEv0 object\n");
55 fEuclidGeometry="$(ALICE_ROOT)/Euclid/frame1099h.euc";
56 fEuclidMaterial="$(ALICE_ROOT)/Euclid/frame.tme";
60 //___________________________________________
61 void AliFRAMEv0::CreateGeometry()
65 <img src="picts/frame.gif">
72 <img src="picts/tree_frame.gif">
81 filetmp = gSystem->ExpandPathName(fEuclidGeometry.Data());
82 FILE *file = fopen(filetmp,"r");
86 printf(" Reading FRAME geometry\n");
87 ReadEuclid(fEuclidGeometry.Data(),topvol);
89 Warning("CreateGeometry","The Euclid file %s does not exist!\n",
90 fEuclidGeometry.Data());
94 // --- Place the FRAME ghost volume (B010) in its mother volume (ALIC)
95 // and make it invisible
97 // AliMatrix(idrotm[2001],90.,0.,90.,90.,180.,0.);
99 gMC->Gspos(topvol,1,"ALIC",0,0,0,0,"ONLY");
101 gMC->Gsatt(topvol, "SEEN", 0);
105 //___________________________________________
106 void AliFRAMEv0::CreateMaterials()
109 printf("Create FRAMEv0 materials\n");
110 filetmp = gSystem->ExpandPathName(fEuclidMaterial.Data());
111 FILE *file = fopen(filetmp,"r");
115 ReadEuclidMedia(fEuclidMaterial.Data());
117 Warning("CreateMaterials","The material file %s does not exist!\n",
118 fEuclidMaterial.Data());
123 //_____________________________________________________________________________
124 void AliFRAMEv0::Init()
127 // Initialise the module after the geometry has been defined
130 printf("**************************************"
132 "**************************************\n");
133 printf("\n Version 0 of FRAME initialised, "
134 "with openings for PHOS and RICH\n\n");
135 printf("**************************************"
137 "**************************************\n");