]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenDoubleScan.cxx
Redundant media declarations commented out.
[u/mrichter/AliRoot.git] / EVGEN / AliGenDoubleScan.cxx
index 3d8e47404cfaeb0b872d7417456a392c5fc540f6..93eff9f042a10b3a81bb5cca036fc22bf495d165 100644 (file)
 
 /*
 $Log$
+Revision 1.5  2000/12/06 15:11:38  morsch
+Correct double declared data members.
+
+Revision 1.4  2000/11/30 07:12:50  alibrary
+Introducing new Rndm and QA classes
+
 Revision 1.3  2000/10/02 21:28:06  fca
 Removal of useless dependecies via forward declarations
 
@@ -26,6 +32,12 @@ First commit of this file
 
 */
 
+// As AliGenScan,  generation of particles on a 3-dim grid
+// but here double hits with a predefined distance are generated.
+// The second particle is generated at a constant distance but with random phi.
+// Generator can be used to evaluate double hit resolutions.
+// Author: andreas.morsch@cern.ch
+
 #include "AliGenDoubleScan.h"
 #include "AliRun.h"
 
@@ -67,13 +79,13 @@ void AliGenDoubleScan::Generate()
     
     //
     if (fNy > 0) {
-       dx=(fXmax-fXmin)/fNx;
+       dx=(fXCmax-fXCmin)/fNx;
     } else {
        dx=1e10;
     }
 
     if (fNy > 0) {
-       dy=(fYmax-fYmin)/fNy;
+       dy=(fYCmax-fYCmin)/fNy;
     } else {
        dy=1e10;
     }
@@ -87,8 +99,8 @@ void AliGenDoubleScan::Generate()
       for (Int_t iy=0; iy<fNy; iy++) {
          for (Int_t iz=0; iz<fNz; iz++){
              Rndm(random,6);
-             origin[0]=fXmin+ix*dx+2*(random[0]-0.5)*fOsigma[0];
-             origin[1]=fYmin+iy*dy+2*(random[1]-0.5)*fOsigma[1];
+             origin[0]=fXCmin+ix*dx+2*(random[0]-0.5)*fOsigma[0];
+             origin[1]=fYCmin+iy*dy+2*(random[1]-0.5)*fOsigma[1];
              origin[2]=fZmin+iz*dz+2*(random[2]-0.5)*fOsigma[2];            
              pmom=fPMin+random[3]*(fPMax-fPMin);
              theta=fThetaMin+random[4]*(fThetaMax-fThetaMin);