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.6 1999/09/29 09:24:30 fca
19 Introduction of the Copyright and cvs Log
23 ////////////////////////////////////////////////
25 ////////////////////////////////////////////////
27 #include "AliPIPEv0.h"
33 //_____________________________________________________________________________
34 AliPIPEv0::AliPIPEv0()
38 //_____________________________________________________________________________
39 AliPIPEv0::AliPIPEv0(const char *name, const char *title)
45 //___________________________________________
46 void AliPIPEv0::CreateGeometry()
48 printf("Create PIPEv0 geometry\n ");
51 <img src="picts/pipe.gif">
58 <img src="picts/tree_pipe.gif">
62 const char *pipename = "$(ALICE_ROOT)/Euclid/bpipeb.euc";
63 const char *pumpname = "$(ALICE_ROOT)/Euclid/bpumpa.euc";
66 printf("Create PIPEv0 geometry ");
71 // The peam pipe up to the Front Absorber
72 filtmp=gSystem->ExpandPathName(pipename);
73 FILE *file = fopen(filtmp,"r");
77 printf(" Reading PIPE \n");
78 ReadEuclid(pipename,topvol);
80 printf(" THE GEOM FILE %s DOES NOT EXIST !\n",pipename);
85 filtmp=gSystem->ExpandPathName(pumpname);
86 file = fopen(filtmp,"r");
90 printf(" Reading PUMP \n");
91 ReadEuclid(pumpname,topvol);
93 printf(" THE GEOM FILE %s DOES NOT EXIST !\n",pumpname);
97 // --- Place the PIPE ghost volume (QBPM) in its mother volume (ALIC)
98 // and make it invisible
100 AliMatrix(idrotm[2001],90.,0.,90.,90.,180.,0.);
102 gMC->Gspos("QBPM",1,"ALIC",0,0,0,idrotm[2001],"ONLY");
104 // PLACE ION PUMP (QIPM) AT Z=-385.
106 gMC->Gspos("QIPM",1,"ALIC",0,0,-385,idrotm[2001],"ONLY");
108 gMC->Gsatt("QIPM", "SEEN", 0);
109 gMC->Gsatt("QBPM", "SEEN", 0);
110 gMC->Gsatt("QB20", "SEEN", 0);
114 //___________________________________________
115 void AliPIPEv0::DrawModule()
119 //___________________________________________
120 void AliPIPEv0::CreateMaterials()
122 printf("Create PIPEv0 materials\n");
123 const char *name = "$(ALICE_ROOT)/Euclid/pipe.tme";
125 filtmp=gSystem->ExpandPathName(name);
126 FILE *file = fopen(filtmp,"r");
130 ReadEuclidMedia(name);
132 printf(" THE MEDIA FILE %s DOES NOT EXIST !\n",name);