Bug corrected
[u/mrichter/AliRoot.git] / ZDC / AliZDCv2.cxx
index 6e1fc297f3fdbf8900d7476d1002a867f8e5ae47..bed69a86a790ad4627f26d8f78394985c0173799 100644 (file)
 
 /*
 $Log$
+Revision 1.3  2001/06/13 11:11:02  coppedis
+Minor changes
+
+Revision 1.2  2001/06/12 13:45:11  coppedis
+TDI in correct position and minor correction
+
 Revision 1.1  2001/05/14 09:57:39  coppedis
 A different geometry for the ZDCs
 
@@ -323,11 +329,16 @@ void AliZDCv2::CreateBeamLine()
   gMC->Gsvolu("QTD2", "BOX ", idtmed[6], boxpar, 3);
   gMC->Gspos("QTD2", 1, "ZDC ", 5.6+boxpar[0], 0., tubpar[2] + zd1 + 56.3, 0, "ONLY");
   
-  tubspar[0] = 6.2;
-  tubspar[1] = 6.4;
+//  tubspar[0] = 6.2;  // R = 6.2 cm----------------------------------------
+//  tubspar[1] = 6.4;
+//  tubspar[2] = 400./2.;
+//  tubspar[3] = 180.-62.5;
+//  tubspar[4] = 180.+62.5;
+  tubspar[0] = 10.5;   // R = 10.5 cm------------------------------------------
+  tubspar[1] = 10.7;
   tubspar[2] = 400./2.;
-  tubspar[3] = 180.-62.5;
-  tubspar[4] = 180.+62.5;
+  tubspar[3] = 180.-75.5;
+  tubspar[4] = 180.+75.5;
   gMC->Gsvolu("QTD3", "TUBS", idtmed[6], tubspar, 5);
   gMC->Gspos("QTD3", 1, "ZDC ", -3., 0., tubpar[2] + zd1 + 56.3, 0, "ONLY");
 
@@ -1301,7 +1312,7 @@ void AliZDCv2::Hits2Digits(Int_t ntracks)
   
 }
 //_____________________________________________________________________________
- void AliZDCv2::MakeBranch(Option_t *opt, char *file)
+ void AliZDCv2::MakeBranch(Option_t *opt, const char *file)
 {
   //
   // Create a new branch in the current Root Tree
@@ -1321,8 +1332,8 @@ void AliZDCv2::Hits2Digits(Int_t ntracks)
     else fDigits = new TClonesArray ("AliZDCDigit",1000);
     char branchname[10];
     sprintf(branchname,"%s",GetName());
-    gAlice->MakeBranchInTree(gAlice->TreeD(), 
-                             branchname, &fDigits, fBufferSize, file) ;
+    MakeBranchInTree(gAlice->TreeD(), 
+                     branchname, &fDigits, fBufferSize, file) ;
     printf("* AliZDCv2::MakeBranch    * Making Branch %s for digits\n\n",branchname);
   }