Line data Source code
1 : #ifndef ALIGENSCAN_H
2 : #define ALIGENSCAN_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 : /* $Id$ */
7 :
8 : // Realisation of AliGenerator that generates particles with
9 : // vertices on a user defined grid.
10 : // Author: andreas.morsch@cern.ch
11 :
12 : #include "AliGenerator.h"
13 :
14 : class AliGenScan : public AliGenerator
15 : {
16 : public:
17 : AliGenScan();
18 : AliGenScan(Int_t npart);
19 : virtual ~AliGenScan();
20 : // Set Scanning Range
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);
24 :
25 : // Initialise
26 0 : virtual void Init() {}
27 : // generate event
28 : virtual void Generate();
29 0 : virtual void SetPart(Int_t part) {fIpart=part;}
30 : protected:
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
41 :
42 :
43 6 : ClassDef(AliGenScan,1) //Partcles on a regular grid
44 : };
45 : #endif
46 :
47 :
48 :
49 :
50 :
51 :
|