1 ////////////////////////////////////////////////
3 ////////////////////////////////////////////////
11 //_____________________________________________________________________________
12 AliPIPEv0::AliPIPEv0()
16 //_____________________________________________________________________________
17 AliPIPEv0::AliPIPEv0(const char *name, const char *title)
23 //___________________________________________
24 void AliPIPEv0::CreateGeometry()
26 printf("Create PIPEv0 geometry\n ");
29 <img src="picts/pipe.gif">
36 <img src="picts/tree_pipe.gif">
40 const char *pipename = "$(ALICE_ROOT)/Euclid/bpipeb.euc";
41 const char *pumpname = "$(ALICE_ROOT)/Euclid/bpumpa.euc";
44 printf("Create PIPEv0 geometry ");
49 // The peam pipe up to the Front Absorber
50 filtmp=gSystem->ExpandPathName(pipename);
51 FILE *file = fopen(filtmp,"r");
55 printf(" Reading PIPE \n");
56 gAlice->ReadEuclid(pipename,this,topvol);
58 printf(" THE GEOM FILE %s DOES NOT EXIST !\n",pipename);
63 filtmp=gSystem->ExpandPathName(pumpname);
64 file = fopen(filtmp,"r");
68 printf(" Reading PUMP \n");
69 gAlice->ReadEuclid(pumpname,this,topvol);
71 printf(" THE GEOM FILE %s DOES NOT EXIST !\n",pumpname);
75 // --- Place the PIPE ghost volume (QBPM) in its mother volume (ALIC)
76 // and make it invisible
78 AliMatrix(idrotm[2001],90.,0.,90.,90.,180.,0.);
80 gMC->Gspos("QBPM",1,"ALIC",0,0,0,idrotm[2001],"ONLY");
82 // PLACE ION PUMP (QIPM) AT Z=-385.
84 gMC->Gspos("QIPM",1,"ALIC",0,0,-385,idrotm[2001],"ONLY");
86 gMC->Gsatt("QIPM", "SEEN", 0);
87 gMC->Gsatt("QBPM", "SEEN", 0);
88 gMC->Gsatt("QB20", "SEEN", 0);
92 //___________________________________________
93 void AliPIPEv0::DrawModule()
97 //___________________________________________
98 void AliPIPEv0::CreateMaterials()
100 printf("Create PIPEv0 materials\n");
101 const char *name = "$(ALICE_ROOT)/Euclid/pipe.tme";
103 filtmp=gSystem->ExpandPathName(name);
104 FILE *file = fopen(filtmp,"r");
108 gAlice->ReadEuclidMedia(name,this);
110 printf(" THE MEDIA FILE %s DOES NOT EXIST !\n",name);