Class moved from AliGenCocktail.h
[u/mrichter/AliRoot.git] / EVGEN / AliGenScan.h
CommitLineData
b0418df4 1#ifndef AliGenScan_H
2#define AliGenScan_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
b0418df4 8#include "AliGenerator.h"
9#include "TNamed.h"
10#include "TF1.h"
11#include "TArrayF.h"
12#include "TTree.h"
13
b0418df4 14class AliGenScan : public AliGenerator
15{
16
17protected:
18 Float_t fXmin;
19 Float_t fXmax;
20 Int_t fNx;
21 Float_t fYmin;
22 Float_t fYmax;
23 Int_t fNy;
24 Float_t fZmin;
25 Float_t fZmax;
26 Int_t fNz;
27 Int_t fIpart; // Particle type
28
29public:
30 AliGenScan();
31 AliGenScan(Int_t npart);
32 virtual ~AliGenScan();
33 // Set Scanning Range
34 virtual void SetRange(Int_t nx, Float_t xmin, Float_t xmax,
35 Int_t ny, Float_t ymin, Float_t ymax,
36 Int_t nz, Float_t zmin, Float_t zmax);
37
38 // Initialise
39 virtual void Init() {}
40 // generate event
41 virtual void Generate();
42 virtual void SetPart(Int_t part) {fIpart=part;}
43
44 ClassDef(AliGenScan,1) //Boundary source
45};
46#endif
47
48
49
50
51
52