Change of argument list of methods GetPadCxy, GetPadIxy, SetHit and FirstPad
[u/mrichter/AliRoot.git] / PMD / AliPMDv0.cxx
index 6b409a6ba6e3b5eb1cee5d17cb8ffe1d682092ba..931a85eec466d33dff61c4ab58b86e2a44746a3a 100644 (file)
@@ -1,3 +1,25 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/*
+$Log$
+Revision 1.6  1999/09/29 09:24:28  fca
+Introduction of the Copyright and cvs Log
+
+*/
+
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
 //  Photon Multiplicity Detector Version 1                                   //
@@ -383,6 +405,12 @@ void AliPMDv0::CreatePads()
   gMC->Gsatt("DV11", "SEEN", 1);
   
   // --- DEFINE MODULES, IRON, TUNGSTEN AND LEAD VOLUMES 
+
+  // This mod by fca, waiting for Yogendra Viyogi answer
+  spsw1[0] = spsw2[0];
+  spsw1[1] = spsw2[1];
+  spsw1[2] = spsw2[2];
+  // End of fca mod
   
   
   spb[0] = spsw1[0];
@@ -618,21 +646,22 @@ void AliPMDv0::StepManager()
   Float_t hits[4], destep;
   Float_t center[3] = {0,0,0};
   Int_t   vol[5];
-  Text_t namep[5];
+  const char* namep;
   
   if(gMC->GetMedium() == fMedSens && (destep = gMC->Edep())) {
     
-    gMC->CurrentVol(namep, copy);
+    gMC->CurrentVolID(copy);
     vol[0]=copy;
-    gMC->CurrentVolOff(1,namep,copy);
+    gMC->CurrentVolOffID(1,copy);
     vol[1]=copy;
-    gMC->CurrentVolOff(2,namep,copy);
+    gMC->CurrentVolOffID(2,copy);
+    namep=gMC->CurrentVolOffName(2);
     vol[2]=copy;
     if(strncmp(namep,"DW11",4))vol[2]=1;
     if(strncmp(namep,"DV11",4))vol[2]=2;
-    gMC->CurrentVolOff(3,namep,copy);
+    gMC->CurrentVolOffID(3,copy);
     vol[3]=copy;
-    gMC->CurrentVolOff(4,namep,copy);
+    gMC->CurrentVolOffID(4,copy);
     vol[4]=copy;
     gMC->Gdtom(center,hits,1);
     hits[3] = destep*1e9; //Number in eV