3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 // Realisation of AliGenerator that generates particles with
9 // vertices on a user defined grid.
10 // Author: andreas.morsch@cern.ch
12 #include "AliGenerator.h"
14 class AliGenScan : public AliGenerator
18 AliGenScan(Int_t npart);
19 virtual ~AliGenScan();
21 virtual void SetRange(Int_t nx, Float_t xmin, Float_t xmax,
22 Int_t ny, Float_t ymin, Float_t ymax,
23 Int_t nz, Float_t zmin, Float_t zmax);
26 virtual void Init() {}
28 virtual void Generate();
29 virtual void SetPart(Int_t part) {fIpart=part;}
31 Float_t fXCmin; // Minimum x on grid
32 Float_t fXCmax; // Maximum x on grid
33 Int_t fNx; // Number of divisions in x
34 Float_t fYCmin; // Minimum y on grid
35 Float_t fYCmax; // Maximum y on grid
36 Int_t fNy; // Number of divisions in y
37 Float_t fZmin; // Minimum z on grid
38 Float_t fZmax; // Maximum z on grid
39 Int_t fNz; // Number of divisions in z
40 Int_t fIpart; // Particle type
43 ClassDef(AliGenScan,1) //Partcles on a regular grid