]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Obsolete versions removed.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 May 2001 13:47:34 +0000 (13:47 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 May 2001 13:47:34 +0000 (13:47 +0000)
PMD/AliPMDv0.cxx [deleted file]
PMD/AliPMDv0.h [deleted file]
PMD/AliPMDv1.cxx [deleted file]
PMD/AliPMDv1.h [deleted file]
PMD/AliPMDv2.cxx [deleted file]
PMD/AliPMDv2.h [deleted file]
PMD/AliPMDv3.cxx [deleted file]
PMD/AliPMDv3.h [deleted file]

diff --git a/PMD/AliPMDv0.cxx b/PMD/AliPMDv0.cxx
deleted file mode 100644 (file)
index c223170..0000000
+++ /dev/null
@@ -1,680 +0,0 @@
-/**************************************************************************
- * 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.8  2000/10/02 21:28:12  fca
-Removal of useless dependecies via forward declarations
-
-Revision 1.7  1999/10/06 13:05:52  fca
-Temporary fix to keep the code working waiting for Y.Viyogi
-
-Revision 1.6  1999/09/29 09:24:28  fca
-Introduction of the Copyright and cvs Log
-
-*/
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  Photon Multiplicity Detector Version 1                                   //
-//                                                                           //
-//Begin_Html
-/*
-<img src="picts/AliPMDv0Class.gif">
-*/
-//End_Html
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-#include "AliPMDv0.h"
-#include "AliRun.h"
-#include "AliMC.h" 
-#include "AliConst.h"
-#include "AliMagF.h"
-
-#include "TMath.h"
-static const Double_t kPI=TMath::Pi();
-static Float_t smod2[3], smod3[3], smod4[3];
-static Int_t maxbox, kdet;
-static Float_t thgas,thmin,thmax,zdist,zdist1,thlow,
-  thhigh,edge;
-static Int_t numqu;
-static Float_t xbox[40][40], ybox[40][40];
-static Int_t pindex[40][40];
-ClassImp(AliPMDv0)
-//_____________________________________________________________________________
-AliPMDv0::AliPMDv0() : AliPMD()
-{
-  //
-  // Default constructor 
-  //
-  fMedSens=0;
-}
-//_____________________________________________________________________________
-AliPMDv0::AliPMDv0(const char *name, const char *title)
-  : AliPMD(name,title)
-{
-  //
-  // Standard constructor
-  //
-  fMedSens=0;
-}
-
-//_____________________________________________________________________________
-void AliPMDv0::Coordnew()
-{
-  //
-  // Find coordinates for pad geometry
-  //
-  // Author Y.P. Viyogi, VECC Calcutta
-  //
-
-  Float_t th1, th2, dbox, dist;
-  //Float_t xoff[40][40], yoff[40][40];
-  Int_t i, j, nbox;
-  Float_t rlow;
-  Int_t xoff1[3], yoff1[3], l;
-  Float_t rhigh, dmax, hole;
-  Int_t kk, nhol;
-  Float_t rr, xx, yy;
-  
-  th1 = thmin * kPI / 180;
-  th2 = thmax * kPI / 180;
-  /* ESTIMATES FOR OCTAGON */
-  dist = zdist * TMath::Tan(th2);
-  /* ***  04.06.97 Fixed Module size of 6 cm, 0 mm boundary. */
-  /* ***  variable pad sizes of 0.3 mm, 0.5  mm, 1.0 mm and 1.2 mm */
-  dbox = edge * 2 + 24;
-  maxbox = Int_t(dist / dbox + .5);
-  dmax= maxbox * dbox;
-  /* NOW GET THE HOLE SIZE ETC. */
-  hole = zdist * TMath::Tan(th1);
-  nhol = Int_t(hole / dbox + .5);
-  hole = nhol * dbox;
-  
-  rlow = zdist * TMath::Tan(thlow * kPI / 180);
-  rhigh = zdist * TMath::Tan(thhigh * kPI / 180);
-  for (i = 1; i <= 40; ++i) {
-    for (j = 1; j <= 40; ++j) {
-      //index[j][i] = 0;
-      //xoff[j][i] = 0;
-      //yoff[j][i] = 0;
-      xbox[j][i] = 0;
-      /* L5: */
-      ybox[j][i] = 0;
-    }
-  }
-  
-  // NOW START PLACING THE BOXES IN VARIOUS LAYERS, START FROM THE CENTRE 
-  
-  yy = dbox / 2;
-  for(i=0;i<3;i++) yoff1[i]=0;
-  nbox = 0;
-  //        PRINT*,'MAXBOX=',MAXBOX 
-  for (i = 1; i <= maxbox; ++i) {
-    xx = dbox / 2;
-    for(j=0;j<3;j++) xoff1[j]=0;
-       for (j = 1; j <= maxbox; ++j) {
-         rr = sqrt(xx*xx+yy*yy);
-         if (rr >= hole && rr <= dmax) {
-           //  BOX CAN BE FITTED 
-           //index[j][i] = 2;
-           //if (rr < rlow) index[j][i] = 1;
-           //else if (rr > rhigh) index[j][i] = 3;
-           xbox[j][i] = xx;
-           ybox[j][i] = yy;
-             ++nbox;
-             //xoff[j][i] = xoff1[index[j][i] - 1];
-             //yoff[j][i] = yoff1[index[j][i] - 1];
-         }
-         if (kdet == 1) kk = 1; else kk = 0;
-         for (l = 1; l <= 3; ++l)
-           xoff1[l - 1] += fNumPads[l + kk - 1];
-         xx += dbox;
-       }
-       
-       if (kdet == 1) kk = 1; else kk=0;
-       
-       for (l = 1; l <= 3; ++l)
-         yoff1[l - 1] += fNumPads[l + kk - 1];
-       yy += dbox;
-  }
-}
-
-//_____________________________________________________________________________
-void AliPMDv0::Coordinates()
-{
-  //
-  //  SUBROUTINE TO COMPUTE THE X- AND Y- COORDINATES OF THE BOXES 
-  //  WHICH CAN FIT INTO THE CIRCULAR REGION BETWEEN THE GIVEN ANGLES. 
-  //  INPUT : ZDIST, THMIN, THMAX, PADSIZE (FOR INSIDE and OUTSIDE PMD). 
-  //  ALL DIMENSIONS IN CM. 
-  // -- Author :       Y.P. VIYOGI, 10/05/1996. 
-
-  Float_t hole, dmax, dbox;
-  Int_t nhol;
-  Float_t dist;
-  Int_t nbox;
-  Float_t rlow;
-  Int_t i, j;
-  Float_t rhigh, rr, xx, yy, th1, th2;
-  
-  th1 = thmin*kPI/180;
-  th2 = thmax*kPI/180;
-  // ESTIMATES FOR OCTAGON 
-  dist = zdist * TMath::Tan(th2);
-  // ***  04.06.97 Fixed Module size of 24 cm, 3 mm boundary. 
-  // ***  variable pad sizes of 8 mm, 10 mm, 12mm and 15 mm 
-  dbox   = edge*2 + 24.;
-  maxbox = Int_t(dist / dbox + .5);
-  dmax   = maxbox*dbox;
-  // NOW GET THE HOLE SIZE ETC. 
-  hole = zdist * TMath::Tan(th1);
-  nhol = Int_t(hole / dbox + .5);
-  hole = nhol * dbox;
-  
-  rlow  = zdist * TMath::Tan(thlow*kPI/180);
-  rhigh = zdist * TMath::Tan(thhigh*kPI/180);
-  for (i = 0; i < 40; ++i) {
-    for (j = 0; j < 40; ++j) {
-      pindex[j][i] = 0;
-      xbox[j][i]   = 0;
-      ybox[j][i]   = 0;
-    }
-  }
-  
-  //  NOW START PLACING THE BOXES IN VARIOUS LAYERS, START FROM THE CENTRE 
-  yy   = dbox / 2;
-    nbox = 0;
-    for (i = 0; i < maxbox; ++i) {
-      xx = dbox / 2;
-      for (j = 0; j < maxbox; ++j) {
-       rr = TMath::Sqrt(xx*xx + yy*yy);
-       if (rr >= hole && rr <= dmax) {  //  BOX CAN BE FITTED 
-         pindex[j][i] = 2;
-         if (rr < rlow)  pindex[j][i] = 1;
-         if (rr > rhigh) pindex[j][i] = 3;
-         xbox[j][i] = xx;
-         ybox[j][i] = yy;
-         ++nbox;
-       }
-       xx += dbox;
-      }
-      yy += dbox;
-    }
-}
-//_____________________________________________________________________________
-void AliPMDv0::CreateGeometry()
-{
-  //
-  // Create geometry for Photon Multiplicity Detector Version 1
-  //
-  //Begin_Html
-  /*
-    <img src="picts/AliPMDv0.gif">
-  */
-  //End_Html
-  //Begin_Html
-  /*
-    <img src="picts/AliPMDv0Tree.gif">
-  */
-  //End_Html
-  CreatePads();
-  CreateInside();
-}
-//_____________________________________________________________________________
-void AliPMDv0::CreateInside()
-{
-  //
-  // Create inside of Pads
-  //
-  // -- Author :     Y.P. VIYOGI, 07/05/1996. 
-  // -- Modified:    P.V.K.S.Baba(JU), 15-12-97. 
-  
-  Float_t sipmd[3] = { 300.,300.,5. };
-  
-  Int_t i2;
-  
-  Float_t xiqa[4], yiqa[4];
-  Int_t inum2, inum3, inum4, i, j, k;
-  Float_t siqad[4];
-  Float_t zd, xd, yd, xp, yp, zp;
-  Int_t idrotm[100];
-  
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  
-  //  VOLUMES Names : begining with D for all PMD volumes, 
-  // The names of SIZE variables begin with S and have more meaningful
-  // characters as shown below. 
-  
-  //           VOLUME  SIZE    MEDIUM  :       REMARKS 
-  //           ------  -----   ------  : --------------------------- 
-  
-  //           DPMD    SIPMD   AIR     : INSIDE PMD  and its SIZE 
-  
-  
-  
-  // *** Define the  DPMD   Volume and fill with air *** 
-
-  gMC->Gsvolu("DPMD", "BOX ", idtmed[698], sipmd, 3);
-  
-  // *** Define DIQU Volume and fill with air 
-  siqad[0] = sipmd[0] / 2. - 1.;
-  siqad[1] = sipmd[1] / 2. - 1.;
-  siqad[2] = sipmd[2];
-  gMC->Gsvolu("DIQU","BOX ", idtmed[698], siqad, 3);
-  gMC->Gsatt("DIQU", "SEEN", 1);
-  
-  
-  // --- Place the modules in INSIDE PMD (DPMD) 
-  // --- FIRST CALCULATE THE COORDINATES OF THE MODULES WHICH CAN BE 
-  // --- ACCOMODATED. 
-  
-  kdet = 1;
-  Coordinates();
-  
-  //inum = 0;
-  zd   = 0.;
-  AliMatrix(idrotm[1], 90., 0.,   90.,  90., 0., 0.);
-  AliMatrix(idrotm[2], 90., 180., 90.,  90., 0., 0.);
-  AliMatrix(idrotm[3], 90., 180., 90., 270., 0., 0.);
-  AliMatrix(idrotm[4], 90., 0.,   90., 270., 0., 0.);
-  // ****  Filling the DIQU Vol. (One Quadrant) 
-  inum2 = 0;
-  inum3 = 0;
-    inum4 = 0;
-    for (i = 0; i < maxbox; ++i) {
-      i2 = maxbox;
-      for (j = 0; j < i2; ++j) {
-       if (xbox[j][i] <= 0 && ybox[j][i] <= 0) continue;
-       xd = xbox[j][i] - siqad[0];
-       yd = ybox[j][i] - siqad[1];
-       if (pindex[j][i] == 1) {
-         ++inum2;
-         gMC->Gsposp("DM11", inum2, "DIQU", xd, yd, zd, 0, "ONLY", smod2, 3);
-       }
-       if (pindex[j][i] == 2) {
-         ++inum3;
-         gMC->Gsposp("DM12", inum3, "DIQU", xd, yd, zd, 0, "ONLY", smod3, 3);
-       }
-       if (pindex[j][i] == 3) {
-         ++inum4;
-         gMC->Gsposp("DM13", inum4, "DIQU", xd, yd, zd, 0, "ONLY", smod4, 3);
-       }
-      }
-    }
-    xiqa[0] = siqad[0];
-    xiqa[1] = -siqad[0];
-    xiqa[2] = xiqa[1];
-    xiqa[3] = xiqa[0];
-    yiqa[0] = siqad[0];
-    yiqa[1] = yiqa[0];
-    yiqa[2] = -siqad[0];
-    yiqa[3] = yiqa[2];
-    i2      = numqu;
-    for (k = 1; k <= i2; ++k) {
-      gMC->Gsposp("DIQU", k, "DPMD", xiqa[k-1], yiqa[k-1], zd, idrotm[k], "ONLY", siqad, 3);
-    }
-    
-    // --- Place the DPMD in ALICE with front edge 6.0m from vertex  --- 
-    xp = 0.;
-    yp = 0.;
-    zp = zdist1;
-    gMC->Gspos("DPMD", 1, "ALIC", xp, yp, zp, 0, "ONLY");
-    
-}
-
-//_____________________________________________________________________________
-void AliPMDv0::CreatePads()
-{
-  //
-  // Create the geometry of the pads
-  // *** DEFINITION OF THE GEOMETRY OF THE PMD  *** 
-  // *** DIFFERENT PADS WITH SIZES 8 MM, 10 MM, 12 MM AND 15 MM SQUARE 
-  // -- Author :     Y.P. VIYOGI, 04/06/1997. 
-  // -- Modified:    P.V.K.S.Baba(JU), 13-12-97. 
-  
-  Int_t npad2;
-  Float_t /* scpv1[3], */ scpv2[3] /*, scpv3[3], scpv4[3] */;
-  Float_t  spsw1[3], spsw2[3];//, spsw3[3], spsw4[3];
-  Float_t  sw[3], xc, yc, zc;
-  Float_t sfe[3];
-  Float_t spb[3], pad1, pad2, pad3, pad4;
-  //  VOLUMES Names : begining with D for all PMD volumes, 
-  
-  //     DM11 : MODULE TYPE 
-  
-  // The names of SIZE variables begin with S and have more meaningful
-  // characters as shown below. 
-  
-  //           VOLUME  SIZE    MEDIUM  :       REMARKS 
-  //           ------  -----   ------  : --------------------------- 
-  
-  //           DPPB    SPB     PB      : PB Converter and its SIZE 
-  //           DPFE    SFE     FE      : FE Support Plate and its SIZE 
-  
-  //               DW11    SPSW3   G10     : PRESHOWER 
-  //               DV11    SCPV3   G10     : CPV 
-  //     ****************** VOLUME TREE ****************** 
-  
-  //                   DM11 (Module) 
-  //                          | 
-  //                          | 
-  //   ------------------------------------------------- 
-  //       |             |               |                 | 
-  //       |             |               |                 | 
-  //    DV11( CPV)      DPFE            DPPB              DW11(Preshower) 
-  //    ************************************************************ 
-  
-  
-  
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  
-  thgas  = fPar[2];
-  thmin  = fIn[0];
-  thmax  = fIn[1];
-  zdist1  = fIn[2];
-  zdist  = TMath::Abs(zdist1);
-  thlow  = fIn[3];
-  thhigh = fIn[4];
-  edge   = fGeo[1];
-  numqu  = Int_t(fGeo[2]);
-  
-  pad1  = fPadSize[0];
-  pad2  = fPadSize[1];
-  pad3  = fPadSize[2];
-  pad4  = fPadSize[3];
-  npad2 = Int_t(24/fPadSize[1]);
-  
-  spsw2[0] = (npad2 * pad2)/2 + edge;
-  spsw2[1] = spsw2[0];
-  spsw2[2] = (thgas + .4) / 2;
-  scpv2[0] = spsw2[0];
-  scpv2[1] = spsw2[1];
-  scpv2[2] = spsw2[2];
-// The modules (DW11 and DV11 are filed with gas, G10 plate is ignored)
-  gMC->Gsvolu("DW11","BOX ", idtmed[604], spsw2, 3);
-  gMC->Gsatt("DW11", "SEEN", 1);
-  gMC->Gsvolu("DV11","BOX ", idtmed[604], spsw2, 3);
-  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];
-  spb[1] = spsw1[1];
-  spb[2] = .75;
-  gMC->Gsvolu("DPPB","BOX ", idtmed[600], spb, 3);
-  gMC->Gsatt("DPPB", "SEEN", 1);
-  
-  sw[0] = spsw1[0];
-  sw[1] = spsw1[1];
-  sw[2] = 0.9/2.;
-  gMC->Gsvolu("DPW ","BOX ", idtmed[600], sw, 3);
-  gMC->Gsatt("DPW ", "SEEN", 1);
-  
-  sfe[0] = spsw1[0];
-  sfe[1] = spsw1[1];
-  sfe[2] = 0.6/2.;
-  gMC->Gsvolu("DPFE","BOX ", idtmed[605], sfe, 3);
-  gMC->Gsatt("DPFE", "SEEN", 1);
-  
-  smod2[0] = spsw2[0];
-  smod2[1] = smod2[0];
-  smod2[2] = spsw2[2] + sfe[2] + spb[2] + scpv2[2];
-  gMC->Gsvolu("DM11", "BOX ", idtmed[698], smod2, 3);
-  
-  // ---  place gas box (as CPV), iron support, lead converter and gas box 
-  // ---  (preshower) in the module 
-  xc = 0.;
-  yc = 0.;
-  // --- First the CPV box 
-  zc = -(spsw2[2] + sfe[2] + spb[2] + spsw2[2]) + spsw2[2];
-  gMC->Gspos("DV11", 1, "DM11", xc, yc, zc, 0, "ONLY");
-  // --- Then iron support plate 
-  zc = zc + sfe[2] + spsw2[2];
-  gMC->Gspos("DPFE", 1, "DM11", xc, yc, zc, 0, "ONLY");
-  // --- Then lead converter plate 
-  zc = zc + sfe[2] + spb[2];
-  gMC->Gspos("DPPB", 1, "DM11", xc, yc, zc, 0, "ONLY");
-  // --- Lastly the preshower box 
-  zc = zc + spb[2] + spsw2[2];
-  gMC->Gspos("DW11", 1, "DM11", xc, yc, zc, 0, "ONLY");
-  
-}
-//_____________________________________________________________________________
-void AliPMDv0::DrawModule()
-{
-  //
-  // Draw a shaded view of the Photon Multiplicity Detector
-  //
-
-  gMC->Gsatt("*", "seen", -1);
-  gMC->Gsatt("alic", "seen", 0);
-  //
-  // Set the visibility of the components
-  // 
-  gMC->Gsatt("DW11","seen",0);
-  gMC->Gsatt("DV11","seen",0);
-  gMC->Gsatt("DPPB","seen",1);
-  gMC->Gsatt("DPW ","seen",1); 
-  gMC->Gsatt("DPFE","seen",1);
-  gMC->Gsatt("DM11","seen",1);
-  gMC->Gsatt("DPMD","seen",0);
-  gMC->Gsatt("DIQU","seen",0);
-  //
-  gMC->Gdopt("hide", "on");
-  gMC->Gdopt("shad", "on");
-  gMC->Gsatt("*", "fill", 7);
-  gMC->SetClipBox(".");
-  gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
-  gMC->DefaultRange();
-  gMC->Gdraw("alic", 40, 30, 0, 22, 15.5, .04, .04);
-  gMC->Gdhead(1111, "Photon Multiplicity Detector Version 1");
-  gMC->Gdman(17, 5, "MAN");
-  gMC->Gdopt("hide", "off");
-}
-
-//_____________________________________________________________________________
-void AliPMDv0::CreateMaterials()
-{
-  //
-  // Create materials for the PMD version 1
-  //
-  // ORIGIN    : Y. P. VIYOGI 
-  //
-  
-  // --- The Argon- CO2 mixture --- 
-  Float_t ag[2] = { 39.95 };
-  Float_t zg[2] = { 18. };
-  Float_t wg[2] = { .8,.2 };
-  Float_t dar   = .001782;   // --- Ar density in g/cm3 --- 
-  // --- CO2 --- 
-  Float_t ac[2] = { 12.,16. };
-  Float_t zc[2] = { 6.,8. };
-  Float_t wc[2] = { 1.,2. };
-  Float_t dc    = .001977;
-  Float_t dco   = .002;  // --- CO2 density in g/cm3 ---
-  
-  Float_t absl, radl, a, d, z;
-  Float_t dg;
-  Float_t x0ar;
-  Float_t buf[1];
-  Int_t nbuf;
-  
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  Int_t isxfld = gAlice->Field()->Integ();
-  Float_t sxmgmx = gAlice->Field()->Max();
-  
-  // --- Define the various materials for GEANT --- 
-  AliMaterial(1, "Pb    $", 207.19, 82., 11.35, .56, 18.5);
-  x0ar = 19.55 / dar;
-  AliMaterial(2, "Argon$", 39.95, 18., dar, x0ar, 6.5e4);
-  AliMixture(3, "CO2  $", ac, zc, dc, -2, wc);
-  AliMaterial(4, "Al   $", 26.98, 13., 2.7, 8.9, 18.5);
-  AliMaterial(6, "Fe   $", 55.85, 26., 7.87, 1.76, 18.5);
-  AliMaterial(7, "W    $", 183.85, 74., 19.3, .35, 10.3);
-  AliMaterial(8, "G10  $", 20., 10., 1.7, 19.4, 999);
-  AliMaterial(9, "SILIC$", 28.09, 14., 2.33, 9.36, 45.);
-  AliMaterial(10, "Be   $", 9.01, 4., 1.848, 35.3, 36.7);
-  AliMaterial(15, "Cu   $", 63.54, 29., 8.96, 1.43, 15.);
-  AliMaterial(16, "C    $", 12.01, 6., 2.265, 18.8, 49.9);
-  
-  AliMaterial(96, "MYLAR$", 8.73, 4.55, 1.39, 28.7, 62.);
-  AliMaterial(97, "CONCR$", 20., 10., 2.5, 10.7, 40.);
-  AliMaterial(98, "Vacum$", 1e-9, 1e-9, 1e-9, 1e16, 1e16);
-  AliMaterial(99, "Air  $", 14.61, 7.3, .0012, 30420., 67500.);
-  
-  //   define gas-mixtures 
-  
-  char namate[21];
-  gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf);
-  ag[1] = a;
-  zg[1] = z;
-  dg = (dar * 4 + dco) / 5;
-  AliMixture(5, "ArCO2$", ag, zg, dg, 2, wg);
-  
-  // Define tracking media 
-  AliMedium(1, "Pb conv.$", 1,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(7, "W  conv.$", 7,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(8, "G10plate$", 8,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(4, "Al      $", 4,  0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(6, "Fe      $", 6,  0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(5, "ArCO2   $", 5,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
-  AliMedium(9, "SILICON $", 9,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
-  AliMedium(10, "Be      $", 10, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(98, "Vacuum  $", 98, 0, 0, isxfld, sxmgmx, 1., .1, .1,  10);
-  AliMedium(99, "Air gaps$", 99, 0, 0, isxfld, sxmgmx, 1., .1, .1,  .1);
-  AliMedium(15, "Cu      $", 15, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(16, "C       $", 16, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  
-  // --- Generate explicitly delta rays in the iron, aluminium and lead --- 
-  gMC->Gstpar(idtmed[600], "LOSS", 3.);
-  gMC->Gstpar(idtmed[600], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[603], "LOSS", 3.);
-  gMC->Gstpar(idtmed[603], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[604], "LOSS", 3.);
-  gMC->Gstpar(idtmed[604], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[605], "LOSS", 3.);
-  gMC->Gstpar(idtmed[605], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[606], "LOSS", 3.);
-  gMC->Gstpar(idtmed[606], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[607], "LOSS", 3.);
-  gMC->Gstpar(idtmed[607], "DRAY", 1.);
-  
-  // --- Energy cut-offs in the Pb and Al to gain time in tracking --- 
-  // --- without affecting the hit patterns --- 
-  gMC->Gstpar(idtmed[600], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTHAD", 1e-4);
-  
-  // --- Prevent particles stopping in the gas due to energy cut-off --- 
-  gMC->Gstpar(idtmed[604], "CUTGAM", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTELE", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTNEU", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTHAD", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTMUO", 1e-5);
-}
-
-//_____________________________________________________________________________
-void AliPMDv0::Init()
-{
-  //
-  // Initialises PMD detector after it has been built
-  //
-  Int_t i;
-  kdet=1;
-  //
-  printf("\n");
-  for(i=0;i<35;i++) printf("*");
-  printf(" PMD_INIT ");
-  for(i=0;i<35;i++) printf("*");
-  printf("\n");
-  printf("                 PMD simulation package initialised\n");
-  printf(" parameters of pmd\n");
-  printf("%6d %10.2f %10.2f %10.2f %10.2f %10.2f\n",kdet,thmin,thmax,zdist,thlow,thhigh);
-  //
-  for(i=0;i<80;i++) printf("*");
-  printf("\n");
-  //
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  fMedSens=idtmed[605-1];
-}
-
-//_____________________________________________________________________________
-void AliPMDv0::StepManager()
-{
-  //
-  // Called at each step in the PMD
-  //
-  Int_t   copy;
-  Float_t hits[4], destep;
-  Float_t center[3] = {0,0,0};
-  Int_t   vol[5];
-  const char* namep;
-  
-  if(gMC->GetMedium() == fMedSens && (destep = gMC->Edep())) {
-    
-    gMC->CurrentVolID(copy);
-    vol[0]=copy;
-    gMC->CurrentVolOffID(1,copy);
-    vol[1]=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->CurrentVolOffID(3,copy);
-    vol[3]=copy;
-    gMC->CurrentVolOffID(4,copy);
-    vol[4]=copy;
-    gMC->Gdtom(center,hits,1);
-    hits[3] = destep*1e9; //Number in eV
-    AddHit(gAlice->CurrentTrack(), vol, hits);
-  }
-}
diff --git a/PMD/AliPMDv0.h b/PMD/AliPMDv0.h
deleted file mode 100644 (file)
index 648a1cc..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef PMDv0_H
-#define PMDv0_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//////////////////////////////////////////////////////////
-//  Manager and hits classes for set:PMD  version 0     //
-//////////////////////////////////////////////////////////
-#include "AliPMD.h"
-class AliPMDv0 : public AliPMD {
-
-private:
-  Int_t fMedSens;
-  
-public:
-  AliPMDv0();
-  AliPMDv0(const char *name, const char *title);
-  virtual      ~AliPMDv0() {}
-  virtual void  Coordinates();
-  virtual void  Coordnew();
-  virtual void  CreateGeometry();
-  virtual void  CreateInside();
-  virtual void  CreatePads();
-  virtual void  CreateMaterials();
-  virtual void  Init();
-  virtual Int_t IsVersion() const {return 0;}
-  virtual void  StepManager();
-  virtual void  DrawModule();
-   ClassDef(AliPMDv0,1)  //Hits manager for set:PMD
-};
-#endif
diff --git a/PMD/AliPMDv1.cxx b/PMD/AliPMDv1.cxx
deleted file mode 100644 (file)
index c57e7d9..0000000
+++ /dev/null
@@ -1,701 +0,0 @@
-/**************************************************************************
- * 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.8  2000/06/09 10:31:36  hristov
-sqrt changed to TMath::Sqrt
-
-Revision 1.7  1999/11/03 18:01:40  fca
-Remove non orthogonal unused matrix
-
-Revision 1.6  1999/09/29 09:24:28  fca
-Introduction of the Copyright and cvs Log
-
-*/
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  Photon Multiplicity Detector Version 1                                   //
-//                                                                           //
-//Begin_Html
-/*
-<img src="picts/AliPMDv1Class.gif">
-*/
-//End_Html
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-////
-#include "AliPMDv1.h"
-#include "AliRun.h"
-#include "AliMC.h" 
-#include "AliConst.h" 
-#include "AliMagF.h"
-
-static Int_t maxbox, kdet;
-static Float_t thmin,thmax,zdist,zdist1,thlow,thhigh;
-
-ClassImp(AliPMDv1)
-//_____________________________________________________________________________
-AliPMDv1::AliPMDv1()
-{
-  //
-  // Default constructor 
-  //
-  fMedSens=0;
-}
-//_____________________________________________________________________________
-AliPMDv1::AliPMDv1(const char *name, const char *title)
-  : AliPMD(name,title)
-{
-  //
-  // Standard constructor
-  //
-  fMedSens=0;
-}
-//_____________________________________________________________________________
-void AliPMDv1::CreateGeometry()
-{
-  //
-  // Create geometry for Photon Multiplicity Detector Version 1
-  //
-  //Begin_Html
-  /*
-    <img src="picts/AliPMDv1.gif">
-  */
-  //End_Html
-  //Begin_Html
-  /*
-    <img src="picts/AliPMDv1Tree.gif">
-  */
-  //End_Html
-  CreatePads();
-  CreateInside();
-}
-//_____________________________________________________________________________
-void AliPMDv1::CreateInside()
-{
-  //
-  // Create inside of Pads
-  //
-  // -- Author :     Y.P. VIYOGI, 07/05/1996. 
-  // -- Modified:    P.V.K.S.Baba(JU), 15-12-97. 
-// Sipmd, the dimension of TUBE mother volume of PMD, other dimensions
-// like sip01.. are to place more tubes in the volume at different eta bins.  
-  
-//  Float_t sipmd[3] = { 40.,270.,15.};
-// ORG  Float_t sipmd[3] = { 0.,130.,15.};
-  Float_t sipmd[3] = { 0.,150.,15.};
-
-  //  Float_t sip01[3] = { 10.,57.89,25.};
-  //Float_t sip02[3] = { 10.,64.03,25.};
-  //Float_t sip03[3] = { 10.,70.80,25.};
-  //Float_t sip04[3] = { 10.,78.32,25.};
-  //Float_t sip05[3] = { 10.,86.68,25.};
-  //Float_t sip06[3] = { 10.,95.91,25.};
-  //Float_t sip07[3] = { 10.,106.14,25.};
-  //Float_t sip08[3] = { 10.,117.48,25.};
-  //Float_t sip09[3] = { 10.,130.18,25.};
-  //Float_t sip10[3] = { 10.,144.18,25.};
-  //Float_t sip11[3] = { 10.,159.87,25.};
-  //Float_t sip12[3] = { 10.,177.43,25.};
-  //Float_t sip13[3] = { 10.,197.11,25.};
-  //Float_t sip14[3] = { 10.,219.28,25.};
-  //Float_t sipmdl[5] = { 10.,310.,25.,90.,270. };
-  //Float_t sipmdr[5] = { 10.,310.,25.,270.,90. };
-  
-  const Float_t root3_4 = TMath::Sqrt(3.)/4.;
-  const Float_t root3_2 = TMath::Sqrt(3.)/2.;
-  //  Float_t xiqa[4], yiqa[4];
-  Int_t i;
-  //  Float_t siqad[4];
-  Float_t  xp, yp, zp;
-  //  Int_t idrotm[100];
-  Int_t num_mod;
-  Int_t jhrotc,jhrotac;
-
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  
-  //  VOLUMES Names : begining with D for all PMD volumes, 
-  // The names of SIZE variables begin with S and have more meaningful
-  // characters as shown below. 
-  
-  //           VOLUME  SIZE    MEDIUM  :       REMARKS 
-  //           ------  -----   ------  : --------------------------- 
-  
-  //           DPMD    SIPMD   AIR     : INSIDE PMD  and its SIZE 
-  
-  
-  
-  // *** Define the  DPMD   Volume and fill with air *** 
-
-  gMC->Gsvolu("DPMD", "TUBE", idtmed[698], sipmd, 3);
-  gMC->Gsatt("DPMD", "SEEN", 0);
-
-
-  //  gMC->Gsvolu("PM01", "TUBE", idtmed[698], sip01, 3);
-  //gMC->Gsvolu("PM02", "TUBE", idtmed[698], sip02, 3);
-  //gMC->Gsvolu("PM03", "TUBE", idtmed[698], sip03, 3);
-  //gMC->Gsvolu("PM04", "TUBE", idtmed[698], sip04, 3);
-  //gMC->Gsvolu("PM05", "TUBE", idtmed[698], sip05, 3);
-  //gMC->Gsvolu("PM06", "TUBE", idtmed[698], sip06, 3);
-  //gMC->Gsvolu("PM07", "TUBE", idtmed[698], sip07, 3);
-  //gMC->Gsvolu("PM08", "TUBE", idtmed[698], sip08, 3);
-  //gMC->Gsvolu("PM09", "TUBE", idtmed[698], sip09, 3);
-  //gMC->Gsvolu("PM10", "TUBE", idtmed[698], sip10, 3);
-  //gMC->Gsvolu("PM11", "TUBE", idtmed[698], sip11, 3);
-  //gMC->Gsvolu("PM12", "TUBE", idtmed[698], sip12, 3);
-  //gMC->Gsvolu("PM13", "TUBE", idtmed[698], sip13, 3);
-  //gMC->Gsvolu("PM14", "TUBE", idtmed[698], sip14, 3);
-  //gMC->Gsvolu("PMDL", "TUBS", idtmed[698], sipmdl, 5);
-  //gMC->Gsvolu("PMDR", "TUBS", idtmed[698], sipmdr, 5);
-//  
-  const Int_t npad2=72; 
-  const Float_t boundary=0.0;
-  const Float_t offset=0.05;
-
-  // hexd1 array contains parameters of unit cell (polygon with 6 sides)
-  // new cells having 64 sq.mm. area
-  Float_t hexd1[10] = {0.,360.,6,2,-0.25,0.,0.25,0.25,0.,0.25};
-  //  Float_t hexd1[10] = {0.,360.,6,2,-0.4,0.,0.40,0.4,0.,0.40};
-  // dpara_sm array contains parameters of Supermodule rhombus
-  Float_t dpara_sm[6] = {12.5,12.5,0.8,30.,0.,0.};
-  //suprmodule side is 2*7 mm bigger than the total size of 72 cells array.
-  dpara_sm[0]=(npad2+0.25)*hexd1[6] + boundary; 
-  dpara_sm[1] = dpara_sm[0] *root3_2;
-  //dpara_dm11 array contains parameters of the imaginary volume DM11, this is just a
-  // little more than the side of a supermodule. total side = 2*39 cm.
-  Float_t dpara_dm11[6] = {12.5,12.5,0.8,30.,0.,0.};
-  dpara_dm11[0]=dpara_sm[0] + offset;
-  dpara_dm11[1] = dpara_dm11[0] *root3_2;
-  dpara_dm11[2]= 6.2/2.;
-//
-  Float_t dpara_hole[6] = {12.5,12.5,0.8,30.,0.,0.};
-  dpara_hole[0]=dpara_dm11[0]/3.;
-  dpara_hole[1] = dpara_hole[0] *root3_2;
-  dpara_hole[2]= 6.2/2.;
-  gMC->Gsvolu("HOLE", "PARA", idtmed[698], dpara_hole, 6);
-  gMC->Gsatt("HOLE", "SEEN", 1);
-
-//
-
-  AliMatrix(jhrotc, 90., 30.,   90.,  120., 0., 0.);
-  AliMatrix(jhrotac, 90., 330., 90., 240., 0., 0.);
-
-  // delx = full side of the supermodule 78 cm.
-  Float_t delx=2*dpara_dm11[0];
-  Float_t x1= delx*root3_4;
-  Float_t x2= delx*root3_4 + delx*root3_2;
-  Float_t x3= delx*root3_4 + 2*delx*root3_2;
-  // xpos are the x-coordinates of the centres of 13 supermodules on the left half of the 
-  // PMD. Numbering of the boxes are : 
-  // starting from the bottom part of the first column
-  // 1,2,3,4,5,6 (going downwards), then second column from bottom, 7,8,9,10,11
-  // then third 
-  // cloumn from top 12,13,14,15.
-
-  Float_t xpos[15]={-x1,-x1,-x1,-x1,-x1,-x1,-x2,-x2,-x2,-x2,-x2,-x3,-x3,-x3,-x3};
-
-  Float_t x4=delx/4.; 
-
-  // ypos are the y-coordinates of the 13 supermodules (identical for both halves).
-
-  //  Float_t ypos[15]={(x4+2*delx),(x4+delx),x4,(x4-delx),x4-2*delx,
-  //x4-3*delx,-x4,-x4-delx,-x4-2*delx,-3*x4-delx,-x4-delx/2.,-3*x4+delx,-3*x4+2  //*delx};
-
-  Float_t ypos[15];
-  ypos[2]=x4;
-  ypos[1]=ypos[2]+delx;
-  ypos[0]=ypos[1]+delx;
-
-  ypos[3]=ypos[2]-delx;
-  ypos[4]=ypos[3]-delx;
-  ypos[5]=ypos[4]-delx;
-
-  ypos[6]=ypos[5]+delx/2;
-  ypos[7]=ypos[6]+delx;
-  ypos[8]=ypos[7]+delx;
-  ypos[9]=ypos[8]+delx;
-  ypos[10]=ypos[9]+delx;
-
-  ypos[11]=ypos[1];
-  ypos[12]=ypos[2];
-  ypos[13]=ypos[3];
-  ypos[14]=ypos[4];
-
-
-  //    for (i = 0; i < 2; ++i) {
-  //      num_mod=i+1;
-  //gMC->Gsposp("DM11", num_mod, "DPMD", xpos[i],ypos[i],0., jhrotac, "ONLY", dpara_dm11, 6);
-  // gMC->Gsposp("DM11", num_mod+13, "DPMD", TMath::Abs(xpos[i]),ypos[i],0., jhrotc, "ONLY", dpara_dm11, 6);
-  //printf("Num_mod %d\n",num_mod);
-  //   }
-
-   maxbox=15;
-    for (i = 0; i < maxbox; ++i) {
-        num_mod=i+1;
-  gMC->Gsposp("DM11", num_mod, "DPMD", xpos[i],ypos[i],0., jhrotc, "ONLY", dpara_dm11, 6);
-  gMC->Gsposp("DM11", num_mod+15, "DPMD", TMath::Abs(xpos[i]),ypos[i],0., jhrotac, "ONLY", dpara_dm11, 6);
-    printf("Num_mod %d\n",num_mod);
-       }
-
-    // place four unit modules to create a hole of air.
-    Float_t xhole = dpara_hole[0]*root3_2;
-    Float_t yhole = dpara_hole[0]/2;
-  gMC->Gsposp("HOLE", 1, "DPMD", -xhole, yhole, 0., jhrotc, "ONLY", dpara_hole, 6);
-  gMC->Gsposp("HOLE", 3, "DPMD", xhole, yhole ,0., jhrotac, "ONLY", dpara_hole, 6);
-  yhole=yhole-dpara_hole[0]*2;
-
-  gMC->Gsposp("HOLE", 2, "DPMD", -xhole, yhole, 0., jhrotc, "ONLY", dpara_hole, 6);
-  gMC->Gsposp("HOLE", 4, "DPMD", xhole, yhole ,0., jhrotac, "ONLY", dpara_hole, 6);
-
-
-//  gMC->Gspos("PM01", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM02", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM03", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM04", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM05", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM06", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM07", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM08", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM09", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM10", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM11", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM12", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM13", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-//  gMC->Gspos("PM14", 1, "DPMD", 0.,0.,0., 0, "ONLY");
-// --- Place the DPMD in ALICE with front edge 5.8m from vertex  --- 
-    xp = 0.;
-    yp = 0.;
-    zp = zdist1;
-//  gMC->Gspos("PMDL", 1, "DPMD", xp,yp,0., 0, "ONLY");
-//  gMC->Gspos("PMDR", 1, "DPMD", xp,yp,0., 0, "ONLY");
-  gMC->Gspos("DPMD", 1, "ALIC", xp,yp,zp, 0, "ONLY");
-    
-}
-
-//_____________________________________________________________________________
-void AliPMDv1::CreatePads()
-{
-  //
-  // Create the geometry of the pads
-  // *** DEFINITION OF THE GEOMETRY OF THE PMD  *** 
-  // *** HEXAGONAL PADS WITH 10 MM SQUARE EQUIVALENT
-  // -- Author :     S. Chattopadhyay, 02/04/1999. 
-
-// Basic unit is DP11, a hexagonal cell, which is placed inside another 
-// hexagonal cell (DS11) of larger radius, compared to DP11. The difference in r// adius gives the dimension of half width of each cell wall.
-// These cells are placed as 72 x 72 array in a 
-// rhombus shaped supermodule (DW11). The rhombus shaped modules are designed
-// to have closed packed structure.
-// Each supermodule (SUPR), made of G10 is filled with following components
-//  SMSS --> SS backing,
-//  SMAR --> Gap between gas hexagonal cells and G10 backing.
-//  DW11 --> Ar-Co2 filled gas hexagonal cells.
-//  SMAR
-// These supermodules are placed inside the main module (DM11), with Fe and 
-// Pb converter positioned between CPV and PMD.
-//  DM11 made of
-// SUPR (rotated to place steel on the other side), this works as preshower
-// when PMD is placed in -ve z.
-// SUPB --> Pb converter
-// SUFE --> Fe backing
-// SUPR --> supermodule without rotation (this acts as CPV).
-// 
-  
-  const Int_t npad2 = 72;
-  Float_t hexd1[10] = {0.,360.,6,2,-0.25,0.,0.25,0.25,0.,0.25};
-//total wall thickness=0.2*2
-  Float_t hexd2[10] = {0.,360.,6,2,-0.25,0.,0.23,0.25,0.,0.23};
-  Int_t i, j;
-  Float_t xb, yb, zb;//, sw[3];
-  Int_t number;
-  Int_t ihrotm,irotdm;
-  const Float_t root3_cons = TMath::Sqrt(3.) /2.; 
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  AliMatrix(ihrotm, 90., 30.,   90.,  120., 0., 0.);
-  AliMatrix(irotdm, 90., 180.,  90.,  270., 180., 0.);
-  zdist1  = fIn[2];
-  zdist = TMath::Abs(zdist1);
-//
-  Int_t xrow=1;
-  Float_t dpara[6] = {12.5,12.5,0.4,30.,0.,0.};
-  dpara[0]=(npad2+0.25)*hexd1[6];
-  dpara[1] = dpara[0] *root3_cons;
-//
-//Subhasis, dimensional parameters of rhombus (dpara) as given to gsvolu
-// rhombus to accomodate 72 x 72 hexagons, and with total 1.2cm extension  
-//(1mm tolerance on both side and 5mm thick G10 wall)
-// 
-  
-// **** PAD SIZE 10 MM SQUARE EQUIVALENT
-//
-// Inner hex filled with gas
-  gMC->Gsvolu("DP11", "PGON", idtmed[604], hexd2,10);
-  gMC->Gsatt("DP11", "SEEN", 0);
-
-// Outer hex filled with Plastic
-//plastic  gMC->Gsvolu("DS11", "PGON", idtmed[616], hexd1,10);
-// Iron
-  gMC->Gsvolu("DS11", "PGON", idtmed[614], hexd1,10);
-  gMC->Gsatt("DS11", "SEEN", 0);
-// --- place  inner hex inside outer hex 
-    gMC->Gsposp("DP11", 1, "DS11", 0., 0., 0., 0, "ONLY", hexd2, 10);
-// Rhombus shaped supermodules (defined by PARA)
-// volume for SUPERMODULE 
-  const Float_t boundary=0.0;
-  const Float_t offset=0.05;
-
-  Float_t dpara_sm[6] = {12.5,12.5,0.8,30.,0.,0.};
-  dpara_sm[0]=(npad2+0.25)*hexd1[6] + boundary;
-  dpara_sm[1] = dpara_sm[0] *root3_cons;
-//  
-  gMC->Gsvolu("SUPR","PARA", idtmed[607], dpara_sm, 6);
-  gMC->Gsatt("SUPR", "SEEN", 0);
-//  SS 
-  Float_t dpara_ss[6] = {12.5,12.5,8.,30.,0.,0.};
-  dpara_ss[0]= dpara[0];
-  dpara_ss[1]= dpara[1];
-  dpara_ss[2]= 0.15/2.;
-//
-  gMC->Gsvolu("SMSS","PARA", idtmed[601], dpara_ss, 6);
-  gMC->Gsatt("SMSS", "SEEN", 0);
-// Air 
-  Float_t dpara_air[6] = {12.5,12.5,8.,30.,0.,0.};
-  dpara_air[0]= dpara[0] - 0.5;
-  dpara_air[1]= dpara_air[0] * root3_cons;
-  dpara_air[2]= 0.1/2.;
-//  gMC->Gsvolu("SMAR","PARA", idtmed[604], dpara_air, 6);
-  gMC->Gsvolu("SMAR","PARA", idtmed[698], dpara_air, 6);
-  gMC->Gsatt("SMAR", "SEEN", 0);
-//  
-// volume for gas chamber (DW11)
-//  
-//  gMC->Gsvolu("DW11","PARA", idtmed[604], dpara, 6);
-  gMC->Gsvolu("DW11","PARA", idtmed[698], dpara, 6);
-  gMC->Gsatt("DW11", "SEEN", 0);
-// Place outer hex inside DW11
-  yb = -dpara[1] + (1./root3_cons)*hexd1[6];
-  zb = 0.;
-  for (j = 1; j <= npad2; ++j) {
-  xb =-(dpara[0] + dpara[1]*0.577) + 2*hexd1[6];
-   if(xrow >= 2){
-    xb = xb+(xrow-1)*hexd1[6];
-    }
-  for (i = 1; i <= npad2; ++i) {
-      number = i+(j-1)*npad2;
-    gMC->Gsposp("DS11", number, "DW11", xb, yb, zb, ihrotm, "ONLY", hexd1, 10);
-    xb += (hexd1[6]*2.);
-  }
-   xrow = xrow+1;
-    yb += (hexd1[6]*TMath::Sqrt(3.));
-  }
- Float_t z_ss,z_air1,z_air2,z_gas; 
-// Place other components inside super module 
-    z_ss=-dpara_sm[2]+dpara_ss[2]; 
-    gMC->Gspos("SMSS", 1, "SUPR", 0., 0., z_ss, 0, "ONLY");
-    z_air1=z_ss+dpara_ss[2] +dpara_air[2]; 
-    gMC->Gspos("SMAR", 1, "SUPR", 0., 0., z_air1, 0, "ONLY");
-    z_gas=z_air1+dpara_air[2]+dpara[2]+0.05; 
-    gMC->Gspos("DW11", 1, "SUPR", 0., 0., z_gas, 0, "ONLY");
-    z_air2=z_gas+dpara[2]+0.05+dpara_air[2]; 
-    gMC->Gspos("SMAR", 2, "SUPR", 0., 0., z_air2, 0, "ONLY");
-  
-// --- DEFINE MODules, iron, and lead voLUMES 
-  
-  
-// volume for SUPERMODULE 
-//   Pb 
-  Float_t dpara_pb[6] = {12.5,12.5,8.,30.,0.,0.};
-  dpara_pb[0]=dpara_sm[0];
-  dpara_pb[1]=dpara_sm[1];
-  dpara_pb[2]=1.5/2.;
-//  dpara_pb[2]=1.0/2.;
-  gMC->Gsvolu("SUPB","PARA", idtmed[600], dpara_pb, 6);
-  //---  gMC->Gsvolu("SUPB","PARA", idtmed[698], dpara_pb, 6);
-  gMC->Gsatt("SUPB", "SEEN", 0);
-//   tungsten 
-  Float_t dpara_tg[6] = {12.5,12.5,8.,30.,0.,0.};
-  dpara_tg[0]=dpara_sm[0];
-  dpara_tg[1]=dpara_sm[1];
-  dpara_tg[2]=1.0/2.;
-  gMC->Gsvolu("SUTG","PARA", idtmed[606], dpara_tg, 6);
-  gMC->Gsatt("SUTG", "SEEN", 0);
-//   Fe 
-  Float_t dpara_fe[6] = {12.5,12.5,8.,30.,0.,0.};
-  dpara_fe[0]=dpara_sm[0];
-  dpara_fe[1]=dpara_sm[1];
-  dpara_fe[2]=0.5/2.;
-  gMC->Gsvolu("SUFE","PARA", idtmed[601], dpara_fe, 6);
-  gMC->Gsatt("SUFE", "SEEN", 0);
-// volume for DM11 
-  Float_t dpara_dm11[6] = {12.5,12.5,0.8,30.,0.,0.};
-  dpara_dm11[0]=dpara_sm[0]+offset;
-  dpara_dm11[1] = dpara_dm11[0] *root3_cons;
-  dpara_dm11[2]= 6.2/2.;
-
-//  
-  gMC->Gsvolu("DM11","PARA", idtmed[698], dpara_dm11, 6);
-  gMC->Gsatt("DM11", "SEEN", 1);
-// position super module inside DM11
- Float_t z_ps,z_pb,z_fe,z_cv; 
-  z_ps=-dpara_dm11[2]+dpara_sm[2];
-  gMC->Gspos("SUPR", 2, "DM11", 0., 0., z_ps, irotdm, "ONLY");
-  z_pb=z_ps+dpara_sm[2]+dpara_pb[2];
-  gMC->Gspos("SUPB", 1, "DM11", 0., 0., z_pb, 0, "ONLY");
-  z_fe=z_pb+dpara_pb[2]+dpara_fe[2];
-  gMC->Gspos("SUFE", 1, "DM11", 0., 0., z_fe, 0, "ONLY");
-  z_cv=z_fe+dpara_fe[2]+dpara_sm[2];
-  gMC->Gspos("SUPR", 1, "DM11", 0., 0., z_cv, 0, "ONLY");
-// 
-}
-//_____________________________________________________________________________
-void AliPMDv1::DrawModule()
-{
-  //
-  // Draw a shaded view of the Photon Multiplicity Detector
-  //
-
-  gMC->Gsatt("*", "seen", -1);
-  gMC->Gsatt("alic", "seen", 0);
-  //
-  // Set the visibility of the components
-  // 
-  gMC->Gsatt("DP11","seen",0);
-  gMC->Gsatt("DS11","seen",0);
-  gMC->Gsatt("DW11","seen",0);
-  gMC->Gsatt("DM11","seen",1);
-  gMC->Gsatt("HOLE","seen",1);
-  gMC->Gsatt("DPMD","seen",0);
-  //
-  gMC->Gdopt("hide", "on");
-  gMC->Gdopt("shad", "on");
-  gMC->Gsatt("*", "fill", 7);
-  gMC->SetClipBox(".");
-  gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
-  gMC->DefaultRange();
-  gMC->Gdraw("alic", 40, 30, 0, 22, 20.5, .02, .02);
-  gMC->Gdhead(1111, "Photon Multiplicity Detector Version 1");
-  //gMC->Gdman(17, 5, "MAN");
-  gMC->Gdopt("hide", "off");
-}
-
-//_____________________________________________________________________________
-void AliPMDv1::CreateMaterials()
-{
-  //
-  // Create materials for the PMD version 1
-  //
-  // ORIGIN    : Y. P. VIYOGI 
-  //
-  
-  // --- The Argon- CO2 mixture --- 
-  Float_t ag[2] = { 39.95 };
-  Float_t zg[2] = { 18. };
-  Float_t wg[2] = { .8,.2 };
-  Float_t dar   = .001782;   // --- Ar density in g/cm3 --- 
-  // --- CO2 --- 
-  Float_t ac[2] = { 12.,16. };
-  Float_t zc[2] = { 6.,8. };
-  Float_t wc[2] = { 1.,2. };
-  Float_t dc    = .001977;
-  Float_t dco   = .002;  // --- CO2 density in g/cm3 ---
-  
-  Float_t absl, radl, a, d, z;
-  Float_t dg;
-  Float_t x0ar;
-  Float_t x0xe=2.4;
-  Float_t dxe=0.005858;
-  Float_t buf[1];
-  Int_t nbuf;
-  Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
-  Float_t zsteel[4] = { 26.,24.,28.,14. };
-  Float_t wsteel[4] = { .715,.18,.1,.005 };
-  
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  Int_t isxfld = gAlice->Field()->Integ();
-  Float_t sxmgmx = gAlice->Field()->Max();
-  
-  // --- Define the various materials for GEANT --- 
-  AliMaterial(1, "Pb    $", 207.19, 82., 11.35, .56, 18.5);
-  x0ar = 19.55 / dar;
-  AliMaterial(2, "Argon$", 39.95, 18., dar, x0ar, 6.5e4);
-  AliMixture(3, "CO2  $", ac, zc, dc, -2, wc);
-  AliMaterial(4, "Al   $", 26.98, 13., 2.7, 8.9, 18.5);
-  AliMaterial(6, "Fe   $", 55.85, 26., 7.87, 1.76, 18.5);
-  AliMaterial(7, "W    $", 183.85, 74., 19.3, .35, 10.3);
-  AliMaterial(8, "G10  $", 20., 10., 1.7, 19.4, 999.);
-  AliMaterial(9, "SILIC$", 28.09, 14., 2.33, 9.36, 45.);
-  AliMaterial(10, "Be   $", 9.01, 4., 1.848, 35.3, 36.7);
-  AliMaterial(15, "Cu   $", 63.54, 29., 8.96, 1.43, 15.);
-  AliMaterial(16, "C    $", 12.01, 6., 2.265, 18.8, 49.9);
-  AliMaterial(17, "POLYCARBONATE    $", 20., 10., 1.2, 34.6, 999.);
-  // AliMaterial(31, "Xenon$", 131.3, 54., dxe, x0xe, 6.5e4);
-  
-  AliMaterial(96, "MYLAR$", 8.73, 4.55, 1.39, 28.7, 62.);
-  AliMaterial(97, "CONCR$", 20., 10., 2.5, 10.7, 40.);
-  AliMaterial(98, "Vacum$", 1e-9, 1e-9, 1e-9, 1e16, 1e16);
-  AliMaterial(99, "Air  $", 14.61, 7.3, .0012, 30420., 67500.);
-  AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel); 
-  //   define gas-mixtures 
-  
-  char namate[21];
-  gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf);
-  ag[1] = a;
-  zg[1] = z;
-  dg = (dar * 4 + dco) / 5;
-  AliMixture(5, "ArCO2$", ag, zg, dg, 2, wg);
-  
-  // Define tracking media 
-  AliMedium(1, "Pb conv.$", 1,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(2, " S steel$", 19, 0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(7, "W  conv.$", 7,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(8, "G10plate$", 8,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(4, "Al      $", 4,  0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(6, "Fe      $", 6,  0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(5, "ArCO2   $", 5,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
-  AliMedium(9, "SILICON $", 9,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
-  AliMedium(10, "Be      $", 10, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(98, "Vacuum  $", 98, 0, 0, isxfld, sxmgmx, 1., .1, .1,  10);
-  AliMedium(99, "Air gaps$", 99, 0, 0, isxfld, sxmgmx, 1., .1, .1,  .1);
-  AliMedium(15, "Cu      $", 15, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(16, "C       $", 16, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(17, "PLOYCARB$", 17, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  //  AliMedium(31, "Xenon   $", 31,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
-  
-  // --- Generate explicitly delta rays in the iron, aluminium and lead --- 
-  gMC->Gstpar(idtmed[600], "LOSS", 3.);
-  gMC->Gstpar(idtmed[600], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[603], "LOSS", 3.);
-  gMC->Gstpar(idtmed[603], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[604], "LOSS", 3.);
-  gMC->Gstpar(idtmed[604], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[605], "LOSS", 3.);
-  gMC->Gstpar(idtmed[605], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[606], "LOSS", 3.);
-  gMC->Gstpar(idtmed[606], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[607], "LOSS", 3.);
-  gMC->Gstpar(idtmed[607], "DRAY", 1.);
-  
-  // --- Energy cut-offs in the Pb and Al to gain time in tracking --- 
-  // --- without affecting the hit patterns --- 
-  gMC->Gstpar(idtmed[600], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTHAD", 1e-4);
-  
-  // --- Prevent particles stopping in the gas due to energy cut-off --- 
-  gMC->Gstpar(idtmed[604], "CUTGAM", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTELE", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTNEU", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTHAD", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTMUO", 1e-5);
-}
-
-//_____________________________________________________________________________
-void AliPMDv1::Init()
-{
-  //
-  // Initialises PMD detector after it has been built
-  //
-  Int_t i;
-  kdet=1;
-  //
-  printf("\n");
-  for(i=0;i<35;i++) printf("*");
-  printf(" PMD_INIT ");
-  for(i=0;i<35;i++) printf("*");
-  printf("\n");
-  printf("                 PMD simulation package (v1) initialised\n");
-  printf(" parameters of pmd\n");
-  printf("%6d %10.2f %10.2f %10.2f %10.2f %10.2f\n",kdet,thmin,thmax,zdist,thlow,thhigh);
-  //
-  for(i=0;i<80;i++) printf("*");
-  printf("\n");
-  //
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  fMedSens=idtmed[605-1];
-}
-
-//_____________________________________________________________________________
-void AliPMDv1::StepManager()
-{
-  //
-  // Called at each step in the PMD
-  //
-  Int_t   copy;
-  Float_t hits[4], destep;
-  Float_t center[3] = {0,0,0};
-  Int_t   vol[5];
-  //  char *namep;
-  
-  if(gMC->GetMedium() == fMedSens && (destep = gMC->Edep())) {
-    
-    gMC->CurrentVolID(copy);
-//    namep=gMC->CurrentVolName();
-//    printf("Current vol is %s \n",namep);
-    vol[0]=copy;
-    gMC->CurrentVolOffID(1,copy);
-//    namep=gMC->CurrentVolOffName(1);
-//    printf("Current vol 11 is %s \n",namep);
-    vol[1]=copy;
-    gMC->CurrentVolOffID(2,copy);
-//    namep=gMC->CurrentVolOffName(2);
-//    printf("Current vol 22 is %s \n",namep);
-    vol[2]=copy;
-//     if(strncmp(namep,"DW11",4))vol[2]=1;
-    gMC->CurrentVolOffID(3,copy);
-//    namep=gMC->CurrentVolOffName(3);
-//    printf("Current vol 33 is %s \n",namep);
-    vol[3]=copy;
-    gMC->CurrentVolOffID(4,copy);
-//    namep=gMC->CurrentVolOffName(4);
-//    printf("Current vol 44 is %s \n",namep);
-    vol[4]=copy;
-//     printf("volume number %d,%d,%d,%d,%d \n",vol[0],vol[1],vol[2],vol[3],vol[4]);
-    gMC->Gdtom(center,hits,1);
-    hits[3] = destep*1e9; //Number in eV
-    AddHit(gAlice->CurrentTrack(), vol, hits);
-  }
-}
-
-  
diff --git a/PMD/AliPMDv1.h b/PMD/AliPMDv1.h
deleted file mode 100644 (file)
index 0b9eb0b..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef PMDV1_H
-#define PMDV1_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-////////////////////////////////////////////////
-//  Manager and hits classes for set:PMD      //
-////////////////////////////////////////////////
-#include "AliPMD.h"
-
-//___________________________________________
-class AliPMDv1 : public AliPMD {
-
-private:
-  Int_t fMedSens;
-  
-public:
-  AliPMDv1();
-  AliPMDv1(const char *name, const char *title);
-  virtual      ~AliPMDv1() {}
-  virtual void  CreateGeometry();
-  virtual void  CreateInside();
-  virtual void  CreatePads();
-  virtual void  CreateMaterials();
-  virtual void  Init();
-  virtual Int_t IsVersion() const {return 1;}
-  virtual void  StepManager();
-  virtual void  DrawModule();
-   ClassDef(AliPMDv1,1)  //Hits manager for set:PMD
-};
-#endif
diff --git a/PMD/AliPMDv2.cxx b/PMD/AliPMDv2.cxx
deleted file mode 100644 (file)
index b58dae5..0000000
+++ /dev/null
@@ -1,1005 +0,0 @@
-/**************************************************************************
- * 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.7  2000/10/02 21:28:12  fca
-Removal of useless dependecies via forward declarations
-
-Revision 1.6  1999/09/29 09:24:28  fca
-Introduction of the Copyright and cvs Log
-
-*/
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  Photon Multiplicity Detector Version 1                                   //
-//                                                                           //
-//Begin_Html
-/*
-<img src="picts/AliPMDv2Class.gif">
-*/
-//End_Html
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-#include "AliPMDv2.h"
-#include "AliRun.h"
-#include "AliMC.h" 
-#include "AliMagF.h" 
-#include "AliConst.h" 
-
-#include "TMath.h"
-static const Double_t kPI=TMath::Pi();
-static Float_t smod1[3], smod2[3], smod3[3], smod4[3];
-static Int_t maxbox, kdet;
-static Float_t thgas,thcell,thmin,thmax,zdist,zdist1,thlow,
-  thhigh,edge;
-static Int_t numqu;
-static Float_t xbox[40][40], ybox[40][40];
-static Int_t pindex[40][40];
-ClassImp(AliPMDv2)
-//_____________________________________________________________________________
-AliPMDv2::AliPMDv2() : AliPMD()
-{
-  //
-  // Default constructor 
-  //
-  fMedSens=0;
-}
-//_____________________________________________________________________________
-AliPMDv2::AliPMDv2(const char *name, const char *title)
-  : AliPMD(name,title)
-{
-  //
-  // Standard constructor
-  //
-  fMedSens=0;
-}
-
-//_____________________________________________________________________________
-void AliPMDv2::Coordnew()
-{
-  //
-  // Find coordinates for pad geometry
-  //
-  // Author Y.P. Viyogi, VECC Calcutta
-  //
-
-  Float_t th1, th2, dbox, dist;
-  //Float_t xoff[40][40], yoff[40][40];
-  Int_t i, j, nbox;
-  Float_t rlow;
-  Int_t xoff1[3], yoff1[3], l;
-  Float_t rhigh, dmax, hole;
-  Int_t kk, nhol;
-  Float_t rr, xx, yy;
-  
-  th1 = thmin * kPI / 180;
-  th2 = thmax * kPI / 180;
-  /* ESTIMATES FOR OCTAGON */
-  dist = zdist * TMath::Tan(th2);
-  /* ***  04.06.97 Fixed Module size of 6 cm, 0 mm boundary. */
-  /* ***  variable pad sizes of 0.3 mm, 0.5  mm, 1.0 mm and 1.2 mm */
-  dbox = edge * 2 + 24;
-  maxbox = Int_t(dist / dbox + .5);
-  dmax= maxbox * dbox;
-  /* NOW GET THE HOLE SIZE ETC. */
-  hole = zdist * TMath::Tan(th1);
-  nhol = Int_t(hole / dbox + .5);
-  hole = nhol * dbox;
-  
-  rlow = zdist * TMath::Tan(thlow * kPI / 180);
-  rhigh = zdist * TMath::Tan(thhigh * kPI / 180);
-  for (i = 1; i <= 40; ++i) {
-    for (j = 1; j <= 40; ++j) {
-      //index[j][i] = 0;
-      //xoff[j][i] = 0;
-      //yoff[j][i] = 0;
-      xbox[j][i] = 0;
-      /* L5: */
-      ybox[j][i] = 0;
-    }
-  }
-  
-  // NOW START PLACING THE BOXES IN VARIOUS LAYERS, START FROM THE CENTRE 
-  
-  yy = dbox / 2;
-  for(i=0;i<3;i++) yoff1[i]=0;
-  nbox = 0;
-  //        PRINT*,'MAXBOX=',MAXBOX 
-  for (i = 1; i <= maxbox; ++i) {
-    xx = dbox / 2;
-    for(j=0;j<3;j++) xoff1[j]=0;
-       for (j = 1; j <= maxbox; ++j) {
-         rr = sqrt(xx*xx+yy*yy);
-         if (rr >= hole && rr <= dmax) {
-           //  BOX CAN BE FITTED 
-           //index[j][i] = 2;
-           //if (rr < rlow) index[j][i] = 1;
-           //else if (rr > rhigh) index[j][i] = 3;
-           xbox[j][i] = xx;
-           ybox[j][i] = yy;
-             ++nbox;
-             //xoff[j][i] = xoff1[index[j][i] - 1];
-             //yoff[j][i] = yoff1[index[j][i] - 1];
-         }
-         if (kdet == 1) kk = 1; else kk = 0;
-         for (l = 1; l <= 3; ++l)
-           xoff1[l - 1] += fNumPads[l + kk - 1];
-         xx += dbox;
-       }
-       
-       if (kdet == 1) kk = 1; else kk=0;
-       
-       for (l = 1; l <= 3; ++l)
-         yoff1[l - 1] += fNumPads[l + kk - 1];
-       yy += dbox;
-  }
-}
-
-//_____________________________________________________________________________
-void AliPMDv2::Coordinates()
-{
-  //
-  //  SUBROUTINE TO COMPUTE THE X- AND Y- COORDINATES OF THE BOXES 
-  //  WHICH CAN FIT INTO THE CIRCULAR REGION BETWEEN THE GIVEN ANGLES. 
-  //  INPUT : ZDIST, THMIN, THMAX, PADSIZE (FOR INSIDE and OUTSIDE PMD). 
-  //  ALL DIMENSIONS IN CM. 
-  // -- Author :       Y.P. VIYOGI, 10/05/1996. 
-
-  Float_t hole, dmax, dbox;
-  Int_t nhol;
-  Float_t dist;
-  Int_t nbox;
-  Float_t rlow;
-  Int_t i, j;
-  Float_t rhigh, rr, xx, yy, th1, th2;
-  
-  th1 = thmin*kPI/180;
-  th2 = thmax*kPI/180;
-  // ESTIMATES FOR OCTAGON 
-  dist = zdist * TMath::Tan(th2);
-  // ***  04.06.97 Fixed Module size of 24 cm, 3 mm boundary. 
-  // ***  variable pad sizes of 8 mm, 10 mm, 12mm and 15 mm 
-  dbox   = edge*2 + 24.;
-  maxbox = Int_t(dist / dbox + .5);
-  dmax   = maxbox*dbox;
-  // NOW GET THE HOLE SIZE ETC. 
-  hole = zdist * TMath::Tan(th1);
-  nhol = Int_t(hole / dbox + .5);
-  hole = nhol * dbox;
-  
-  rlow  = zdist * TMath::Tan(thlow*kPI/180);
-  rhigh = zdist * TMath::Tan(thhigh*kPI/180);
-  for (i = 0; i < 40; ++i) {
-    for (j = 0; j < 40; ++j) {
-      pindex[j][i] = 0;
-      xbox[j][i]   = 0;
-      ybox[j][i]   = 0;
-    }
-  }
-  
-  //  NOW START PLACING THE BOXES IN VARIOUS LAYERS, START FROM THE CENTRE 
-  yy   = dbox / 2;
-    nbox = 0;
-    for (i = 0; i < maxbox; ++i) {
-      xx = dbox / 2;
-      for (j = 0; j < maxbox; ++j) {
-       rr = TMath::Sqrt(xx*xx + yy*yy);
-       if (rr >= hole && rr <= dmax) {  //  BOX CAN BE FITTED 
-         pindex[j][i] = 2;
-         if (rr < rlow)  pindex[j][i] = 1;
-         if (rr > rhigh) pindex[j][i] = 3;
-         xbox[j][i] = xx;
-         ybox[j][i] = yy;
-         ++nbox;
-       }
-       xx += dbox;
-      }
-      yy += dbox;
-    }
-}
-//_____________________________________________________________________________
-void AliPMDv2::CreateGeometry()
-{
-  //
-  // Create geometry for Photon Multiplicity Detector Version 1
-  //
-  //Begin_Html
-  /*
-    <img src="picts/AliPMDv2.gif">
-  */
-  //End_Html
-  //Begin_Html
-  /*
-    <img src="picts/AliPMDv2Tree.gif">
-  */
-  //End_Html
-  CreatePads();
-  CreateInside();
-}
-//_____________________________________________________________________________
-void AliPMDv2::CreateInside()
-{
-  //
-  // Create inside of Pads
-  //
-  // -- Author :     Y.P. VIYOGI, 07/05/1996. 
-  // -- Modified:    P.V.K.S.Baba(JU), 15-12-97. 
-  
-  Float_t sipmd[3] = { 300.,300.,5. };
-  
-  Int_t i2;
-  
-  Float_t xiqa[4], yiqa[4];
-  Int_t inum2, inum3, inum4, i, j, k;
-  Float_t siqad[4];
-  Float_t zd, xd, yd, xp, yp, zp;
-  Int_t idrotm[100];
-  
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  
-  //  VOLUMES Names : begining with D for all PMD volumes, 
-  // The names of SIZE variables begin with S and have more meaningful
-  // characters as shown below. 
-  
-  //           VOLUME  SIZE    MEDIUM  :       REMARKS 
-  //           ------  -----   ------  : --------------------------- 
-  
-  //           DPMD    SIPMD   AIR     : INSIDE PMD  and its SIZE 
-  
-  
-  
-  // *** Define the  DPMD   Volume and fill with air *** 
-
-  gMC->Gsvolu("DPMD", "BOX ", idtmed[698], sipmd, 3);
-  
-  // *** Define DIQU Volume and fill with air 
-  siqad[0] = sipmd[0] / 2. - 1.;
-  siqad[1] = sipmd[1] / 2. - 1.;
-  siqad[2] = sipmd[2];
-  gMC->Gsvolu("DIQU","BOX ", idtmed[698], siqad, 3);
-  gMC->Gsatt("DIQU", "SEEN", 1);
-  
-  
-  // --- Place the modules in INSIDE PMD (DPMD) 
-  // --- FIRST CALCULATE THE COORDINATES OF THE MODULES WHICH CAN BE 
-  // --- ACCOMODATED. 
-  
-  kdet = 1;
-  Coordinates();
-  
-  //inum = 0;
-  zd   = 0.;
-  AliMatrix(idrotm[1], 90., 0.,   90.,  90., 0., 0.);
-  AliMatrix(idrotm[2], 90., 180., 90.,  90., 0., 0.);
-  AliMatrix(idrotm[3], 90., 180., 90., 270., 0., 0.);
-  AliMatrix(idrotm[4], 90., 0.,   90., 270., 0., 0.);
-  // ****  Filling the DIQU Vol. (One Quadrant) 
-  inum2 = 0;
-  inum3 = 0;
-    inum4 = 0;
-    for (i = 0; i < maxbox; ++i) {
-      i2 = maxbox;
-      for (j = 0; j < i2; ++j) {
-       if (xbox[j][i] <= 0 && ybox[j][i] <= 0) continue;
-       xd = xbox[j][i] - siqad[0];
-       yd = ybox[j][i] - siqad[1];
-       if (pindex[j][i] == 1) {
-         ++inum2;
-         gMC->Gsposp("DM11", inum2, "DIQU", xd, yd, zd, 0, "ONLY", smod2, 3);
-       }
-       if (pindex[j][i] == 2) {
-         ++inum3;
-         gMC->Gsposp("DM12", inum3, "DIQU", xd, yd, zd, 0, "ONLY", smod3, 3);
-       }
-       if (pindex[j][i] == 3) {
-         ++inum4;
-         gMC->Gsposp("DM13", inum4, "DIQU", xd, yd, zd, 0, "ONLY", smod4, 3);
-       }
-      }
-    }
-    xiqa[0] = siqad[0];
-    xiqa[1] = -siqad[0];
-    xiqa[2] = xiqa[1];
-    xiqa[3] = xiqa[0];
-    yiqa[0] = siqad[0];
-    yiqa[1] = yiqa[0];
-    yiqa[2] = -siqad[0];
-    yiqa[3] = yiqa[2];
-    i2      = numqu;
-    for (k = 1; k <= i2; ++k) {
-      gMC->Gsposp("DIQU", k, "DPMD", xiqa[k-1], yiqa[k-1], zd, idrotm[k], "ONLY", siqad, 3);
-    }
-    
-    // --- Place the DPMD in ALICE with front edge 6.0m from vertex  --- 
-    xp = 0.;
-    yp = 0.;
-    zp = zdist1;
-    gMC->Gspos("DPMD", 1, "ALIC", xp, yp, zp, 0, "ONLY");
-    
-}
-
-//_____________________________________________________________________________
-void AliPMDv2::CreatePads()
-{
-  //
-  // Create the geometry of the pads
-  // *** DEFINITION OF THE GEOMETRY OF THE PMD  *** 
-  // *** DIFFERENT PADS WITH SIZES 8 MM, 10 MM, 12 MM AND 15 MM SQUARE 
-  // -- Author :     Y.P. VIYOGI, 04/06/1997. 
-  // -- Modified:    P.V.K.S.Baba(JU), 13-12-97. 
-  
-  Int_t npad1, npad2, npad3, npad4;
-  Float_t spad1[3], spad2[3], spad3[3], spad4[3];
-  Float_t scpv1[3], scpv2[3], scpv3[3], scpv4[3];
-  Int_t i, j;
-  Float_t sstr1[3], spsw1[3], sstr2[3], spsw2[3], sstr3[3], spsw3[3],
-    sstr4[3], spsw4[3];
-  Float_t xa, ya, za, xb, yb, zb, xc, sw[3], yc, zc;
-  Float_t sfe[3];
-  Float_t spb[3], pad1, pad2, pad3, pad4;
-  //  VOLUMES Names : begining with D for all PMD volumes, 
-  //     DMO1 : MODULE TYPE 1 ( 8 MM PADS) 
-  //     DM11 : MODULE TYPE 2 (10 MM PADS) 
-  //     DM12 : MODULE TYPE 3 (12 MM PADS) 
-  //     DM13 : MODULE TYPE 4 (15 MM PADS) 
-  
-  // The names of SIZE variables begin with S and have more meaningful
-  // characters as shown below. 
-  
-  //           VOLUME  SIZE    MEDIUM  :       REMARKS 
-  //           ------  -----   ------  : --------------------------- 
-  
-  //           DPPB    SPB     PB      : PB Converter and its SIZE 
-  //           DPFE    SFE     FE      : FE Support Plate and its SIZE 
-  
-  //               DP11    SPAD2   GAS     : PAD TYPE 2 (10 MM) 
-  //               DP12    SPAD2   GAS     : PAD TYPE 2 FOR CPV(10 MM) 
-  //               DS11    SSTR2   FE      : STRIP OF IRON 
-  //               DW11    SPSW2   G10     : PRESHOWER 
-  //               DV11    SCPV2   G10     : CPV 
-  
-  //               DP13    SPAD3   GAS     : PAD TYPE 3 (12 MM) 
-  //               DP14    SPAD3   GAS     : PAD TYPE 3 FOR CPV(12 MM) 
-  //               DS12    SSTR3   FE      : STRIP OF IRON 
-  //               DW12    SPSW3   G10     : PRESHOWER 
-  //               DV12    SCPV3   G10     : CPV 
-  
-  //               DP15    SPAD4   GAS     : PAD TYPE 4 (15 MM) 
-  //               DP16    SPAD4   GAS     : PAD TYPE 4 FOR CPV(15 MM) 
-  //               DS13    SSTR4   FE      : STRIP OF IRON 
-  //               DW13    SPSW4   G10     : PRESHOWER 
-  //               DV13    SCPV4   G10     : CPV 
-  
-  //     ****************** VOLUME TREE ****************** 
-  
-  //                   DM11 (Module) 
-  //                          | 
-  //                          | 
-  //   ------------------------------------------------- 
-  //       |             |               |                 | 
-  //       |             |               |                 | 
-  //    DV11( CPV)      DPFE            DPPB              DW11(Preshower) 
-  //       |                                           | 
-  //   |                                               | 
-  //    DS12(Strip)                                   DS11(Strip) 
-  //       |                                               | 
-  //       |                                           | 
-  //    DP12(Pads)                                        DP11(Pads) 
-  
-  //    ************************************************************ 
-  
-  // --- The above  gives the Volume Tree. PAD is a gas cell of size 
-  // --- given by PADSIZE in the input cards.  STRIP is a collection of 
-  //--- PADs in a row.   STRIPs are positioned in the PRESHOWER BOX. This is
-  //--- then placed in the MODULE. The PSW and the MODULE have the same size
-  // --- ; Lead converter, Iron support plate are also placed 
-  // --- in the MODULE. 
-  
-  
-  //        DATA PAD1,PAD2,PAD3,PAD4/4*0.8/ 
-  //        DATA NPAD1,NPAD2,NPAD3,NPAD4/4*30/ 
-  
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  
-  // **** PAD SIZE 8 MM 
-  //  pmdin  = fPar[0];
-  //  pmdout = fPar[1];
-  thgas  = fPar[2];
-  thcell = fPar[3];
-  thmin  = fIn[0];
-  thmax  = fIn[1];
-  zdist1  = fIn[2];
-  zdist  = TMath::Abs(zdist1);
-  thlow  = fIn[3];
-  thhigh = fIn[4];
-  //  wafer  = fGeo[0];
-  edge   = fGeo[1];
-  numqu  = Int_t(fGeo[2]);
-  
-  
-  // *BABA 
-  pad1  = fPadSize[0];
-  pad2  = fPadSize[1];
-  pad3  = fPadSize[2];
-  pad4  = fPadSize[3];
-  npad1 = Int_t(24/fPadSize[0]);
-  npad2 = Int_t(24/fPadSize[1]);
-  npad3 = Int_t(24/fPadSize[2]);
-  npad4 = Int_t(24/fPadSize[3]);
-  // *BABA 
-  spad1[0] = (pad1 - thcell) / 2.;
-  spad1[1] = spad1[0];
-  spad1[2] = thgas / 2;
-  gMC->Gsvolu("DP21", "BOX ", idtmed[604], spad1, 3);
-  gMC->Gsatt("DP21", "SEEN", 1);
-  gMC->Gsvolu("DP22", "BOX ", idtmed[604], spad1, 3);
-  gMC->Gsatt("DP22", "SEEN", 1);
-  
-  sstr1[0] = npad1*pad1/2;
-  sstr1[1] = pad1/2;
-  sstr1[2] = thgas/2;
-  gMC->Gsvolu("DS21", "BOX ", idtmed[605], sstr1, 3);
-  gMC->Gsatt("DS21", "SEEN", 1);
-  gMC->Gsvolu("DS22", "BOX ", idtmed[605], sstr1, 3);
-  gMC->Gsatt("DS22", "SEEN", 1);
-  
-  spsw1[0] = sstr1[0] + edge;
-  spsw1[1] = spsw1[0];
-  spsw1[2] = (thgas + .4) / 2;
-  // 2 mm G10 Plate cover (NMATE = 808) 
-  scpv1[0] = spsw1[0];
-  scpv1[1] = spsw1[1];
-  scpv1[2] = spsw1[2];
-  gMC->Gsvolu("DW21", "BOX ", idtmed[607], spsw1, 3);
-  gMC->Gsatt("DW21", "SEEN", 1);
-  gMC->Gsvolu("DV21", "BOX ", idtmed[607], spsw1, 3);
-  gMC->Gsatt("DV21", "SEEN", 1);
-  
-  // --- place  pads in a strip 
-  xa = (-npad1 + 1.) * pad1 / 2.;
-  ya = 0.;
-  za = 0.;
-  for (i = 1; i <= npad1; ++i) {
-    gMC->Gsposp("DP21", i, "DS21", xa, ya, za, 0, "ONLY", spad1, 3);
-    gMC->Gsposp("DP22", i, "DS22", xa, ya, za, 0, "ONLY", spad1, 3);
-    xa += pad1;
-  }
-  // --- place  strips in the PRESHOWER AND CPV boxes 
-  xb = 0.;
-  yb = (-npad1 + 1.) * pad1 / 2.;
-  zb = 0.;
-  for (j = 1; j <= npad1; ++j) {
-    gMC->Gsposp("DS21", j, "DW21", xb, yb, zb, 0, "ONLY", sstr1, 3);
-    gMC->Gsposp("DS22", j, "DV21", xb, yb, zb, 0, "ONLY", sstr1, 3);
-    yb += pad1;
-  }
-  
-  // **** PAD SIZE 10 MM 
-  
-  spad2[0] = (pad2 - thcell) / 2.;
-  spad2[1] = spad2[0];
-  spad2[2] = thgas / 2;
-  gMC->Gsvolu("DP11", "BOX ", idtmed[604], spad2, 3);
-  gMC->Gsatt("DP11", "SEEN", 1);
-  gMC->Gsvolu("DP12", "BOX ", idtmed[604], spad2, 3);
-  gMC->Gsatt("DP12", "SEEN", 1);
-  
-  sstr2[0] = npad2 * pad2 / 2;
-  sstr2[1] = pad2 / 2;
-  sstr2[2] = thgas / 2;
-  gMC->Gsvolu("DS11", "BOX ", idtmed[605], sstr2, 3);
-  gMC->Gsatt("DS11", "SEEN", 1);
-  gMC->Gsvolu("DS12", "BOX ", idtmed[605], sstr2, 3);
-  gMC->Gsatt("DS12", "SEEN", 1);
-  
-  spsw2[0] = sstr2[0] + edge;
-  spsw2[1] = spsw2[0];
-  spsw2[2] = (thgas + .4) / 2;
-  // 2 mm G10 Plate cover (NMATE = 808) 
-  scpv2[0] = spsw2[0];
-  scpv2[1] = spsw2[1];
-  scpv2[2] = spsw2[2];
-  gMC->Gsvolu("DW11","BOX ", idtmed[607], spsw2, 3);
-  gMC->Gsatt("DW11", "SEEN", 1);
-  gMC->Gsvolu("DV11","BOX ", idtmed[607], spsw2, 3);
-  gMC->Gsatt("DV11", "SEEN", 1);
-  
-  // --- place  pads in a strip 
-  xa = (-npad2 + 1.) * pad2 / 2.;
-  ya = 0.;
-  za = 0.;
-  for (i = 1; i <= npad2; ++i) {
-    gMC->Gsposp("DP11", i, "DS11", xa, ya, za, 0, "ONLY", spad2, 3);
-    gMC->Gsposp("DP12", i, "DS12", xa, ya, za, 0, "ONLY", spad2, 3);
-    xa += pad2;
-  }
-  // --- place  strips in the PRESHOWER AND CPV boxes 
-  xb = 0.;
-  yb = (-npad2 + 1.) * pad2 / 2.;
-  zb = 0.;
-  for (j = 1; j <= npad2; ++j) {
-    gMC->Gsposp("DS11", j, "DW11", xb, yb, zb, 0, "ONLY", sstr2, 3);
-    gMC->Gsposp("DS12", j, "DV11", xb, yb, zb, 0, "ONLY", sstr2, 3);
-    yb += pad2;
-  }
-  
-  // **** PAD SIZE 12 MM 
-  
-  spad3[0] = (pad3 - thcell) / 2.;
-  spad3[1] = spad3[0];
-  spad3[2] = thgas / 2;
-  gMC->Gsvolu("DP13", "BOX ", idtmed[604], spad3, 3);
-  gMC->Gsatt("DP13", "SEEN", 1);
-  gMC->Gsvolu("DP14", "BOX ", idtmed[604], spad3, 3);
-  gMC->Gsatt("DP14", "SEEN", 1);
-  
-  sstr3[0] = npad3 * pad3 / 2;
-  sstr3[1] = pad3 / 2;
-  sstr3[2] = thgas / 2;
-  gMC->Gsvolu("DS13", "BOX ", idtmed[605], sstr3, 3);
-  gMC->Gsatt("DS13", "SEEN", 1);
-  gMC->Gsvolu("DS14", "BOX ", idtmed[605], sstr3, 3);
-  gMC->Gsatt("DS14", "SEEN", 1);
-  
-  spsw3[0] = sstr3[0] + edge;
-  spsw3[1] = spsw3[0];
-  spsw3[2] = (thgas + .4) / 2;
-  // 2 mm G10 Plate cover (NMATE = 808) 
-  scpv3[0] = spsw3[0];
-  scpv3[1] = spsw3[1];
-  scpv3[2] = spsw3[2];
-  gMC->Gsvolu("DW12","BOX ", idtmed[607], spsw3, 3);
-  gMC->Gsatt("DW12", "SEEN", 1);
-  gMC->Gsvolu("DV12","BOX ", idtmed[607], spsw3, 3);
-  gMC->Gsatt("DV12", "SEEN", 1);
-  
-  // --- place  pads in a strip 
-  xa = (-npad3 + 1.) * pad3 / 2.;
-  ya = 0.;
-  za = 0.;
-  for (i = 1; i <= npad3; ++i) {
-    gMC->Gsposp("DP13", i, "DS13", xa, ya, za, 0, "ONLY", spad3, 3);
-    gMC->Gsposp("DP14", i, "DS14", xa, ya, za, 0, "ONLY", spad3, 3);
-    xa += pad3;
-  }
-  // --- place  strips in the PRESHOWER AND CPV boxes 
-  xb = 0.;
-  yb = (-npad3 + 1.) * pad3 / 2.;
-  zb = 0.;
-  for (j = 1; j <= npad3; ++j) {
-    gMC->Gsposp("DS13", j, "DW12", xb, yb, zb, 0, "ONLY", sstr3, 3);
-    gMC->Gsposp("DS14", j, "DV12", xb, yb, zb, 0, "ONLY", sstr3, 3);
-    yb += pad3;
-  }
-  
-  // **** PAD SIZE 15 MM 
-  
-  spad4[0] = (pad4 - thcell) / 2.;
-  spad4[1] = spad4[0];
-  spad4[2] = thgas / 2;
-  gMC->Gsvolu("DP15","BOX ", idtmed[604], spad4, 3);
-  gMC->Gsatt("DP15", "SEEN", 1);
-  gMC->Gsvolu("DP16","BOX ", idtmed[604], spad4, 3);
-  gMC->Gsatt("DP16", "SEEN", 1);
-  
-  sstr4[0] = npad4 * pad4 / 2;
-  sstr4[1] = pad4 / 2;
-  sstr4[2] = thgas / 2;
-  gMC->Gsvolu("DS15","BOX ", idtmed[605], sstr4, 3);
-  gMC->Gsatt("DS15", "SEEN", 1);
-  gMC->Gsvolu("DS16","BOX ", idtmed[605], sstr4, 3);
-  gMC->Gsatt("DS16", "SEEN", 1);
-  
-  spsw4[0] = sstr4[0] + edge;
-  spsw4[1] = spsw4[0];
-  spsw4[2] = (thgas + .4) / 2;
-  // 2 mm G10 Plate cover (NMATE = 808) 
-  scpv4[0] = spsw4[0];
-  scpv4[1] = spsw4[1];
-  scpv4[2] = spsw4[2];
-  gMC->Gsvolu("DW13","BOX ", idtmed[607], spsw4, 3);
-  gMC->Gsatt("DW13", "SEEN", 1);
-  gMC->Gsvolu("DV13","BOX ", idtmed[607], spsw4, 3);
-  gMC->Gsatt("DV13", "SEEN", 1);
-  
-  // --- place  pads in a strip 
-  xa = (-npad4 + 1.) * pad4 / 2.;
-  ya = 0.;
-  za = 0.;
-  for (i = 1; i <= npad4; ++i) {
-    gMC->Gsposp("DP15", i, "DS15", xa, ya, za, 0, "ONLY", spad4, 3);
-    gMC->Gsposp("DP16", i, "DS16", xa, ya, za, 0, "ONLY", spad4, 3);
-    xa += pad4;
-  }
-  // --- place  strips in the PRESHOWER AND CPV boxes 
-  xb = 0.;
-  yb = (-npad4 + 1.) * pad4 / 2.;
-  zb = 0.;
-  for (j = 1; j <= npad4; ++j) {
-    gMC->Gsposp("DS15", j, "DW13", xb, yb, zb, 0, "ONLY", sstr4, 3);
-    gMC->Gsposp("DS16", j, "DV13", xb, yb, zb, 0, "ONLY", sstr4, 3);
-    yb += pad4;
-  }
-  
-  
-  // --- DEFINE MODULES, IRON, TUNGSTEN AND LEAD VOLUMES 
-  
-  
-  spb[0] = spsw1[0];
-  spb[1] = spsw1[1];
-  spb[2] = .75;
-  gMC->Gsvolu("DPPB","BOX ", idtmed[600], spb, 3);
-  gMC->Gsatt("DPPB", "SEEN", 1);
-  
-  sw[0] = spsw1[0];
-  sw[1] = spsw1[1];
-  sw[2] = 0.9/2.;
-  gMC->Gsvolu("DPW ","BOX ", idtmed[600], sw, 3);
-  gMC->Gsatt("DPW ", "SEEN", 1);
-  
-  sfe[0] = spsw1[0];
-  sfe[1] = spsw1[1];
-  sfe[2] = 0.6/2.;
-  gMC->Gsvolu("DPFE","BOX ", idtmed[605], sfe, 3);
-  gMC->Gsatt("DPFE", "SEEN", 1);
-  
-  smod1[0] = spsw1[0];
-  smod1[1] = smod1[0];
-  //   SMOD1(3)=SPSW1(3)+SFE(3)+SW (3)+SCPV1(3) 
-  smod1[2] = spsw1[2] + sfe[2] + spb[2] + scpv1[2];
-  gMC->Gsvolu("DM21", "BOX ", idtmed[698], smod1, 3);
-  
-  smod2[0] = spsw2[0];
-  smod2[1] = smod2[0];
-  smod2[2] = spsw2[2] + sfe[2] + spb[2] + scpv2[2];
-  gMC->Gsvolu("DM11", "BOX ", idtmed[698], smod2, 3);
-  
-  smod3[0] = spsw3[0];
-  smod3[1] = smod3[0];
-  smod3[2] = spsw3[2] + sfe[2] + spb[2] + scpv3[2];
-  gMC->Gsvolu("DM12", "BOX ", idtmed[698], smod3, 3);
-  
-  smod4[0] = spsw4[0];
-  smod4[1] = smod4[0];
-  smod4[2] = spsw4[2] + sfe[2] + spb[2] + scpv4[2];
-  gMC->Gsvolu("DM13", "BOX ", idtmed[698], smod4, 3);
-  
-  // **** MODULE TYPE 1 : ALWAYS WITH TUNSGTEN CONVERTER 
-  
-  // *** try with PB once 8.6.97 
-  
-  // ---  place gas box (as CPV), iron support, lead converter and gas box 
-  // ---  (preshower) in the module 
-  xc = 0.;
-  yc = 0.;
-  // --- First the CPV box 
-  zc = -(spsw1[2] + sfe[2] + spb[2] + spsw1[2]) + spsw1[2];
-  gMC->Gspos("DV21", 1, "DM21", xc, yc, zc, 0, "ONLY");
-  // --- Then iron support plate 
-  zc = zc + sfe[2] + spsw1[2];
-  gMC->Gspos("DPFE", 1, "DM21", xc, yc, zc, 0, "ONLY");
-  // --- Then  converter plate 
-  zc = zc + sfe[2] + spb[2];
-  gMC->Gspos("DPPB", 1, "DM21", xc, yc, zc, 0, "ONLY");
-  // --- Lastly the preshower box 
-  zc = zc + spb[2] + spsw1[2];
-  gMC->Gspos("DW21", 1, "DM21", xc, yc, zc, 0, "ONLY");
-  
-  // **** MODULE TYPE 2 
-  
-  // ---  place gas box (as CPV), iron support, lead converter and gas box 
-  // ---  (preshower) in the module 
-  xc = 0.;
-  yc = 0.;
-  // --- First the CPV box 
-  zc = -(spsw2[2] + sfe[2] + spb[2] + spsw2[2]) + spsw2[2];
-  gMC->Gspos("DV11", 1, "DM11", xc, yc, zc, 0, "ONLY");
-  // --- Then iron support plate 
-  zc = zc + sfe[2] + spsw2[2];
-  gMC->Gspos("DPFE", 1, "DM11", xc, yc, zc, 0, "ONLY");
-  // --- Then lead converter plate 
-  zc = zc + sfe[2] + spb[2];
-  gMC->Gspos("DPPB", 1, "DM11", xc, yc, zc, 0, "ONLY");
-  // --- Lastly the preshower box 
-  zc = zc + spb[2] + spsw2[2];
-  gMC->Gspos("DW11", 1, "DM11", xc, yc, zc, 0, "ONLY");
-  
-  
-  // **** MODULE TYPE 3 
-  
-  // ---  place gas box (as CPV), iron support, lead converter and gas box 
-  // ---  (preshower) in the module 
-  xc = 0.;
-  yc = 0.;
-  // --- First the CPV box 
-  zc = -(spsw3[2] + sfe[2] + spb[2] + spsw3[2]) + spsw3[2];
-  gMC->Gspos("DV12", 1, "DM12", xc, yc, zc, 0, "ONLY");
-  // --- Then iron support plate 
-  zc = zc + sfe[2] + spsw3[2];
-  gMC->Gspos("DPFE", 1, "DM12", xc, yc, zc, 0, "ONLY");
-  // --- Then lead converter plate 
-  zc = zc + sfe[2] + spb[2];
-  gMC->Gspos("DPPB", 1, "DM12", xc, yc, zc, 0, "ONLY");
-  // --- Lastly the preshower box 
-  zc = zc + spb[2] + spsw3[2];
-  gMC->Gspos("DW12", 1, "DM12", xc, yc, zc, 0, "ONLY");
-  
-
-  // **** MODULE TYPE 4 
-  
-  // ---  place gas box (as CPV), iron support, lead converter and gas box 
-  // ---  (preshower) in the module 
-  xc = 0.;
-  yc = 0.;
-  // --- First the CPV box 
-  zc = -(spsw4[2] + sfe[2] + spb[2] + spsw4[2]) + spsw4[2];
-  gMC->Gspos("DV13", 1, "DM13", xc, yc, zc, 0, "ONLY");
-  // --- Then iron support plate 
-  zc = zc + sfe[2] + spsw4[2];
-  gMC->Gspos("DPFE", 1, "DM13", xc, yc, zc, 0, "ONLY");
-  // --- Then lead converter plate 
-  zc = zc + sfe[2] + spb[2];
-  gMC->Gspos("DPPB", 1, "DM13", xc, yc, zc, 0, "ONLY");
-  // --- Lastly the preshower box 
-  zc = zc + spb[2] + spsw4[2];
-  gMC->Gspos("DW13", 1, "DM13", xc, yc, zc, 0, "ONLY");
-  
-}
-//_____________________________________________________________________________
-void AliPMDv2::DrawModule()
-{
-  //
-  // Draw a shaded view of the Photon Multiplicity Detector
-  //
-
-  gMC->Gsatt("*", "seen", -1);
-  gMC->Gsatt("alic", "seen", 0);
-  //
-  // Set the visibility of the components
-  // 
-  gMC->Gsatt("DP21","seen",0);
-  gMC->Gsatt("DP22","seen",0);
-  gMC->Gsatt("DS21","seen",1);
-  gMC->Gsatt("DS22","seen",1);
-  gMC->Gsatt("DW21","seen",0);
-  gMC->Gsatt("DV21","seen",0);
-  gMC->Gsatt("DP11","seen",0);
-  gMC->Gsatt("DP12","seen",0);
-  gMC->Gsatt("DS11","seen",1);
-  gMC->Gsatt("DS12","seen",1);
-  gMC->Gsatt("DW11","seen",0);
-  gMC->Gsatt("DV11","seen",0);
-  gMC->Gsatt("DP13","seen",0);
-  gMC->Gsatt("DP14","seen",0);
-  gMC->Gsatt("DS13","seen",1);
-  gMC->Gsatt("DS14","seen",1);
-  gMC->Gsatt("DW12","seen",0); 
-  gMC->Gsatt("DV12","seen",0);
-  gMC->Gsatt("DP15","seen",0);
-  gMC->Gsatt("DP16","seen",0);
-  gMC->Gsatt("DS15","seen",1);
-  gMC->Gsatt("DS16","seen",1);
-  gMC->Gsatt("DW13","seen",0);
-  gMC->Gsatt("DV13","seen",0);
-  gMC->Gsatt("DPPB","seen",1);
-  gMC->Gsatt("DPW ","seen",1); 
-  gMC->Gsatt("DPFE","seen",1);
-  gMC->Gsatt("DM21","seen",1);
-  gMC->Gsatt("DM11","seen",1);
-  gMC->Gsatt("DM12","seen",1);
-  gMC->Gsatt("DM13","seen",1);
-  gMC->Gsatt("DPMD","seen",0);
-  gMC->Gsatt("DIQU","seen",0);
-  //
-  gMC->Gdopt("hide", "on");
-  gMC->Gdopt("shad", "on");
-  gMC->Gsatt("*", "fill", 7);
-  gMC->SetClipBox(".");
-  gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
-  gMC->DefaultRange();
-  gMC->Gdraw("alic", 40, 30, 0, 22, 15.5, .04, .04);
-  gMC->Gdhead(1111, "Photon Multiplicity Detector Version 1");
-  gMC->Gdman(17, 5, "MAN");
-  gMC->Gdopt("hide", "off");
-}
-
-//_____________________________________________________________________________
-void AliPMDv2::CreateMaterials()
-{
-  //
-  // Create materials for the PMD version 1
-  //
-  // ORIGIN    : Y. P. VIYOGI 
-  //
-  
-  // --- The Argon- CO2 mixture --- 
-  Float_t ag[2] = { 39.95 };
-  Float_t zg[2] = { 18. };
-  Float_t wg[2] = { .8,.2 };
-  Float_t dar   = .001782;   // --- Ar density in g/cm3 --- 
-  // --- CO2 --- 
-  Float_t ac[2] = { 12.,16. };
-  Float_t zc[2] = { 6.,8. };
-  Float_t wc[2] = { 1.,2. };
-  Float_t dc    = .001977;
-  Float_t dco   = .002;  // --- CO2 density in g/cm3 ---
-  
-  Float_t absl, radl, a, d, z;
-  Float_t dg;
-  Float_t x0ar;
-  Float_t buf[1];
-  Int_t nbuf;
-  
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  Int_t isxfld = gAlice->Field()->Integ();
-  Float_t sxmgmx = gAlice->Field()->Max();
-  
-  // --- Define the various materials for GEANT --- 
-  AliMaterial(1, "Pb    $", 207.19, 82., 11.35, .56, 18.5);
-  x0ar = 19.55 / dar;
-  AliMaterial(2, "Argon$", 39.95, 18., dar, x0ar, 6.5e4);
-  AliMixture(3, "CO2  $", ac, zc, dc, -2, wc);
-  AliMaterial(4, "Al   $", 26.98, 13., 2.7, 8.9, 18.5);
-  AliMaterial(6, "Fe   $", 55.85, 26., 7.87, 1.76, 18.5);
-  AliMaterial(7, "W    $", 183.85, 74., 19.3, .35, 10.3);
-  AliMaterial(8, "G10  $", 20., 10., 1.7, 19.4, 999);
-  AliMaterial(9, "SILIC$", 28.09, 14., 2.33, 9.36, 45.);
-  AliMaterial(10, "Be   $", 9.01, 4., 1.848, 35.3, 36.7);
-  AliMaterial(15, "Cu   $", 63.54, 29., 8.96, 1.43, 15.);
-  AliMaterial(16, "C    $", 12.01, 6., 2.265, 18.8, 49.9);
-  
-  AliMaterial(96, "MYLAR$", 8.73, 4.55, 1.39, 28.7, 62.);
-  AliMaterial(97, "CONCR$", 20., 10., 2.5, 10.7, 40.);
-  AliMaterial(98, "Vacum$", 1e-9, 1e-9, 1e-9, 1e16, 1e16);
-  AliMaterial(99, "Air  $", 14.61, 7.3, .0012, 30420., 67500.);
-  
-  //   define gas-mixtures 
-  
-  char namate[21];
-  gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf);
-  ag[1] = a;
-  zg[1] = z;
-  dg = (dar * 4 + dco) / 5;
-  AliMixture(5, "ArCO2$", ag, zg, dg, 2, wg);
-  
-  // Define tracking media 
-  AliMedium(1, "Pb conv.$", 1,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(7, "W  conv.$", 7,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(8, "G10plate$", 8,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(4, "Al      $", 4,  0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(6, "Fe      $", 6,  0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(5, "ArCO2   $", 5,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
-  AliMedium(9, "SILICON $", 9,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
-  AliMedium(10, "Be      $", 10, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(98, "Vacuum  $", 98, 0, 0, isxfld, sxmgmx, 1., .1, .1,  10);
-  AliMedium(99, "Air gaps$", 99, 0, 0, isxfld, sxmgmx, 1., .1, .1,  .1);
-  AliMedium(15, "Cu      $", 15, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(16, "C       $", 16, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  
-  // --- Generate explicitly delta rays in the iron, aluminium and lead --- 
-  gMC->Gstpar(idtmed[600], "LOSS", 3.);
-  gMC->Gstpar(idtmed[600], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[603], "LOSS", 3.);
-  gMC->Gstpar(idtmed[603], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[604], "LOSS", 3.);
-  gMC->Gstpar(idtmed[604], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[605], "LOSS", 3.);
-  gMC->Gstpar(idtmed[605], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[606], "LOSS", 3.);
-  gMC->Gstpar(idtmed[606], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[607], "LOSS", 3.);
-  gMC->Gstpar(idtmed[607], "DRAY", 1.);
-  
-  // --- Energy cut-offs in the Pb and Al to gain time in tracking --- 
-  // --- without affecting the hit patterns --- 
-  gMC->Gstpar(idtmed[600], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTHAD", 1e-4);
-  
-  // --- Prevent particles stopping in the gas due to energy cut-off --- 
-  gMC->Gstpar(idtmed[604], "CUTGAM", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTELE", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTNEU", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTHAD", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTMUO", 1e-5);
-}
-
-//_____________________________________________________________________________
-void AliPMDv2::Init()
-{
-  //
-  // Initialises PMD detector after it has been built
-  //
-  Int_t i;
-  kdet=1;
-  //
-  printf("\n");
-  for(i=0;i<35;i++) printf("*");
-  printf(" PMD_INIT ");
-  for(i=0;i<35;i++) printf("*");
-  printf("\n");
-  printf("                 PMD simulation package initialised\n");
-  printf(" parameters of pmd\n");
-  printf("%6d %10.2f %10.2f %10.2f %10.2f %10.2f\n",kdet,thmin,thmax,zdist,thlow,thhigh);
-  //
-  for(i=0;i<80;i++) printf("*");
-  printf("\n");
-  //
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  fMedSens=idtmed[605-1];
-}
-
-//_____________________________________________________________________________
-void AliPMDv2::StepManager()
-{
-  //
-  // Called at each step in the PMD
-  //
-  Int_t   copy;
-  Float_t hits[4], destep;
-  Float_t center[3] = {0,0,0};
-  Int_t   vol[5];
-  const char *namep;
-  
-  if(gMC->GetMedium() == fMedSens && (destep = gMC->Edep())) {
-    
-    gMC->CurrentVolID(copy);
-    vol[0]=copy;
-    gMC->CurrentVolOffID(1,copy);
-    vol[1]=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->CurrentVolOffID(3,copy);
-    vol[3]=copy;
-    gMC->CurrentVolOffID(4,copy);
-    vol[4]=copy;
-    gMC->Gdtom(center,hits,1);
-    hits[3] = destep*1e9; //Number in eV
-    AddHit(gAlice->CurrentTrack(), vol, hits);
-  }
-}
diff --git a/PMD/AliPMDv2.h b/PMD/AliPMDv2.h
deleted file mode 100644 (file)
index 5bf7682..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef PMDv2_H
-#define PMDv2_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//////////////////////////////////////////////////////////
-//  Manager and hits classes for set:PMD  version 0     //
-//////////////////////////////////////////////////////////
-#include "AliPMD.h"
-class AliPMDv2 : public AliPMD {
-
-private:
-  Int_t fMedSens;
-  
-public:
-  AliPMDv2();
-  AliPMDv2(const char *name, const char *title);
-  virtual      ~AliPMDv2() {}
-  virtual void  Coordinates();
-  virtual void  Coordnew();
-  virtual void  CreateGeometry();
-  virtual void  CreateInside();
-  virtual void  CreatePads();
-  virtual void  CreateMaterials();
-  virtual void  Init();
-  virtual Int_t IsVersion() const {return 2;}
-  virtual void  StepManager();
-  virtual void  DrawModule();
-   ClassDef(AliPMDv2,1)  //Hits manager for set:PMD
-};
-#endif
diff --git a/PMD/AliPMDv3.cxx b/PMD/AliPMDv3.cxx
deleted file mode 100644 (file)
index 00d7362..0000000
+++ /dev/null
@@ -1,812 +0,0 @@
-/***************************************************************************
- * 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  March 2001 new geometry for relocated PMD : Viyogi
-
-Revision 1.8  2000/06/09 10:31:36  hristov
-sqrt changed to TMath::Sqrt
-
-Revision 1.7  1999/11/03 18:01:40  fca
-Remove non orthogonal unused matrix
-
-Revision 1.6  1999/09/29 09:24:28  fca
-Introduction of the Copyright and cvs Log
-
-*/
-//
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  Photon Multiplicity Detector Version 1                                   //
-//                                                                           //
-//Begin_Html
-/*
-<img src="picts/AliPMDv3Class.gif">
-*/
-//End_Html
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-////
-
-#include "AliPMDv3.h"
-#include "AliRun.h"
-#include "AliMagF.h"
-#include "AliMC.h" 
-#include "AliConst.h" 
-#include "iostream.h"
-static Int_t   kdet, ncell_sm, ncell_hole;
-static Float_t zdist, zdist1;
-static Float_t sm_length, sm_thick, cell_radius, cell_wall, cell_depth;
-static Float_t boundary, th_base, th_air, th_pcb;
-static Float_t th_lead, th_steel;
-
-ClassImp(AliPMDv3)
-  //_____________________________________________________________________________
-  AliPMDv3::AliPMDv3()
-{
-  //
-  // Default constructor 
-  //
-  fMedSens=0;
-}
-//_____________________________________________________________________________
-AliPMDv3::AliPMDv3(const char *name, const char *title)
-  : AliPMD(name,title)
-{
-  //
-  // Standard constructor
-  //
-  fMedSens=0;
-}
-
-//_____________________________________________________________________________
-void AliPMDv3::CreateGeometry()
-{
-  //
-  // Create geometry for Photon Multiplicity Detector Version 3 :
-  // April 2, 2001
-  //
-  //Begin_Html
-  /*
-    <img src="picts/AliPMDv3.gif">
-  */
-  //End_Html
-  //Begin_Html
-  /*
-    <img src="picts/AliPMDv3Tree.gif">
-  */
-  //End_Html
-  GetParameters();
-  CreateSupermodule();
-  CreatePMD();
-}
-
-//_____________________________________________________________________________
-void AliPMDv3::CreateSupermodule()
-{
-  //
-  // Creates the geometry of the cells, places them in  supermodule which
-  // is a rhombus object.
-
-  // *** DEFINITION OF THE GEOMETRY OF THE PMD  *** 
-  // *** HEXAGONAL CELLS WITH 10 MM SQUARE EQUIVALENT
-  // -- Author :     S. Chattopadhyay, 02/04/1999. 
-
-  // Basic unit is ECAR, a hexagonal cell made of Ar+CO2, which is placed inside another 
-  // hexagonal cell made of Cu (ECCU) with larger radius, compared to ECAR. The difference
-  // in radius gives the dimension of half width of each cell wall.
-  // These cells are placed as 72 x 72 array in a 
-  // rhombus shaped supermodule (EHC1). The rhombus shaped modules are designed
-  // to have closed packed structure.
-  //
-  // Each supermodule (ESM1 or ESM2), made of G10 is filled with following components
-  //  EAIR --> Air gap between gas hexagonal cells and G10 backing.
-  //  EHC1 --> Rhombus shaped parallelopiped containing the hexagonal cells
-  //  EAIR --> Air gap between gas hexagonal cells and G10 backing.
-  //
-  // ESM1 is placed in EMM1 along with EMPB (Pb converter) and EMFE (iron support) 
-  //  EMM1 made of
-  // ESM1 --> Normal supermodule
-  // EMPB --> Pb converter
-  // EMFE --> Fe backing
-  //
-  // ESM2 is placed in EMM2 along with EMPB (Pb converter) and EMFE (iron support) 
-  //  EMM2 made of
-  // ESM2 --> Special supermodule containing the cut for the hole
-  // EMPB --> Pb converter
-  // EMFE --> Fe backing
-  
-  //
-  //                                EPMD
-  //                                  |             
-  //                                          |
-  //        -------------------------------------------------------------------
-  //        |                   |                          |                   |
-  //       EHOL                EMM1                       EMM2               EALM
-  //                            |                           |
-  //                ----------------------       ------------------------
-  //                |       |      |     |       |      |        |      |
-  //               ESM1    EMPB  EMFE  ESM1     ESM2   EMPB     EMFE   ESM2
-  //                |                            |
-  //          ------------                 -------------
-  //          |     |     |                |     |      |
-  //        EAIR  EHC1   EAIR             EAIR  EHC2  EAIR
-  //                |                            |
-  //              ECCU                          ECCU
-  //                |                            |
-  //              ECAR                          ECAR 
-  
-
-  Int_t i, j;
-  Float_t xb, yb, zb;
-  Int_t number;
-  Int_t ihrotm,irotdm;
-  const Float_t root3_2 = TMath::Sqrt(3.) /2.; 
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  AliMatrix(ihrotm, 90., 30.,   90.,  120., 0., 0.);
-  AliMatrix(irotdm, 90., 180.,  90.,  270., 180., 0.);
-  zdist = TMath::Abs(zdist1);
-
-
-  //Subhasis, dimensional parameters of rhombus (dpara) as given to gsvolu
-  // rhombus to accomodate 72 x 72 hexagons, and with total 1.2cm extension  
-  //(1mm tolerance on both side and 5mm thick G10 wall)
-  // 
-  
-  // **** CELL SIZE 20mm^2 EQUIVALENT
-
-  // Inner hexagon filled with gas (Ar+CO2)
-
-  Float_t hexd2[10] = {0.,360.,6,2,-0.25,0.,0.23,0.25,0.,0.23};
-
-  hexd2[4]= - cell_depth/2.;
-  hexd2[7]=   cell_depth/2.;
-  hexd2[6]=   cell_radius - cell_wall;
-  hexd2[9]=   cell_radius - cell_wall;
-  
-  gMC->Gsvolu("ECAR", "PGON", idtmed[604], hexd2,10);
-  gMC->Gsatt("ECAR", "SEEN", 0);
-
-  // Outer hexagon made of Copper
-
-  Float_t hexd1[10] = {0.,360.,6,2,-0.25,0.,0.25,0.25,0.,0.25};
-  //total wall thickness=0.2*2
-
-  hexd1[4]= - cell_depth/2.;
-  hexd1[7]=   cell_depth/2.;
-  hexd1[6]=   cell_radius;
-  hexd1[9]=   cell_radius;
-
-  gMC->Gsvolu("ECCU", "PGON", idtmed[614], hexd1,10);
-  gMC->Gsatt("ECCU", "SEEN", 1);
-
-
-// Rhombus shaped supermodules (defined by PARA) 
-
-// volume for SUPERMODULE 
-   
-  Float_t dpara_sm[6] = {12.5,12.5,0.8,30.,0.,0.};
-  dpara_sm[0]=(ncell_sm+0.25)*hexd1[6] ;
-  dpara_sm[1] = dpara_sm[0] *root3_2;
-  dpara_sm[2] = sm_thick/2.;
-
-//  G10 inner part of supermodule, these will be 9 in all, one being special
-
-  Float_t dpara_g10[6] = {12.5,12.5,8.,30.,0.,0.};
-  dpara_g10[0]= dpara_sm[0];
-  dpara_g10[1]= dpara_sm[1];
-  dpara_g10[2]= dpara_sm[2];
-
-//
-  gMC->Gsvolu("ESM1","PARA", idtmed[607], dpara_g10, 6);
-  gMC->Gsatt("ESM1", "SEEN", 0);
-  //
-  gMC->Gsvolu("ESM2","PARA", idtmed[607], dpara_g10, 6);
-  gMC->Gsatt("ESM2", "SEEN", 0);
-
-  // Air residing between the PCB and the base
-
-  Float_t dpara_air[6] = {12.5,12.5,8.,30.,0.,0.};
-  dpara_air[0]= dpara_sm[0];
-  dpara_air[1]= dpara_sm[1];
-  dpara_air[2]= th_air/2.;
-
-  gMC->Gsvolu("EAIR","PARA", idtmed[698], dpara_air, 6);
-  gMC->Gsatt("EAIR", "SEEN", 0);
-
-  // volume for honeycomb chamber (EHC1 and EHC2)
-
-  Float_t dpara[6] = {12.5,12.5,0.4,30.,0.,0.};
-  dpara[0] = dpara_sm[0];
-  dpara[1] = dpara_sm[1];
-  dpara[2] = cell_depth/2.;
-
-  gMC->Gsvolu("EHC1","PARA", idtmed[698], dpara, 6);
-  gMC->Gsatt("EHC1", "SEEN", 1);
-  
-  gMC->Gsvolu("EHC2","PARA", idtmed[698], dpara, 6);
-  gMC->Gsatt("EHC2", "SEEN", 1);
-
-  // --- place  inner hex inside outer hex 
-
-  gMC->Gsposp("ECAR", 1, "ECCU", 0., 0., 0., 0, "ONLY", hexd2, 10);
-
-  // Place outer hex ECCU cells  inside EHC1 (72 X 72)
-
-  Int_t xrow=1;
-
-  yb = -dpara[1] + (1./root3_2)*hexd1[6];
-  zb = 0.;
-
-  for (j = 1; j <= ncell_sm; ++j) {
-    xb =-(dpara[0] + dpara[1]*0.577) + 2*hexd1[6]; //0.577=tan(30deg)
-    if(xrow >= 2){
-      xb = xb+(xrow-1)*hexd1[6];
-    }
-    for (i = 1; i <= ncell_sm; ++i) {
-      number = i+(j-1)*ncell_sm;
-      gMC->Gsposp("ECCU", number, "EHC1", xb,yb,zb, ihrotm, "ONLY", hexd1,10);
-      xb += (hexd1[6]*2.);
-    }
-    xrow = xrow+1;
-    yb += (hexd1[6]*TMath::Sqrt(3.));
-  }
-
-
-  // Place outer hex ECCU inside EHC2
-  // skip cells which go into the hole in top left corner.
-
-  xrow=1;
-  yb = -dpara[1] + (1./root3_2)*hexd1[6];
-  zb = 0.;
-  for (j = 1; j <= ncell_sm; ++j) {
-    xb =-(dpara[0] + dpara[1]*0.577) + 2*hexd1[6];
-    if(xrow >= 2){
-      xb = xb+(xrow-1)*hexd1[6];
-    }
-    for (i = 1; i <= ncell_sm; ++i) {
-      number = i+(j-1)*ncell_sm;
-      if(i > ncell_hole || j <= (ncell_sm - ncell_hole))
-       {
-         gMC->Gsposp("ECCU", number, "EHC2", xb,yb,zb, ihrotm, "ONLY", hexd1,10);
-       } 
-      xb += (hexd1[6]*2.);
-    }
-    xrow = xrow+1;
-    yb += (hexd1[6]*TMath::Sqrt(3.));
-  }
-
-  // Place EHC1 and EAIR into  ESM1; EHC2 and EAIR into ESM2 
-
-  Float_t z_air1,z_air2,z_gas; 
-
-  z_air1= -dpara_g10[2] + th_base + dpara_air[2]; 
-  gMC->Gspos("EAIR", 1, "ESM1", 0., 0., z_air1, 0, "ONLY");
-  z_gas=z_air1+dpara_air[2]+ th_pcb + dpara[2]; 
-  gMC->Gspos("EHC1", 1, "ESM1", 0., 0., z_gas, 0, "ONLY");
-  z_air2=z_gas+dpara[2]+ th_pcb + dpara_air[2]; 
-  gMC->Gspos("EAIR", 2, "ESM1", 0., 0., z_air2, 0, "ONLY");
-
-  z_air1= -dpara_g10[2] + th_base + dpara_air[2]; 
-  gMC->Gspos("EAIR", 1, "ESM2", 0., 0., z_air1, 0, "ONLY");
-  z_gas=z_air1+dpara_air[2]+ th_pcb + dpara[2]; 
-  gMC->Gspos("EHC2", 1, "ESM2", 0., 0., z_gas, 0, "ONLY");
-  z_air2=z_gas+dpara[2]+ th_pcb + dpara_air[2]; 
-  gMC->Gspos("EAIR", 2, "ESM2", 0., 0., z_air2, 0, "ONLY");
-
-}
-//_____________________________________________________________________________
-
-void AliPMDv3::CreatePMD()
-{
-  //
-  // Create final detector from supermodules
-  //
-  // -- Author :     Y.P. VIYOGI, 07/05/1996. 
-  // -- Modified:    P.V.K.S.Baba(JU), 15-12-97. 
-  // -- Modified:    For New Geometry YPV, March 2001.
-
-
-  // Gaspmd, the dimension of TUBE mother volume of PMD,
-
-  Float_t gaspmd[3] = { 0.,150.,10.};
-
-  const Float_t root3_2 = TMath::Sqrt(3.)/2.;
-  const Float_t pi = 3.14159;
-  Int_t i,j;
-
-  Float_t  xp, yp, zp;
-
-  Int_t num_mod;
-  Int_t jhrot12,jhrot13, irotdm;
-
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  
-  //  VOLUMES Names : begining with D for all PMD volumes, 
-  // The names of SIZE variables begin with S and have more meaningful
-  // characters as shown below. 
-  
-  //           VOLUME  SIZE    MEDIUM  :       REMARKS 
-  //           ------  -----   ------  : --------------------------- 
-  
-  //           EPMD    GASPMD   AIR    : INSIDE PMD  and its SIZE 
-  
-  // *** Define the  EPMD   Volume and fill with air *** 
-
-  gMC->Gsvolu("EPMD", "TUBE", idtmed[698], gaspmd, 3);
-  gMC->Gsatt("EPMD", "SEEN", 0);
-
-  AliMatrix(irotdm, 90., 0.,  90.,  90., 180., 0.);
-   
-  AliMatrix(jhrot12, 90., 120., 90., 210., 0., 0.);
-  AliMatrix(jhrot13, 90., 240., 90., 330., 0., 0.);
-
-  // dpara_emm1 array contains parameters of the imaginary volume EMM1, 
-  // this is just a little more than the side of a supermodule. 
-
-  Float_t dm_thick = 2. * sm_thick + th_lead + th_steel;
-
-  Float_t dpara_emm1[6] = {12.5,12.5,0.8,30.,0.,0.};
-  dpara_emm1[0] = sm_length/2.;
-  dpara_emm1[1] = dpara_emm1[0] *root3_2;
-  dpara_emm1[2] = dm_thick/2.;
-
-  // EMM1 : normal volume as in old cases
-  gMC->Gsvolu("EMM1","PARA", idtmed[698], dpara_emm1, 6);
-  gMC->Gsatt("EMM1", "SEEN", 1);
-
-  // EMM2 : special volume containing special supermodule
-  gMC->Gsvolu("EMM2","PARA", idtmed[698], dpara_emm1, 6);
-  gMC->Gsatt("EMM2", "SEEN", 1);
-
-  //
-  // --- DEFINE MODules, iron, and lead voLUMES 
-  
-  //place ESM1 into EMM1 and ESM2 into EMM2 along with EMPB and EMFE
-
-  Float_t dx = sm_length;
-  Float_t dy = dx * root3_2;
-
-  Float_t xsup[9] = {-dx/2., dx/2., 3.*dx/2., 
-                    -dx,    0.,       dx,
-                    -3.*dx/2., -dx/2., dx/2.};
-
-  Float_t ysup[9] = {dy,  dy,  dy, 
-                     0.,  0.,  0., 
-                    -dy, -dy, -dy};
-
-  //
-  
-  // volume for SUPERMODULE 
-
-  //   Pb Convertor 
-  Float_t dpara_pb[6] = {12.5,12.5,8.,30.,0.,0.};
-  dpara_pb[0] = sm_length/2.;
-  dpara_pb[1] = dpara_pb[0] * root3_2;
-  dpara_pb[2] = th_lead/2.;
-
-  gMC->Gsvolu("EMPB","PARA", idtmed[600], dpara_pb, 6);
-  gMC->Gsatt ("EMPB", "SEEN", 0);
-
-  //   Fe Support
-  Float_t dpara_fe[6] = {12.5,12.5,8.,30.,0.,0.};
-  dpara_fe[0] = dpara_pb[0];
-  dpara_fe[1] = dpara_pb[1];
-  dpara_fe[2] = th_steel/2.;
-
-  gMC->Gsvolu("EMFE","PARA", idtmed[618], dpara_fe, 6);
-  gMC->Gsatt ("EMFE", "SEEN", 0);
-
-  // position supermodule ESM1 inside EMM1
-
-  Float_t z_ps,z_pb,z_fe,z_cv; 
-  
-  z_ps = - dpara_emm1[2] + sm_thick/2.;
-  gMC->Gspos("ESM1", 2, "EMM1", 0., 0., z_ps, irotdm, "ONLY");
-  z_pb=z_ps+sm_thick/2.+dpara_pb[2];
-  gMC->Gspos("EMPB", 1, "EMM1", 0., 0., z_pb, 0, "ONLY");
-  z_fe=z_pb+dpara_pb[2]+dpara_fe[2];
-  gMC->Gspos("EMFE", 1, "EMM1", 0., 0., z_fe, 0, "ONLY");
-  z_cv=z_fe+dpara_fe[2]+sm_thick/2.;
-  gMC->Gspos("ESM1", 1, "EMM1", 0., 0., z_cv, 0, "ONLY");
-
-  // position supermodule  ESM2 inside EMM2
-
-  z_ps = - dpara_emm1[2] + sm_thick/2.;
-  gMC->Gspos("ESM2", 2, "EMM2", 0., 0., z_ps, irotdm, "ONLY");
-  z_pb = z_ps + sm_thick/2.+dpara_pb[2];
-  gMC->Gspos("EMPB", 1, "EMM2", 0., 0., z_pb, 0, "ONLY");
-  z_fe = z_pb + dpara_pb[2]+dpara_fe[2];
-  gMC->Gspos("EMFE", 1, "EMM2", 0., 0., z_fe, 0, "ONLY");
-  z_cv = z_fe + dpara_fe[2]+sm_thick/2.;
-  gMC->Gspos("ESM2", 1, "EMM2", 0., 0., z_cv, 0, "ONLY");
-  // 
-
-  // EHOL is a tube structure made of air
-
-  Float_t d_hole[3];
-  d_hole[0] = 0.;
-  d_hole[1] = ncell_hole * cell_radius *2. * root3_2 + boundary;
-  d_hole[2] = dm_thick/2.;
-
-  gMC->Gsvolu("EHOL", "TUBE", idtmed[698], d_hole, 3);
-  gMC->Gsatt("EHOL", "SEEN", 1);
-
-  //Al-rod as boundary of the supermodules
-
-  Float_t Al_rod[3] ;
-  Al_rod[0] = sm_length * 3/2.;
-  Al_rod[1] = boundary;
-  Al_rod[2] = dm_thick/2.;
-
-  gMC->Gsvolu("EALM","BOX ", idtmed[698], Al_rod, 3);
-  gMC->Gsatt ("EALM", "SEEN", 1);
-  Float_t xalm[3];
-  xalm[0]=Al_rod[0];
-  xalm[1]=-xalm[0]/2.;
-  xalm[2]=xalm[1];
-
-  Float_t yalm[3];
-  yalm[0]=0.;
-  yalm[1]=xalm[0]*root3_2;
-  yalm[2]=-yalm[1];
-
-  // delx = full side of the supermodule
-  Float_t delx=sm_length * 3.;
-  Float_t x1= delx*root3_2 /2.;
-  Float_t x4=delx/4.; 
-
-  // xpos and ypos are the x & y coordinates of the centres of EMM1 volumes
-
-  Float_t xoff = boundary * TMath::Tan(pi/6.);
-  Float_t xmod[3]={x4 + xoff , x4 + xoff, -2.*x4-boundary/root3_2};
-  Float_t ymod[3] = {-x1 - boundary, x1 + boundary, 0.};
-  Float_t xpos[9], ypos[9];
-  Float_t theta[3] = {0., 2.*pi/3., 4.*pi/3.};
-  Int_t irotate[3] = {0, jhrot12, jhrot13};
-
-  for (j=0; j<3; ++j)
-    {
-      gMC->Gsposp("EALM", j+1, "EPMD", xalm[j],yalm[j], 0., irotate[j], "ONLY", Al_rod, 3);
-      for (i=0; i<9; ++i)
-       {
-         xpos[i]=xmod[j] + xsup[i]*TMath::Cos(theta[j]) - ysup[i]*TMath::Sin(theta[j]);
-         ypos[i]=ymod[j] + xsup[i]*TMath::Sin(theta[j]) + ysup[i]*TMath::Cos(theta[j]);
-
-         printf("%f %f \n", xpos[i], ypos[i]);
-
-         num_mod = i + 1 + j*9;
-
-         printf("\nNum_mod %d\n",num_mod);
-
-         if(i==0){ 
-           gMC->Gsposp("EMM2", num_mod, "EPMD", xpos[i],ypos[i], 0., irotate[j], "ONLY", dpara_emm1, 6);
-         }
-         else {
-           gMC->Gsposp("EMM1", num_mod, "EPMD", xpos[i],ypos[i], 0., irotate[j], "ONLY", dpara_emm1, 6);
-         }
-       }
-    }
-
-       
-  // place EHOL in the centre of EPMD
-  gMC->Gspos("EHOL", 1, "EPMD", 0.,0.,0., 0, "ONLY");
-
-  // --- Place the EPMD in ALICE 
-  xp = 0.;
-  yp = 0.;
-  zp = zdist1;
-  
-  gMC->Gspos("EPMD", 1, "ALIC", xp,yp,zp, 0, "ONLY");
-    
-}
-
-//_____________________________________________________________________________
-void AliPMDv3::DrawModule()
-{
-  //
-  // Draw a shaded view of the Photon Multiplicity Detector
-  //
-
-  gMC->Gsatt("*", "seen", -1);
-  gMC->Gsatt("alic", "seen", 0);
-  //
-  // Set the visibility of the components
-  // 
-  gMC->Gsatt("ECAR","seen",0);
-  gMC->Gsatt("ECCU","seen",1);
-  gMC->Gsatt("EHC1","seen",1);
-  gMC->Gsatt("EHC1","seen",1);
-  gMC->Gsatt("EHC2","seen",1);
-  gMC->Gsatt("EMM1","seen",1);
-  gMC->Gsatt("EHOL","seen",1);
-  gMC->Gsatt("EPMD","seen",0);
-  //
-  gMC->Gdopt("hide", "on");
-  gMC->Gdopt("shad", "on");
-  gMC->Gsatt("*", "fill", 7);
-  gMC->SetClipBox(".");
-  gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
-  gMC->DefaultRange();
-  gMC->Gdraw("alic", 40, 30, 0, 22, 20.5, .02, .02);
-  gMC->Gdhead(1111, "Photon Multiplicity Detector Version 1");
-
-  //gMC->Gdman(17, 5, "MAN");
-  gMC->Gdopt("hide", "off");
-}
-
-//_____________________________________________________________________________
-void AliPMDv3::CreateMaterials()
-{
-  //
-  // Create materials for the PMD
-  //
-  // ORIGIN    : Y. P. VIYOGI 
-  //
-  
-  // --- The Argon- CO2 mixture --- 
-  Float_t ag[2] = { 39.95 };
-  Float_t zg[2] = { 18. };
-  Float_t wg[2] = { .8,.2 };
-  Float_t dar   = .001782;   // --- Ar density in g/cm3 --- 
-  // --- CO2 --- 
-  Float_t ac[2] = { 12.,16. };
-  Float_t zc[2] = { 6.,8. };
-  Float_t wc[2] = { 1.,2. };
-  Float_t dc    = .001977;
-  Float_t dco   = .002;  // --- CO2 density in g/cm3 ---
-  
-  Float_t absl, radl, a, d, z;
-  Float_t dg;
-  Float_t x0ar;
-  //Float_t x0xe=2.4;
-  //Float_t dxe=0.005858;
-  Float_t buf[1];
-  Int_t nbuf;
-  Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
-  Float_t zsteel[4] = { 26.,24.,28.,14. };
-  Float_t wsteel[4] = { .715,.18,.1,.005 };
-  
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  Int_t isxfld = gAlice->Field()->Integ();
-  Float_t sxmgmx = gAlice->Field()->Max();
-  
-  // --- Define the various materials for GEANT --- 
-  AliMaterial(1, "Pb    $", 207.19, 82., 11.35, .56, 18.5);
-  x0ar = 19.55 / dar;
-  AliMaterial(2, "Argon$", 39.95, 18., dar, x0ar, 6.5e4);
-  AliMixture(3, "CO2  $", ac, zc, dc, -2, wc);
-  AliMaterial(4, "Al   $", 26.98, 13., 2.7, 8.9, 18.5);
-  AliMaterial(6, "Fe   $", 55.85, 26., 7.87, 1.76, 18.5);
-  AliMaterial(7, "W    $", 183.85, 74., 19.3, .35, 10.3);
-  AliMaterial(8, "G10  $", 20., 10., 1.7, 19.4, 999.);
-  AliMaterial(9, "SILIC$", 28.09, 14., 2.33, 9.36, 45.);
-  AliMaterial(10, "Be   $", 9.01, 4., 1.848, 35.3, 36.7);
-  AliMaterial(15, "Cu   $", 63.54, 29., 8.96, 1.43, 15.);
-  AliMaterial(16, "C    $", 12.01, 6., 2.265, 18.8, 49.9);
-  AliMaterial(17, "POLYCARBONATE    $", 20., 10., 1.2, 34.6, 999.);
-  AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel); 
-  // AliMaterial(31, "Xenon$", 131.3, 54., dxe, x0xe, 6.5e4);
-  
-  AliMaterial(96, "MYLAR$", 8.73, 4.55, 1.39, 28.7, 62.);
-  AliMaterial(97, "CONCR$", 20., 10., 2.5, 10.7, 40.);
-  AliMaterial(98, "Vacum$", 1e-9, 1e-9, 1e-9, 1e16, 1e16);
-  AliMaterial(99, "Air  $", 14.61, 7.3, .0012, 30420., 67500.);
-  //   define gas-mixtures 
-  
-  char namate[21];
-  gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf);
-  ag[1] = a;
-  zg[1] = z;
-  dg = (dar * 4 + dco) / 5;
-  AliMixture(5, "ArCO2$", ag, zg, dg, 2, wg);
-  
-  // Define tracking media 
-  AliMedium(1, "Pb conv.$", 1,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(7, "W  conv.$", 7,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(8, "G10plate$", 8,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  AliMedium(4, "Al      $", 4,  0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(6, "Fe      $", 6,  0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(5, "ArCO2   $", 5,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
-  AliMedium(9, "SILICON $", 9,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
-  AliMedium(10, "Be      $", 10, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(98, "Vacuum  $", 98, 0, 0, isxfld, sxmgmx, 1., .1, .1,  10);
-  AliMedium(99, "Air gaps$", 99, 0, 0, isxfld, sxmgmx, 1., .1, .1,  .1);
-  AliMedium(15, "Cu      $", 15, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(16, "C       $", 16, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(17, "PLOYCARB$", 17, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
-  AliMedium(19, " S steel$", 19, 0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
-  //  AliMedium(31, "Xenon   $", 31,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
-  
-  // --- Generate explicitly delta rays in the iron, aluminium and lead --- 
-  gMC->Gstpar(idtmed[600], "LOSS", 3.);
-  gMC->Gstpar(idtmed[600], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[603], "LOSS", 3.);
-  gMC->Gstpar(idtmed[603], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[604], "LOSS", 3.);
-  gMC->Gstpar(idtmed[604], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[605], "LOSS", 3.);
-  gMC->Gstpar(idtmed[605], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[606], "LOSS", 3.);
-  gMC->Gstpar(idtmed[606], "DRAY", 1.);
-  
-  gMC->Gstpar(idtmed[607], "LOSS", 3.);
-  gMC->Gstpar(idtmed[607], "DRAY", 1.);
-  
-  // --- Energy cut-offs in the Pb and Al to gain time in tracking --- 
-  // --- without affecting the hit patterns --- 
-  gMC->Gstpar(idtmed[600], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[600], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[605], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[606], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[603], "CUTHAD", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTGAM", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTELE", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTNEU", 1e-4);
-  gMC->Gstpar(idtmed[609], "CUTHAD", 1e-4);
-  
-  // --- Prevent particles stopping in the gas due to energy cut-off --- 
-  gMC->Gstpar(idtmed[604], "CUTGAM", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTELE", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTNEU", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTHAD", 1e-5);
-  gMC->Gstpar(idtmed[604], "CUTMUO", 1e-5);
-}
-
-//_____________________________________________________________________________
-void AliPMDv3::Init()
-{
-  //
-  // Initialises PMD detector after it has been built
-  //
-  Int_t i;
-  kdet=1;
-  //
-  printf("\n");
-  for(i=0;i<35;i++) printf("*");
-  printf(" PMD_INIT ");
-  for(i=0;i<35;i++) printf("*");
-  printf("\n");
-  printf("                 PMD simulation package (v3) initialised\n");
-  printf(" parameters of pmd\n");
-  printf("%10.2f %10.2f %10.2f %10.2f\n", cell_radius,cell_wall,cell_depth,zdist1 );
-  
-  for(i=0;i<80;i++) printf("*");
-  printf("\n");
-  
-  Int_t *idtmed = fIdtmed->GetArray()-599;
-  fMedSens=idtmed[605-1];
-}
-
-//_____________________________________________________________________________
-void AliPMDv3::StepManager()
-{
-  //
-  // Called at each step in the PMD
-  //
-  Int_t   copy;
-  Float_t hits[4], destep;
-  Float_t center[3] = {0,0,0};
-  Int_t   vol[5];
-  //char *namep;
-  
-  if(gMC->GetMedium() == fMedSens && (destep = gMC->Edep())) {
-  
-    gMC->CurrentVolID(copy);
-
-    //namep=gMC->CurrentVolName();
-    //printf("Current vol is %s \n",namep);
-
-    vol[0]=copy;
-    gMC->CurrentVolOffID(1,copy);
-
-    //namep=gMC->CurrentVolOffName(1);
-    //printf("Current vol 11 is %s \n",namep);
-
-    vol[1]=copy;
-    gMC->CurrentVolOffID(2,copy);
-
-    //namep=gMC->CurrentVolOffName(2);
-    //printf("Current vol 22 is %s \n",namep);
-
-    vol[2]=copy;
-
-    // if(strncmp(namep,"EHC1",4))vol[2]=1;
-
-    gMC->CurrentVolOffID(3,copy);
-
-    //namep=gMC->CurrentVolOffName(3);
-    //printf("Current vol 33 is %s \n",namep);
-
-    vol[3]=copy;
-    gMC->CurrentVolOffID(4,copy);
-
-    //namep=gMC->CurrentVolOffName(4);
-    //printf("Current vol 44 is %s \n",namep);
-
-    vol[4]=copy;
-    //printf("volume number %d,%d,%d,%d,%d,%f \n",vol[0],vol[1],vol[2],vol[3],vol[4],destep*1000000);
-
-    gMC->Gdtom(center,hits,1);
-    hits[3] = destep*1e9; //Number in eV
-    AddHit(gAlice->CurrentTrack(), vol, hits);
-  }
-}
-
-  
-//------------------------------------------------------------------------
-// Get parameters
-
-void AliPMDv3::GetParameters()
-{
-  Int_t ncell_um, num_um;
-  ncell_um=24;
-  num_um=3;
-  ncell_hole=12;
-  cell_radius=0.25;
-  cell_wall=0.02;
-  cell_depth=0.25 * 2.;
-  //
-  boundary=0.7;
-  ncell_sm=ncell_um * num_um;  //no. of cells in a row in one supermodule
-  sm_length= ((ncell_sm + 0.25 ) * cell_radius) * 2.;
-  //
-  th_base=0.3;
-  th_air=0.1;
-  th_pcb=0.16;
-  //
-  sm_thick = th_base + th_air + th_pcb + cell_depth + th_pcb + th_air + th_pcb;
-  //
-  th_lead=1.5;
-  th_steel=0.5;
-  //
-  zdist1 = -370.;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/PMD/AliPMDv3.h b/PMD/AliPMDv3.h
deleted file mode 100644 (file)
index 240c5da..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef PMDV3_H
-#define PMDV3_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-////////////////////////////////////////////////
-//  Manager and hits classes for set:PMD      //
-////////////////////////////////////////////////
-#include "AliPMD.h"
-
-//___________________________________________
-class AliPMDv3 : public AliPMD {
-
-private:
-  Int_t fMedSens;
-  
-public:
-  AliPMDv3();
-  AliPMDv3(const char *name, const char *title);
-  virtual      ~AliPMDv3() {}
-  virtual void  CreateGeometry();
-  virtual void  CreatePMD();
-  virtual void  CreateSupermodule();
-  virtual void  GetParameters();
-  virtual void  CreateMaterials();
-  virtual void  Init();
-  virtual Int_t IsVersion() const {return 1;}
-  virtual void  StepManager();
-  virtual void  DrawModule();
-   ClassDef(AliPMDv3,1)  //Hits manager for set:PMD
-};
-#endif
-
-