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.7 2000/02/23 16:25:24 fca
19 AliVMC and AliGeant3 classes introduced
20 ReadEuclid moved from AliRun to AliModule
22 Revision 1.6 1999/09/29 09:24:30 fca
23 Introduction of the Copyright and cvs Log
27 ////////////////////////////////////////////////
29 ////////////////////////////////////////////////
31 #include "AliPIPEv0.h"
37 //_____________________________________________________________________________
38 AliPIPEv0::AliPIPEv0()
43 //_____________________________________________________________________________
44 AliPIPEv0::AliPIPEv0(const char *name, const char *title)
51 //___________________________________________
52 void AliPIPEv0::CreateGeometry()
54 printf("Create PIPEv0 geometry\n ");
57 <img src="picts/pipe.gif">
64 <img src="picts/tree_pipe.gif">
68 const char *kPipeName = "$(ALICE_ROOT)/Euclid/bpipeb.euc";
69 const char *kPumpName = "$(ALICE_ROOT)/Euclid/bpumpa.euc";
72 printf("Create PIPEv0 geometry ");
77 // The peam pipe up to the Front Absorber
78 filtmp=gSystem->ExpandPathName(kPipeName);
79 FILE *file = fopen(filtmp,"r");
83 printf(" Reading PIPE \n");
84 ReadEuclid(kPipeName,topvol);
86 printf(" THE GEOM FILE %s DOES NOT EXIST !\n",kPipeName);
91 filtmp=gSystem->ExpandPathName(kPumpName);
92 file = fopen(filtmp,"r");
96 printf(" Reading PUMP \n");
97 ReadEuclid(kPumpName,topvol);
99 printf(" THE GEOM FILE %s DOES NOT EXIST !\n",kPumpName);
103 // --- Place the PIPE ghost volume (QBPM) in its mother volume (ALIC)
104 // and make it invisible
106 AliMatrix(idrotm[2001],90.,0.,90.,90.,180.,0.);
108 gMC->Gspos("QBPM",1,"ALIC",0,0,0,idrotm[2001],"ONLY");
110 // PLACE ION PUMP (QIPM) AT Z=-385.
112 gMC->Gspos("QIPM",1,"ALIC",0,0,-385,idrotm[2001],"ONLY");
114 gMC->Gsatt("QIPM", "SEEN", 0);
115 gMC->Gsatt("QBPM", "SEEN", 0);
116 gMC->Gsatt("QB20", "SEEN", 0);
120 //___________________________________________
121 void AliPIPEv0::DrawModule()
123 // Set drawing options
127 //___________________________________________
128 void AliPIPEv0::CreateMaterials()
130 // Create materials and media from Euclid file
131 printf("Create PIPEv0 materials\n");
132 const char *kName = "$(ALICE_ROOT)/Euclid/pipe.tme";
134 filtmp=gSystem->ExpandPathName(kName);
135 FILE *file = fopen(filtmp,"r");
139 ReadEuclidMedia(kName);
141 printf(" THE MEDIA FILE %s DOES NOT EXIST !\n",kName);