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 ");
48 AliMC* pMC = AliMC::GetMC();
51 // The peam pipe up to the Front Absorber
52 filtmp=gSystem->ExpandPathName(pipename);
53 FILE *file = fopen(filtmp,"r");
57 printf(" Reading PIPE \n");
58 gAlice->ReadEuclid(pipename,20,topvol);
60 printf(" THE GEOM FILE %s DOES NOT EXIST !\n",pipename);
65 filtmp=gSystem->ExpandPathName(pumpname);
66 file = fopen(filtmp,"r");
70 printf(" Reading PUMP \n");
71 gAlice->ReadEuclid(pumpname,20,topvol);
73 printf(" THE GEOM FILE %s DOES NOT EXIST !\n",pumpname);
77 // --- Place the PIPE ghost volume (QBPM) in its mother volume (ALIC)
78 // and make it invisible
80 AliMatrix(idrotm[2001],90.,0.,90.,90.,180.,0.);
82 pMC->Gspos("QBPM",1,"ALIC",0,0,0,idrotm[2001],"ONLY");
84 // PLACE ION PUMP (QIPM) AT Z=-385.
86 pMC->Gspos("QIPM",1,"ALIC",0,0,-385,idrotm[2001],"ONLY");
88 pMC->Gsatt("QIPM", "SEEN", 0);
89 pMC->Gsatt("QBPM", "SEEN", 0);
90 pMC->Gsatt("QB20", "SEEN", 0);
94 //___________________________________________
95 void AliPIPEv0::DrawModule()
99 //___________________________________________
100 void AliPIPEv0::CreateMaterials()
102 printf("Create PIPEv0 materials\n");
103 const char *name = "$(ALICE_ROOT)/Euclid/pipe.tme";
105 filtmp=gSystem->ExpandPathName(name);
106 FILE *file = fopen(filtmp,"r");
110 gAlice->ReadEuclidMedia(name,20);
112 printf(" THE MEDIA FILE %s DOES NOT EXIST !\n",name);