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 // START ( T-zero) detector version 0 //
24 <img src="gif/AliSTARTv0Class.gif">
29 //////////////////////////////////////////////////////////////////////
31 #include <Riostream.h>
34 #include <TGeometry.h>
35 #include <TLorentzVector.h>
39 #include <TVirtualMC.h>
44 #include "AliSTARThit.h"
45 #include "AliSTARTv0.h"
50 //--------------------------------------------------------------------
51 AliSTARTv0::AliSTARTv0(const char *name, const char *title):
55 // Standart constructor for START Detector version 0
58 // setBufferSize(128000);
60 //-------------------------------------------------------------------------
61 void AliSTARTv0::CreateGeometry()
64 // Create the geometry of START Detector version 0
65 // Full geometry with support structure according START prototype
69 <img src="gif/AliSTARTv0.gif">
75 Int_t *idtmed = fIdtmed->GetArray();
80 Float_t pstartR[18]={0., 360., 5.,
81 -76.5+0.00+69.7, 4.25, 10.,
82 -76.5+6.05+69.7, 4.5, 10.,
83 -76.5+8.05+69.7, 4.5, 10.,
84 -76.5+8.05+69.7, 5.1, 10.,
85 -62.9+0.00+69.7, 5.1, 10.};
87 Float_t pstart[3]={4.3, 12.,6.8};
88 Float_t pinstart[3]={0.,1.6,6.5};
89 Float_t ppmt[3]={0.,1.5,3.5};
91 Float_t preg[3]={0.,0.875,0.005}; //dobavil bogdanov
93 Float_t pdivider[3]={0.,1.2,1.75};
94 Float_t pdiv2[3]={0.,1.2,1.25};
95 Float_t pdiv1[3]={0.6,1.2,0.5};
96 // Float_t ptop[3]={0.,1.3,1.5};
97 Float_t ptop[3]={0.,1.0,1.5};
98 Float_t pbot[3]={0.6,1.2,0.1};
99 Float_t pglass[3]={1.2,1.3,2.};
100 Float_t pcer[3]={0.9,1.1,0.09};
101 Float_t psteel[3]={0.9,1.1,0.01};
102 Float_t ppins[3]={0.6,1.2,0.014};
103 Float_t phole[3]={0.6,1.2,0.015};
104 Float_t pknob[3]={0.5,0.6,0.4};
105 Float_t pknob_vac[3]={0.,0.5,0.4};
106 Float_t pknob_bot[3]={0.,0.6,0.05};
107 Float_t pribber[3] = {0.,1.2,2.413/2.};
108 Float_t presist[3] = {0.,1.2,0.087/2.};
109 Float_t psupport1[3] = {4.51,4.6,4.0};//C kozhuh vnutri
110 Float_t psupport2[3] = {9.4,9.5,4.0};// snaruzhi C
111 Float_t psupport3[3] = {4.51,9.5,0.05};//kryshki C
112 Float_t psupport5[3] = {1.44,1.5,6.5}; // stakanchik dlai feu C
113 Float_t psupport6[3] = {0,1.5,0.05}; //kryshechka stakanchika Al
114 Float_t psupport7[3] = {1.5,1.6,0.6}; //kolechko snaruzhu stakanchika Al
115 // Mother Volume katushka dlia krepezha vokrug truby k Absorbru
116 AliMatrix(idrotm[901], 90., 0., 90., 90., 180., 0.);
126 ppcon[6] = ppcon[3]+1.;
136 ppcon[12] = ppcon[9]+0.1;
141 ppcon[15] = ppcon[12];
146 ppcon[18] = ppcon[15]+7.05;
151 ppcon[21] = ppcon[18];
156 ppcon[24] = ppcon[21]+0.01;
161 ppcon[27] = ppcon[24];
166 ppcon[30] = ppcon[27]+4.5;
171 ppcon[33] = ppcon[30];
176 ppcon[36] = ppcon[33];
181 ppcon[39] = ppcon[33]+0.4;
186 // ppcon[39] = ppcon[36];
190 gMC->Gsvolu("0SUP", "PCON", idtmed[kAir], ppcon,42);
192 gMC->Gspos("0SUP",1,"ALIC",0.,0.,z,idrotm[901],"ONLY");
195 Float_t zdetRight=69.7,zdetLeft=350;
196 //-------------------------------------------------------------------
198 //-------------------------------------------------------------------
201 gMC->Gsvolu("0STR","PCON",idtmed[kAir],pstartR,18);
202 gMC->Gsvolu("0STL","TUBE",idtmed[kAir],pstart,3);
203 gMC->Gspos("0STR",1,"ALIC",0.,0.,-zdetRight-pstart[2],idrotm[901],"ONLY");
204 gMC->Gspos("0STL",1,"ALIC",0.,0.,zdetLeft+pstart[2],0,"ONLY");
207 gMC->Gsvolu("0INS","TUBE",idtmed[kAir],pinstart,3);
208 gMC->Gsvolu("0PMT","TUBE",idtmed[kOpAir],ppmt,3);
209 gMC->Gsvolu("0DIV","TUBE",idtmed[kVac],pdivider,3);
210 gMC->Gsvolu("0SU1","TUBE",idtmed[kC],psupport1,3);//C kozhuh vnutri
211 gMC->Gsvolu("0SU2","TUBE",idtmed[kC],psupport2,3);// snaruzhi C
212 gMC->Gsvolu("0SU3","TUBE",idtmed[kC],psupport3,3);//kryshka perednaiai C
213 gMC->Gsvolu("0SU4","TUBE",idtmed[kC],psupport3,3);//kryshka zadnaiai C
214 // gMC->Gsvolu("0SU5","TUBE",idtmed[kAir],psupport4,3);// dyrki dlia feu v zadnej kryshke Air
215 gMC->Gsvolu("0SU6","TUBE",idtmed[kC],psupport5,3);// stakanchik dlai feu C
216 gMC->Gsvolu("0SU7","TUBE",idtmed[kAl],psupport6,3);//kryshechka stakanchika Al
217 gMC->Gsvolu("0SU8","TUBE",idtmed[kAl],psupport7,3);//kolechko snaruzhu stakanchika Al
219 // first ring: 12 units of Scintillator+PMT+divider
220 Float_t theta = (180 / TMath::Pi()) * TMath::ATan(6.5 / zdetRight);
221 Float_t angle = 2 * TMath::Pi() / 12;
224 for (is=0; is<12; is++)
227 x = 6.5 * TMath::Sin(is * angle);
228 y = 6.5 * TMath::Cos(is * angle);
231 phi[1] = 90 - is * 30;
232 phi[2] = 90 - is * 30;
233 for (Int_t j = 0; j < 3; j++)
234 if (phi[j] < 0) phi[j] += 360;
236 AliMatrix (idrotm[902 + is], 90., phi[0],
239 z=-pstart[2]+pinstart[2]+0.2;
240 gMC->Gspos ("0INS", is + 1, "0STR", x, y, z, idrotm[902 + is], "ONLY");
241 gMC->Gspos ("0INS", is + 13, "0STL", x, y, z, 0, "ONLY");
243 x = 9 * TMath::Sin(angle/2+is * angle);
244 y = 9 * TMath::Cos(angle/2+is * angle);
246 gMC->Gspos ("0INS", is + 25, "0STL", x, y, z, 0, "ONLY");
253 z=-pinstart[2]+ppmt[2]+2.*psupport6[2]+0.1;
254 gMC->Gspos("0PMT",1,"0INS",x,y,z,0,"ONLY");
255 z=z+pdivider[2]+ppmt[2];
256 gMC->Gspos("0DIV",1,"0INS",x,y,z,0,"ONLY");
260 // Entry window (glass)
261 gMC->Gsvolu("0TOP","TUBE",idtmed[kOpGlass],ptop,3); //glass
262 // gMC->Gsvolu("0TOP","TUBE",idtmed[12],ptop,3); //lucite
264 gMC->Gspos("0TOP",1,"0PMT",0,0,z,0,"ONLY");
268 gMC->Gsvolu ("0REG", "TUBE", idtmed[kOpGlass], preg, 3); //photocathode dobavil bogdanov(AliSTARTv2)
269 z = -ppmt[2] + 2 * ptop[2] + preg[2]; //photocathode dobavil bogdanov
270 gMC->Gspos ("0REG", 1, "0PMT", 0, 0, z, 0, "ONLY"); //photocathode dobavil bogdanov(AliSTARTv2)
273 gMC->Gsvolu("0BOT","TUBE",idtmed[kGlass],pbot,3);
275 AliDebugClass(1,Form(" Z bottom %f\n",z));
276 gMC->Gspos("0BOT",1,"0PMT",0,0,z,0,"ONLY");
277 // Side cylinder glass
278 gMC->Gsvolu("0OUT","TUBE",idtmed[kGlass],pglass,3);
280 gMC->Gspos("0OUT",1,"0PMT",0,0,z,0,"ONLY");
281 //PMT electrodes support structure
282 gMC->Gsvolu("0CER","TUBE",idtmed[kCer],pcer,3);
283 gMC->Gsvolu("0STE","TUBE",idtmed[kSteel],psteel,3);
284 z=-ppmt[2]+2*ptop[2]+0.3;;
285 for (is=1; is<=15; is++)
287 z=z+psteel[2]+pcer[2];
288 gMC->Gspos("0CER",is,"0PMT",0,0,z,0,"ONLY");
289 z=z+psteel[2]+pcer[2];
290 gMC->Gspos("0STE",is,"0PMT",0,0,z,0,"ONLY");
294 // Knob at the bottom of PMT baloon
296 gMC->Gsvolu("0NB","TUBE",idtmed[6],pknob,3);
297 z=-pdivider[2]+pknob[2];
298 gMC->Gspos("0NB",1,"0DIV",0,0,z,0,"ONLY");
299 gMC->Gsvolu("0KB","TUBE",idtmed[kGlass],pknob_bot,3);
300 z=-pdivider[2]+2*pknob[2]+pknob_bot[2];
301 gMC->Gspos("0KB",1,"0DIV ",0,0,z,0,"ONLY");
302 gMC->Gsvolu("0VAC","TUBE",idtmed[kVac],pknob_vac,3);
303 z=-pdivider[2]+pknob_vac[2];
304 gMC->Gspos("0VAC",1,"0DIV",0,0,z,0,"ONLY");
305 //Steel pins + pin holes
306 gMC->Gsvolu("0PIN","TUBE",idtmed[kSteel],ppins,3);
307 z=-pdivider[2]+ppins[2];
308 gMC->Gspos("0PIN",1,"0DIV",0,0,z,0,"ONLY");
309 gMC->Gsvolu("0HOL","TUBE",idtmed[kBrass],phole,3);
310 z=-pdivider[2]+2*ppins[2]+phole[2];
311 gMC->Gspos("0HOL",1,"0DIV",0,0,z,0,"ONLY");
314 gMC->Gsvolu("0V1","TUBE",idtmed[kCer],pdiv1,3);
315 z=-pdivider[2]+pdiv1[2];
316 gMC->Gspos("0V1",1,"0DIV",0,0,z,0,"ONLY");
318 gMC->Gsvolu("0V2","TUBE",idtmed[kAir],pdiv2,3);
319 z=pdivider[2]-pdiv2[2];
320 gMC->Gspos("0V2",1,"0DIV",0,0,z,0,"ONLY");
321 gMC->Gsvolu("0RS","TUBE",idtmed[kCer],presist,3);
322 z=-pdiv2[2]+presist[2];
323 gMC->Gspos("0RS",1,"0V2",0,0,z,0,"ONLY");
324 gMC->Gsvolu("0RB","TUBE",idtmed[kRibber],pribber,3);
325 z=pdiv2[2]-pribber[2];
326 gMC->Gspos("0RB",1,"0V2",0,0,z,0,"ONLY");
331 z=-pstart[2]+psupport1[2];
332 gMC->Gspos("0SU1",2,"0STL",0,0,z,0,"ONLY"); //C kozhuh snaruzhi
333 gMC->Gspos("0SU2",2,"0STL",0,0,z,0,"ONLY"); //C kozhuh vnutri
334 z=-pstart[2]+psupport3[2];
335 gMC->Gspos("0SU3",2,"0STL",0,0,z,0,"ONLY"); //peredniaia kryshka
336 z=-pstart[2]+2.*psupport1[2];
337 gMC->Gspos("0SU4",2,"0STL",0,0,z,0,"MANY"); //zadnaiai kryshka
339 z=-pstart[2]+psupport1[2]+0.1;
340 gMC->Gspos("0SU1",1,"0STR",0,0,z,0,"ONLY"); //C kozhuh snaruzhi
341 gMC->Gspos("0SU2",1,"0STR",0,0,z,0,"ONLY"); //C kozhuh vnutri
342 z=-pstart[2]+psupport3[2]+0.1;
343 gMC->Gspos("0SU3",1,"0STR",0,0,z,0,"ONLY"); //peredniaia kryshka
344 z=-pstart[2]+2.*psupport1[2]+0.1;
345 gMC->Gspos("0SU4",1,"0STR",0,0,z,0,"MANY"); //zadnaiai kryshka
346 gMC->Gspos("0SU6",1,"0INS",0,0,0,0,"ONLY");//C stakanchik dlia feu
347 z=-pinstart[2]+psupport6[2];
348 gMC->Gspos("0SU7",1,"0INS",0,0,z,0,"ONLY"); //Al kryshechka
350 z=pinstart[2]-psupport7[2];
351 gMC->Gspos("0SU8",1,"0INS",0,0,z,0,"ONLY"); //Al kolechko
358 gMC->Gsvolu("0SC0","TUBE",idtmed[kC],par,3);
360 gMC->Gspos("0SC0",1,"0SUP",0,0,z,0,"ONLY");
365 gMC->Gsvolu("0SC1","TUBE",idtmed[kC],par,3);
367 gMC->Gspos("0SC1",1,"0SUP",0,0,z,0,"ONLY");
372 gMC->Gsvolu("0SC2","TUBE",idtmed[kC],par,3);
374 gMC->Gspos("0SC2",1,"0SUP",0,0,z,0,"ONLY");
383 gMC->Gsvolu("0SC3","CONE",idtmed[kC],parC,5);
385 gMC->Gspos("0SC3",1,"0SUP",0,0,z,0,"ONLY");
390 gMC->Gsvolu("0SC4","TUBE",idtmed[kC],par,3);
392 gMC->Gspos("0SC4",1,"0SUP",0,0,z,0,"ONLY");
396 gMC->Gsvolu("0SA0","TUBE",idtmed[kAl],par,3);
397 gMC->Gspos("0SA0",1,"0SUP",0,0,z,0,"ONLY");
398 //gvozdi dlia skruchivaniia Al i C parts
401 gMC->Gsvolu("0SN1","TUBE",idtmed[kSteel],par,3);
402 gMC->Gspos("0SN1",1,"0SUP",0,0,z,0,"ONLY");
408 gMC->Gsvolu("0SA1","TUBE",idtmed[kAl],par,3);
411 gMC->Gspos("0SA1",1,"0SUP",0,0,z,0,"ONLY");
416 gMC->Gsvolu("0SA2","TUBE",idtmed[kAl],par,3);
418 gMC->Gspos("0SA2",1,"0SUP",0,0,z,0,"ONLY");
420 par[0]=3.16; // eta chast' prikruchena k absorberu
423 gMC->Gsvolu("0SA3","TUBE",idtmed[kAl],par,3);
425 gMC->Gspos("0SA3",1,"0SUP",0,0,z,0,"ONLY");
426 par[0]=3.16; // gvozdi eta chast' prikruchena k absorberu
429 gMC->Gsvolu("0SN2","TUBE",idtmed[kSteel],par,3);
430 gMC->Gspos("0SN2",1,"0SUP",0,0,z,0,"ONLY");
435 //------------------------------------------------------------------------
436 void AliSTARTv0::CreateMaterials()
438 Int_t isxfld = gAlice->Field()->Integ();
439 Float_t sxmgmx = gAlice->Field()->Max();
440 Float_t a,z,d,radl,absl,buf[1];
444 Float_t ascin[2]={1.01,12.01};
445 Float_t zscin[2]={1,6};
446 Float_t wscin[2]={1,1};
447 Float_t denscin=1.03;
448 //Lucite C(CH3)CO2CH3
449 Float_t alucite[3]={1.01,12.01,15.999};
450 Float_t zlucite[3]={1,6,8};
451 Float_t wlucite[3]={8,5,2};
452 Float_t denlucite=1.16;
454 Float_t aglass[2]={28.0855,15.9994};
455 Float_t zglass[2]={14.,8.};
456 Float_t wglass[2]={1.,2.};
458 // Ceramic 97.2% Al2O3 , 2.8% SiO2
459 Float_t acer[2],zcer[2],wcer[2]={0.972,0.028};
460 Float_t aal2o3[2] = { 26.981539,15.9994 };
461 Float_t zal2o3[2] = { 13.,8. };
462 Float_t wal2o3[2] = { 2.,3. };
463 Float_t denscer = 3.6;
465 // Brass 80% Cu, 20% Zn
466 Float_t abrass[2] = {63.546,65.39};
467 Float_t zbrass[2] = {29,30};
468 Float_t wbrass[2] = {0.8,0.2};
469 Float_t denbrass=8.96;
472 Float_t aribber[3] = {12.,1.,32.};
473 Float_t zribber[3] = {6.,1.,16.};
474 Float_t wribber[3] = {6.,12.,1.};
475 Float_t denribber=0.8;
477 Float_t asupport[2] = {12.,1.};
478 Float_t zsupport[2] = {6.,1.};
479 Float_t wsupport[2] = {1.,1.};
480 Float_t densupport=0.1;
482 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
483 Float_t zAir[4]={6.,7.,8.,18.};
484 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
485 Float_t dAir = 1.20479E-3;
487 //*** Definition Of avaible START materials ***
488 AliMaterial(0, "START Steel$", 55.850,26.,7.87,1.76,999);
489 AliMaterial(1, "START Vacuum$", 1.e-16,1.e-16,1.e-16,1.e16,999);
490 AliMixture(2, "START Air$", aAir, zAir, dAir,4,wAir);
492 AliMaterial(10, "CarbonPlastic$", 12.01, 6.0, 2.26, 18.8,999);
493 AliMaterial(11, "Aliminium$", 26.98, 13.0, 2.7, 8.9,999);
495 AliMixture( 3, "Al2O3 $", aal2o3, zal2o3, denscer, -2, wal2o3);
496 AliMixture( 4, "PMT glass $",aglass,zglass,dglass,-2,wglass);
498 gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf);
501 gMC->Gfmate((*fIdmate)[4], namate, a, z, d, radl, absl, buf, nbuf);
505 AliMixture( 9, "Ceramic $", acer, zcer, denscer, 2, wcer);
506 AliMixture( 5, "Scintillator$",ascin,zscin,denscin,-2,wscin);
507 AliMixture( 6, "Brass $", abrass, zbrass, denbrass, 2, wbrass);
509 AliMixture( 7, "Ribber $",aribber,zribber,denribber,-3,wribber);
510 AliMixture( 8, "Lucite$",alucite,zlucite,denlucite,-3,wlucite);
511 AliMixture( 9, "Penoplast$",asupport,zsupport,densupport,-2,wsupport);
514 AliMedium(1, "START Air$", 2, 0, isxfld, sxmgmx, 10., .1, 1., .003, .003);
515 AliMedium(2, "Scintillator$", 5, 1, isxfld, sxmgmx, 10., .01, 1., .003, .003);
516 AliMedium(3, "Vacuum$", 1, 0, isxfld, sxmgmx, 10., .01, .1, .003, .003);
517 AliMedium(4, "Ceramic$", 9, 0, isxfld, sxmgmx, 10., .01, .1, .003, .003);
518 AliMedium(6, "Glass$", 4, 1, isxfld, sxmgmx, 10., .01, .1, .003, .003);
519 AliMedium(8, "Steel$", 0, 0, isxfld, sxmgmx, 1., .001, 1., .001, .001);
520 AliMedium(9, "Ribber $", 7, 0, isxfld, sxmgmx, 10., .01, .1, .003, .003);
521 AliMedium(11, "Brass $", 6, 0, isxfld, sxmgmx, 10., .01, .1, .003, .003);
522 AliMedium(12, "Lucite$", 8, 1, isxfld, sxmgmx, 10., .01, 1., .003, .003);
523 AliMedium(13, "CarbonPlastic$", 10, 0, isxfld, sxmgmx, 10., .01, 1., .003, .003);
524 AliMedium(14, "PenoPlast$", 9, 0, isxfld, sxmgmx, 10., .01, 1., .003, .003);
525 AliMedium(15, "Aluminium$", 11, 0, isxfld, sxmgmx, 10., .01, 1., .003, .003);
527 AliDebugClass(1,": ++++++++++++++Medium set++++++++++");
530 //---------------------------------------------------------------------
531 void AliSTARTv0::DrawModule() const
534 // Draw a shaded view of the Forward multiplicity detector version 0
537 //Set ALIC mother transparent
538 gMC->Gsatt("ALIC","SEEN",0);
540 //Set volumes visible
541 gMC->Gsatt("0STA","SEEN",0);
542 gMC->Gsatt("0PMT","SEEN",1);
543 gMC->Gsatt("0DIV","SEEN",1);
545 gMC->Gdopt("hide","on");
546 gMC->Gdopt("shad","on");
547 gMC->SetClipBox(".");
548 gMC->SetClipBox("*",0,1000,-1000,1000,-1000,1000);
550 gMC->Gdraw("alic",40,30,0,12,9.5,.7,0.7);
551 gMC->Gdhead(1111,"T-Zero detector");
552 gMC->Gdopt("hide","off");
555 //-------------------------------------------------------------------
556 void AliSTARTv0::Init()
558 // Initialises version 0 of the Forward Multiplicity Detector
560 //Int_t *idtmed = gAlice->Idtmed();
562 fIdSens1=gMC->VolId("0TOP");
563 AliDebug(1,Form("%s: *** START version 0 initialized ***\n",ClassName()));
567 //-------------------------------------------------------------------
569 void AliSTARTv0::StepManager()
572 // Called for every step in the START Detector
576 //---------------------------------------------------------------------