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 //-------------------------------------------------------------------------
20 // symmetric space frame without holes
22 //-------------------------------------------------------------------------
24 #include "AliFRAMEv1.h"
30 //_____________________________________________________________________________
31 AliFRAMEv1::AliFRAMEv1()
36 //_____________________________________________________________________________
37 AliFRAMEv1::AliFRAMEv1(const char *name, const char *title)
38 : AliFRAME(name,title)
41 if(fDebug>1) printf("%s: Create FRAMEv1 object\n",ClassName());
42 fEuclidGeometry="$(ALICE_ROOT)/Euclid/frame1099i.euc";
43 fEuclidMaterial="$(ALICE_ROOT)/Euclid/frame.tme";
47 //___________________________________________
48 void AliFRAMEv1::CreateGeometry()
52 <img src="picts/frame.gif">
59 <img src="picts/tree_frame.gif">
68 filetmp = gSystem->ExpandPathName(fEuclidGeometry.Data());
69 FILE *file = fopen(filetmp,"r");
73 if(fDebug) printf("%s: Reading FRAME geometry\n",ClassName());
74 ReadEuclid(fEuclidGeometry.Data(),topvol);
76 Fatal("CreateGeometry","The Euclid file %s does not exist!\n",
77 fEuclidGeometry.Data());
79 // --- Place the FRAME ghost volume (B010) in its mother volume (ALIC)
80 // and make it invisible
82 // AliMatrix(idrotm[2001],90.,0.,90.,90.,180.,0.);
84 gMC->Gspos(topvol,1,"ALIC",0,0,0,0,"ONLY");
86 gMC->Gsatt(topvol, "SEEN", 0);
90 //___________________________________________
91 void AliFRAMEv1::CreateMaterials()
93 // Create materials and media (from Euclid file)
95 if(fDebug) printf("%s: Create FRAMEv1 materials\n",ClassName());
96 filetmp = gSystem->ExpandPathName(fEuclidMaterial.Data());
97 FILE *file = fopen(filetmp,"r");
101 ReadEuclidMedia(fEuclidMaterial.Data());
103 Warning("CreateMaterials","The material file %s does not exist!\n",
104 fEuclidMaterial.Data());
109 //_____________________________________________________________________________
110 void AliFRAMEv1::Init()
113 // Initialise the module after the geometry has been defined
117 printf("%s: **************************************"
119 "**************************************\n",ClassName());
120 printf("\n%s: Version 1 of FRAME initialised, symmetric FRAME\n\n",ClassName());
121 printf("%s: **************************************"
123 "**************************************\n",ClassName());