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 // Reads the geometry from an Euclid file
22 //-------------------------------------------------------------------------
24 #include "AliFRAMEv0.h"
30 //_____________________________________________________________________________
31 AliFRAMEv0::AliFRAMEv0()
36 //_____________________________________________________________________________
37 AliFRAMEv0::AliFRAMEv0(const char *name, const char *title)
38 : AliFRAME(name,title)
41 printf("Create FRAMEv0 object\n");
42 fEuclidGeometry="$(ALICE_ROOT)/Euclid/frame1099h.euc";
43 fEuclidMaterial="$(ALICE_ROOT)/Euclid/frame.tme";
47 //___________________________________________
48 void AliFRAMEv0::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 printf(" Reading FRAME geometry\n");
74 ReadEuclid(fEuclidGeometry.Data(),topvol);
76 Warning("CreateGeometry","The Euclid file %s does not exist!\n",
77 fEuclidGeometry.Data());
81 // --- Place the FRAME ghost volume (B010) in its mother volume (ALIC)
82 // and make it invisible
84 // AliMatrix(idrotm[2001],90.,0.,90.,90.,180.,0.);
86 gMC->Gspos(topvol,1,"ALIC",0,0,0,0,"ONLY");
88 gMC->Gsatt(topvol, "SEEN", 0);
92 //___________________________________________
93 void AliFRAMEv0::CreateMaterials()
95 // Create Geant materials
98 printf("Create FRAMEv0 materials\n");
99 filetmp = gSystem->ExpandPathName(fEuclidMaterial.Data());
100 FILE *file = fopen(filetmp,"r");
104 ReadEuclidMedia(fEuclidMaterial.Data());
106 Warning("CreateMaterials","The material file %s does not exist!\n",
107 fEuclidMaterial.Data());
112 //_____________________________________________________________________________
113 void AliFRAMEv0::Init()
116 // Initialise the module after the geometry has been defined
119 printf("**************************************"
121 "**************************************\n");
122 printf("\n Version 0 of FRAME initialised, "
123 "with openings for PHOS and RICH\n\n");
124 printf("**************************************"
126 "**************************************\n");