]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenDoubleScan.cxx
Threshold for digits in RecPoint introduced
[u/mrichter/AliRoot.git] / EVGEN / AliGenDoubleScan.cxx
index 88c4673e0d21675a50831b31fd7d3a3f6b5a8be8..a674d2ccd5647139a0517b3d702fd8b7afb941c1 100644 (file)
 
 /*
 $Log$
+Revision 1.8.6.1  2002/07/30 15:00:39  alibrary
+Correction in initialization of dx (Enrique Gamez Flores).
+
+Revision 1.9  2002/07/30 13:48:03  morsch
+
+Correction in initialization of dx (Enrique Gamez Flores).
+
+Revision 1.8  2002/02/08 16:50:50  morsch
+Add name and title in constructor.
+
+Revision 1.7  2001/07/27 17:09:35  morsch
+Use local SetTrack, KeepTrack and SetHighWaterMark methods
+to delegate either to local stack or to stack owned by AliRun.
+(Piotr Skowronski, A.M.)
+
+Revision 1.6  2000/12/21 16:24:06  morsch
+Coding convention clean-up
+
+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
 
@@ -29,6 +50,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"
 
@@ -43,6 +70,8 @@ AliGenDoubleScan::AliGenDoubleScan(Int_t npart)
     :AliGenScan(npart)
 {
 // Constructor
+    fName = "Double Scan";
+    fTitle= "Particle Generator for two correlated particles on a grid";
 }
 
 //____________________________________________________________
@@ -69,7 +98,7 @@ void AliGenDoubleScan::Generate()
     Float_t dx,dy,dz;
     
     //
-    if (fNy > 0) {
+    if (fNx > 0) {
        dx=(fXCmax-fXCmin)/fNx;
     } else {
        dx=1e10;
@@ -99,7 +128,7 @@ void AliGenDoubleScan::Generate()
              p[0] = pmom*TMath::Cos(phi)*TMath::Sin(theta);
              p[1] = pmom*TMath::Sin(phi)*TMath::Sin(theta);
              p[2] = pmom*TMath::Cos(theta);
-             gAlice->SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
+             SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
 //
 // Generate 2nd particle at distance fDistance from  the first
 //
@@ -115,7 +144,7 @@ void AliGenDoubleScan::Generate()
              p[0] = pmom*TMath::Cos(phi)*TMath::Sin(theta);
              p[1] = pmom*TMath::Sin(phi)*TMath::Sin(theta);
              p[2] = pmom*TMath::Cos(theta);
-             gAlice->SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
+             SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
          }
       }
   }