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 // (V-zero) detector version 2 as designed by the Lyon group //
21 // All comments should be sent to Brigitte CHEYNIS : //
22 // b.cheynis@ipnl.in2p3.fr //
23 // Geometry of the 26th of november 2003 //
24 // (circular instead of trapezoidal shapes as in previous versions //
25 // plus changes in cell dimensions and offsets) : //
26 // Scintillating cells are now 2 cm thick instead of 0.7 cm //
27 // V0R sits between Z values -89.4 and -85.0 cm //
28 // V0L sits between Z values +350.0 and +352.0 cm //
29 // New coordinate system has been implemented in october 2003 //
31 //////////////////////////////////////////////////////////////////////
33 // --- Standard libraries ---
34 #include <Riostream.h>
38 // --- ROOT libraries ---
39 #include <TClonesArray.h>
40 #include <TLorentzVector.h>
42 #include <TObjectTable.h>
43 #include <TVirtualMC.h>
44 #include <TParticle.h>
46 // --- AliRoot header files ---
52 #include "AliVZEROLoader.h"
53 #include "AliVZEROdigit.h"
54 #include "AliVZEROhit.h"
55 #include "AliVZEROv2.h"
59 //_____________________________________________________________________________
60 AliVZEROv2:: AliVZEROv2():AliVZERO()
62 // Standard default constructor
65 //_____________________________________________________________________________
66 AliVZEROv2::AliVZEROv2(const char *name, const char *title):
70 // Standard constructor for V-zero Detector version 2
72 AliDebug(2,"Create VZERO object");
76 //_____________________________________________________________________________
77 void AliVZEROv2::CreateGeometry()
80 // Creates the GEANT geometry of the V-zero Detector version 2
82 AliDebug(2,"Create VZERO Geometry");
84 Int_t *idtmed = fIdtmed->GetArray()-2999;
94 Float_t height1, height2, height3, height4, height5;
102 Float_t pi = TMath::Pi();
104 height1 = 1.82; // height of cell 1, in cm
105 height2 = 3.81; // height of cell 2, in cm
106 height3 = 4.72; // height of cell 3, in cm
107 height4 = 7.12; // height of cell 4, in cm
108 height5 = 10.83; // height of cell 5, in cm
110 theta = pi/6.0/2.0; // half angular opening = 15 degrees
112 halfThickQua= fThickness1/2.0; // half thickness of elementary cell (inner ring)
114 // distance 0.6 cm in zdet accounts for the fact V0R box back lid sits 0.6 away from
115 // absorber nose sitting at 90 cm. Will use -zdet later...
117 zdet = 90.0 - 0.6 -fThickness/2.0; // distance to vertex (along Z axis)
118 r0 = 4.05; // closest distance to center of the beam pipe
119 height = height1 + height2 + height3 + height4 + height5;
122 // Creation of mother volume v0LE - left part - :
123 // Entrance face at +350.0 cm (new coordinate system) ...
129 partube[2] = fThickness1/2.0;
131 gMC->Gsvolu("V0LE","TUBE",idtmed[3005],partube,3);
133 // Creation of five rings - left part - :
134 // Entrance face at +350.0 cm (new coordinate system) ...
136 // Mother volume v0L0 in which will be set 5 scintillator cells
140 Float_t r0Left = 4.3;
141 Float_t height1Left = 2.6;
142 Float_t height2Left = 4.1;
143 Float_t height3Left = 6.4;
144 Float_t height4Left = 10.2;
145 Float_t height5Left = 16.9;
146 Float_t heightLeft = height1Left + height2Left + height3Left
147 + height4Left + height5Left;
148 Float_t r5Left = r0Left + heightLeft;
152 partubs[2] = fThickness1/2.0;
153 partubs[3] = 90.0-15.0;
154 partubs[4] = 120.0-15.0;
156 gMC->Gsvolu("V0L0","TUBS",idtmed[3010],partubs,5); // air volume
158 Float_t r1Left = r0Left + height1Left;
163 gMC->Gsvolu("V0L1","TUBS",idtmed[3005],partubs,5); // quartz volume
164 gMC->Gspos("V0L1",1,"V0L0", 0.0, 0.0 , 0.0, 0,"ONLY");
166 Float_t r2Left = r1Left + height2Left;
171 gMC->Gsvolu("V0L2","TUBS",idtmed[3005],partubs,5); // quartz volume
172 gMC->Gspos("V0L2",1,"V0L0", 0.0, 0.0 , 0.0, 0,"ONLY");
174 Float_t r3Left = r2Left + height3Left;
179 gMC->Gsvolu("V0L3","TUBS",idtmed[3005],partubs,5); // quartz volume
180 gMC->Gspos("V0L3",1,"V0L0", 0.0, 0.0 , 0.0, 0,"ONLY");
182 Float_t r4Left = r3Left + height4Left;
187 gMC->Gsvolu("V0L4","TUBS",idtmed[3005],partubs,5); // quartz volume
188 gMC->Gspos("V0L4",1,"V0L0", 0.0, 0.0 , 0.0, 0,"ONLY");
192 partubs[3] = 90.0-15.0;
193 partubs[4] = 120.0-30.0;
195 gMC->Gsvolu("V0L5","TUBS",idtmed[3005],partubs,5); // quartz volume
196 gMC->Gspos("V0L5",1,"V0L0", 0.0, 0.0 , 0.0, 0,"ONLY");
198 partubs[3] = 120.0-30.0;
199 partubs[4] = 120.0-15.0;
201 gMC->Gsvolu("V0L6","TUBS",idtmed[3005],partubs,5); // quartz volume
202 gMC->Gspos("V0L6",1,"V0L0", 0.0, 0.0 , 0.0, 0,"ONLY");
205 // Creation of mother volume v0RI - right part - :
207 partube[0] = r0 - 0.2;
208 partube[1] = r5 + 1.0;
209 partube[2] = fThickness/2.0;
211 gMC->Gsvolu("V0RI","TUBE",idtmed[3010],partube,3);
213 // Creation of carbon lids (2 mm thick) to keep v0RI box shut...
215 Float_t lidThickness = 0.2;
219 partube[2] = +lidThickness/2.0;
221 gMC->Gsvolu("V0CA","TUBE",idtmed[3001],partube,3);
222 gMC->Gspos("V0CA",1,"V0RI",0.0,0.0, fThickness/2.0-partube[2],0,"ONLY");
223 gMC->Gspos("V0CA",2,"V0RI",0.0,0.0,-fThickness/2.0+partube[2],0,"ONLY");
225 // Creation of aluminum rings to maintain the v0RI pieces ...
227 partube[0] = r0 - 0.2;
229 partube[2] = +fThickness/2.0;
231 gMC->Gsvolu("V0IR","TUBE",idtmed[3003],partube,3);
232 gMC->Gspos("V0IR",1,"V0RI",0.0,0.0,0.0,0,"ONLY");
235 partube[1] = r5 + 1.0;
236 partube[2] = +fThickness/2.0;
238 gMC->Gsvolu("V0ER","TUBE",idtmed[3003],partube,3);
239 gMC->Gspos("V0ER",1,"V0RI",0.0,0.0,0.0,0,"ONLY");
241 // Mother volume v0R0 in which will be set 5 scintillator cells
245 partubs[2] = fThickness/2.0;
246 partubs[3] = 90.0-15.0;
247 partubs[4] = 120.0-15.0;
249 gMC->Gsvolu("V0R0","TUBS",idtmed[3010],partubs,5); // air volume
251 // Elementary cell of ring 1 :
252 // (cells 2 and 3 will be shifted by 1 cm to output fibers)
254 Float_t offsetFibers = 1.0;
255 Float_t offset = fThickness/2.0 - lidThickness - fThickness1/2.0;
256 Float_t r1 = r0 + height1;
260 partubs[2] = fThickness1/2.0;
262 gMC->Gsvolu("V0R1","TUBS",idtmed[3005],partubs,5); // scintillator volume
263 gMC->Gspos("V0R1",1,"V0R0", 0.0, 0.0 , -offset, 0,"ONLY");
265 // Elementary cell of ring 2 :
267 Float_t r2 = r1 + height2;
272 gMC->Gsvolu("V0R2","TUBS",idtmed[3005],partubs,5); // scintillator volume
273 gMC->Gspos("V0R2",1,"V0R0", 0.0, 0.0 , -offset + offsetFibers, 0,"ONLY");
276 // Elementary cell of ring 3 :
278 Float_t r3 = r2 + height3;
283 gMC->Gsvolu("V0R3","TUBS",idtmed[3005],partubs,5); // scintillator volume
284 gMC->Gspos("V0R3",1,"V0R0", 0.0, 0.0 , -offset + 2.0 * offsetFibers, 0,"ONLY");
286 // Elementary cell of ring 4 :
288 Float_t r4 = r3 + height4 ;
293 gMC->Gsvolu("V0R4","TUBS",idtmed[3005],partubs,5); // scintillator volume
294 gMC->Gspos("V0R4",1,"V0R0", 0.0, 0.0 , -offset + 2.0 * offsetFibers, 0,"ONLY");
296 // Elementary cells of ring 5 :
300 partubs[3] = 90.0-15.0;
301 partubs[4] = 120.0-30.0;
303 gMC->Gsvolu("V0R5","TUBS",idtmed[3005],partubs,5); // scintillator volume
304 gMC->Gspos("V0R5",1,"V0R0", 0.0, 0.0 , -offset + 2.0 * offsetFibers, 0,"ONLY");
306 partubs[3] = 120.0-30.0;
307 partubs[4] = 120.0-15.0;
309 gMC->Gsvolu("V0R6","TUBS",idtmed[3005],partubs,5); // scintillator volume
310 gMC->Gspos("V0R6",1,"V0R0", 0.0, 0.0 , -offset + 2.0 * offsetFibers, 0,"ONLY");
312 Float_t phiDeg = 180./6.;
316 for(Float_t phi = 15.0; phi < 360.0; phi = phi + phiDeg)
318 AliMatrix(idrotm[902], 90.0, phi, 90.0, 90.0 +phi, 0.0 , 0.0);
319 gMC->Gspos("V0R0",ndetR,"V0RI",0.0,
320 0.0,0.0,idrotm[902],"ONLY");
324 gMC->Gspos("V0RI",1,"ALIC",0.0,0.0,-zdet,0,"ONLY");
326 ncellsR = (ndetR - 1) * 6;
327 AliInfo(Form("Number of cells on Right side = %d", ncellsR));
331 for(Float_t phi = 15.0; phi < 360.0; phi = phi + phiDeg)
333 AliMatrix(idrotm[902], 90.0, phi, 90.0, 90.0 +phi, 0.0 , 0.0);
334 gMC->Gspos("V0L0",ndetL,"V0LE",0.0,
335 0.0,0.0,idrotm[902],"ONLY");
339 gMC->Gspos("V0LE",1,"ALIC",0.0,0.0,350.0+fThickness1/2.0,0,"ONLY");
341 ncellsL = (ndetL - 1) * 6;
342 AliInfo(Form("Number of cells on Left side = %d", ncellsL));
346 //_____________________________________________________________________________
347 void AliVZEROv2::CreateMaterials()
350 // Creates materials used for geometry
352 AliDebug(2,"VZERO create materials");
355 Float_t ppckov[14] = { 5.5e-9, 5.7e-9, 5.9e-9, 6.1e-9, 6.3e-9, 6.5e-9, 6.7e-9,
356 6.9e-9, 7.1e-9, 7.3e-9, 7.5e-9, 7.7e-9, 7.9e-9, 8.1e-9 };
359 Float_t ppckov_alu[14] = { 5.5e-9, 5.7e-9, 5.9e-9, 6.1e-9, 6.3e-9, 6.5e-9, 6.7e-9,
360 6.9e-9, 7.1e-9, 7.3e-9, 7.5e-9, 7.7e-9, 7.9e-9, 8.1e-9 };
362 Float_t rindex_quarz[14] = { 1.52398, 1.53090, 1.53835, 1.54641, 1.55513, 1.56458,
363 1.57488, 1.58611, 1.59842, 1.61197, 1.62696, 1.64362,
366 Float_t absco_quarz[14] = { 105.8, 45.656, 35.665, 28.598, 25.007, 21.04, 17.525,
367 14.177, 9.282, 4.0925, 1.149, 0.3627, 0.1497, 0.05 };
369 Float_t effic_all[14] = { 1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1. };
372 Float_t rindex_alu[14] = { 1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1. };
375 Float_t absco_alu[14] = { 1e-4,1e-4,1e-4,1e-4,1e-4,1e-4,1e-4,1e-4,1e-4,1e-4,
376 1e-4,1e-4,1e-4,1e-4 };
377 Float_t effic_alu[14] = { 1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1.,1. };
381 Int_t *idtmed = fIdtmed->GetArray()-2999;
384 // Parameters related to Quarz (SiO2) :
386 Float_t aqua[2], zqua[2], densqua, wmatqua[2];
398 // Parameters related to aluminum sheets :
405 // Parameters related to scintillator CH :
407 Float_t ascin[2] = {1.00794,12.011};
408 Float_t zscin[2] = {1.,6.};
409 Float_t wscin[2] = {1.,1.};
410 Float_t denscin = 1.032;
414 Float_t aAir[4]={12.,14.,16.,36.};
415 Float_t zAir[4]={6.,7.,8.,18.};
416 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
417 Float_t dAir = 1.20479E-3;
419 // Definition of materials :
421 AliMixture( 1, "AIR A$", aAir,zAir,dAir,4,wAir);
422 AliMixture(11, "AIR I$", aAir,zAir,dAir,4,wAir);
423 AliMaterial( 2, "CARBON$" , 12.01, 6.0, 2.265, 18.8, 49.9, 0, 0);
424 AliMixture( 3, "QUA", aqua, zqua, densqua, nlmatqua, wmatqua);
425 AliMaterial( 4, "ALUMINIUM1$", 26.98, 13., 2.7, 8.9, 37.2, 0, 0);
426 AliMaterial( 5, "ALUMINIUM2$", aal, zal, densal, radlal, 0, 0, 0);
428 AliMixture( 6, "Scintillator$",ascin,zscin,denscin,-2,wscin);
431 Int_t iSXFLD = gAlice->Field()->Integ();
432 Float_t sXMGMX = gAlice->Field()->Max();
434 Float_t tmaxfd, stemax, deemax, epsil, stmin;
443 AliMedium(1, "ACTIVE AIR$", 1, 1, iSXFLD, sXMGMX,
444 10.0, 1.0, 0.1, 0.1, 10.0, 0, 0) ;
448 AliMedium(11, "INACTIVE AIR$", 11, 0, iSXFLD, sXMGMX,
449 10.0, 1.0, 0.1, 0.1, 10.0, 0, 0) ;
451 AliMedium(2, "CARBON$ ", 2, 1, iSXFLD, sXMGMX,
452 tmaxfd, stemax, deemax, epsil, stmin, 0, 0);
454 AliMedium(3, "QUARZ$", 3, 1, iSXFLD, sXMGMX,
455 tmaxfd, fMaxStepQua, fMaxDestepQua, epsil, stmin, 0, 0);
457 AliMedium(4,"ALUMINUM1$",4, 1, iSXFLD, sXMGMX,
458 tmaxfd, fMaxStepAlu, fMaxDestepAlu, epsil, stmin, 0, 0);
461 AliMedium(5,"ALUMINUM2$",5, 1, iSXFLD, sXMGMX,
462 tmaxfd, fMaxStepAlu, fMaxDestepAlu, epsil, stmin, 0, 0);
464 AliMedium(6,"SCINTILLATOR$",6, 1, iSXFLD, sXMGMX, 10.0, 0.1, 0.1, 0.003, 0.003, 0, 0);
466 gMC->Gstpar(idtmed[3000], "LOSS", 1.); // [3000] = air ACTIF [3010] = air INACTIF
467 gMC->Gstpar(idtmed[3000], "HADR", 1.);
468 gMC->Gstpar(idtmed[3000], "DCAY", 1.);
469 gMC->Gstpar(idtmed[3000], "DRAY", 1.);
471 gMC->Gstpar(idtmed[3001], "LOSS", 1.); // [3001] = carbon
472 gMC->Gstpar(idtmed[3001], "HADR", 1.);
473 gMC->Gstpar(idtmed[3001], "DCAY", 1.);
474 gMC->Gstpar(idtmed[3001], "DRAY", 1.);
476 gMC->Gstpar(idtmed[3002], "LOSS", 1.); // [3002] = quartz
477 gMC->Gstpar(idtmed[3002], "HADR", 1.);
478 gMC->Gstpar(idtmed[3002], "DCAY", 1.);
479 gMC->Gstpar(idtmed[3002], "DRAY", 1.);
480 gMC->Gstpar(idtmed[3002], "CUTGAM",0.5E-4) ;
481 gMC->Gstpar(idtmed[3002], "CUTELE",1.0E-4) ;
483 gMC->Gstpar(idtmed[3003], "LOSS", 1.); // [3003] = normal aluminum
484 gMC->Gstpar(idtmed[3003], "HADR", 1.);
485 gMC->Gstpar(idtmed[3003], "DCAY", 1.);
486 gMC->Gstpar(idtmed[3003], "DRAY", 1.);
488 gMC->Gstpar(idtmed[3004], "LOSS", 1.); // [3004] = reflecting aluminum
489 gMC->Gstpar(idtmed[3004], "HADR", 1.);
490 gMC->Gstpar(idtmed[3004], "DCAY", 1.);
491 gMC->Gstpar(idtmed[3004], "DRAY", 1.);
492 gMC->Gstpar(idtmed[3004], "CUTGAM",0.5E-4) ;
493 gMC->Gstpar(idtmed[3004], "CUTELE",1.0E-4) ;
495 gMC->Gstpar(idtmed[3005], "LOSS", 1.); // [3005] = scintillator
496 gMC->Gstpar(idtmed[3005], "HADR", 1.);
497 gMC->Gstpar(idtmed[3005], "DCAY", 1.);
498 gMC->Gstpar(idtmed[3005], "DRAY", 1.);
499 gMC->Gstpar(idtmed[3005], "CUTGAM",0.5E-4) ;
500 gMC->Gstpar(idtmed[3005], "CUTELE",1.0E-4) ;
503 // geant3->Gsckov(idtmed[3002], 14, ppckov, absco_quarz, effic_all,rindex_quarz);
504 // geant3->Gsckov(idtmed[3004], 14, ppckov_alu, absco_alu, effic_alu, rindex_alu);
506 // gMC->SetCerenkov(idtmed[3002], 14, ppckov, absco_quarz, effic_all,rindex_quarz);
507 // gMC->SetCerenkov(idtmed[3004], 14, ppckov_alu, absco_alu, effic_alu, rindex_alu);
511 //_____________________________________________________________________________
512 void AliVZEROv2::DrawModule() const
515 // Drawing is done in DrawVZERO.C
517 AliDebug(2,"VZERO DrawModule");
521 //_____________________________________________________________________________
522 void AliVZEROv2::Init()
524 // Initialises version 2 of the VZERO Detector
525 // Just prints an information message
527 AliInfo(Form("VZERO version %d initialized",IsVersion()));
529 // gMC->SetMaxStep(fMaxStepAlu);
530 // gMC->SetMaxStep(fMaxStepQua);
537 //_____________________________________________________________________________
538 void AliVZEROv2::StepManager()
541 // Step Manager, called at each step
545 static Float_t hits[19];
546 static Float_t eloss, tlength;
556 Float_t destep, step;
559 // We keep only charged tracks :
561 if ( !gMC->TrackCharge() || !gMC->IsTrackAlive() ) return;
564 vol[0] = gMC->CurrentVolOffID(1, vol[1]);
565 vol[2] = gMC->CurrentVolID(copy);
568 static Int_t idV0R1 = gMC->VolId("V0R1");
569 static Int_t idV0L1 = gMC->VolId("V0L1");
570 static Int_t idV0R2 = gMC->VolId("V0R2");
571 static Int_t idV0L2 = gMC->VolId("V0L2");
572 static Int_t idV0R3 = gMC->VolId("V0R3");
573 static Int_t idV0L3 = gMC->VolId("V0L3");
574 static Int_t idV0R4 = gMC->VolId("V0R4");
575 static Int_t idV0L4 = gMC->VolId("V0L4");
576 static Int_t idV0R5 = gMC->VolId("V0R5");
577 static Int_t idV0L5 = gMC->VolId("V0L5");
578 static Int_t idV0R6 = gMC->VolId("V0R6");
579 static Int_t idV0L6 = gMC->VolId("V0L6");
581 if ( gMC->CurrentVolID(copy) == idV0R1 ||
582 gMC->CurrentVolID(copy) == idV0L1 )
584 else if ( gMC->CurrentVolID(copy) == idV0R2 ||
585 gMC->CurrentVolID(copy) == idV0L2 )
587 else if ( gMC->CurrentVolID(copy) == idV0R3 ||
588 gMC->CurrentVolID(copy) == idV0L3 )
590 else if ( gMC->CurrentVolID(copy) == idV0R4 ||
591 gMC->CurrentVolID(copy) == idV0L4 )
593 else if ( gMC->CurrentVolID(copy) == idV0R5 ||
594 gMC->CurrentVolID(copy) == idV0L5 ||
595 gMC->CurrentVolID(copy) == idV0R6 ||
596 gMC->CurrentVolID(copy) == idV0L6 )
601 if ( ringNumber > 0.5 ) {
603 destep = gMC->Edep();
604 step = gMC->TrackStep();
608 if ( gMC->IsTrackEntering() ) {
610 gMC->TrackPosition(pos);
612 gMC->TrackMomentum(mom);
613 Double_t tc = mom[0]*mom[0]+mom[1]*mom[1];
614 Double_t pt = TMath::Sqrt(tc);
615 Double_t pmom = TMath::Sqrt(tc+mom[2]*mom[2]);
616 theta = Float_t(TMath::ATan2(pt,Double_t(mom[2])))*kRaddeg;
617 phi = Float_t(TMath::ATan2(Double_t(pos[1]),Double_t(pos[0])))*kRaddeg;
619 ////////////////////////////////////////////////////////////////////////////
620 Float_t angle1 = Float_t(TMath::ATan2(Double_t(pos[1]),Double_t(pos[0])))*kRaddeg;
621 if(angle1 < 0.0) angle1 = angle1 + 360.0;
622 //PH AliDebug(2,Form("RingNumber, copy, phi1 = %f %d %f \n", ringNumber,vol[1],angle1));
623 ////////////////////////////////////////////////////////////////////////////
626 ipart = gMC->TrackPid();
631 hits[3] = Float_t (ipart);
633 hits[4] = gMC->TrackTime();
634 hits[5] = gMC->TrackCharge();
637 hits[8] = ringNumber;
645 TParticle *par = gAlice->GetMCApp()->Particle(gAlice->GetMCApp()->GetCurrentTrackNumber());
646 hits[14] = par->Vx();
647 hits[15] = par->Vy();
648 hits[16] = par->Vz();
655 if( gMC->IsTrackExiting() || gMC->IsTrackStop() || gMC->IsTrackDisappeared()){
660 AddHit(gAlice->GetMCApp()->GetCurrentTrackNumber(), vol, hits);
670 //_____________________________________________________________________________
671 void AliVZEROv2::AddHit(Int_t track, Int_t *vol, Float_t *hits)
676 TClonesArray &lhits = *fHits;
677 new(lhits[fNhits++]) AliVZEROhit(fIshunt,track,vol,hits);
680 //_____________________________________________________________________________
681 void AliVZEROv2::AddDigits(Int_t *tracks, Int_t* digits)
684 // Adds a VZERO digit
686 TClonesArray &ldigits = *fDigits;
687 new(ldigits[fNdigits++]) AliVZEROdigit(tracks, digits);
690 //_____________________________________________________________________________
691 void AliVZEROv2::MakeBranch(Option_t *option)
694 // Creates new branches in the current Root Tree
697 sprintf(branchname,"%s",GetName());
698 AliDebug(2,Form("fBufferSize = %d",fBufferSize));
700 const char *cH = strstr(option,"H");
702 if (fHits && fLoader->TreeH() && cH) {
703 fLoader->TreeH()->Branch(branchname,&fHits, fBufferSize);
704 AliDebug(2,Form("Making Branch %s for hits",branchname));
707 const char *cD = strstr(option,"D");
709 if (fDigits && fLoader->TreeD() && cD) {
710 fLoader->TreeD()->Branch(branchname,&fDigits, fBufferSize);
711 AliDebug(2,Form("Making Branch %s for digits",branchname));