Line data Source code
1 : #ifndef ALIGENBOX_H
2 : #define ALIGENBOX_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 :
9 : // Generator for particles in a preset
10 : // kinematic range (flat distribution)
11 : // Comments and suggestions: andreas.morsch@cern.ch
12 :
13 :
14 : #include "AliGenerator.h"
15 : class AliGenBox : public AliGenerator
16 : {
17 : public:
18 :
19 : AliGenBox();
20 : AliGenBox(Int_t npart);
21 0 : virtual ~AliGenBox() {}
22 : virtual void GenerateN(Int_t ntimes);
23 : virtual void Generate();
24 : virtual void Init();
25 : virtual void SetEtaRange(Float_t etamin, Float_t etamax)
26 0 : {SetBit(kEtaRange);fEtaMin = etamin; fEtaMax = etamax;}
27 8 : virtual void SetPart(Int_t part) {fIpart=part;}
28 0 : virtual void SetParticleType(Int_t part) {SetPart(part);}
29 8 : virtual void SetSeed(UInt_t /*seed*/) {;}
30 : protected:
31 :
32 : Int_t fIpart; // Particle type
33 : Float_t fEtaMin; // Minimum eta
34 : Float_t fEtaMax; // Maximum eta
35 138 : ClassDef(AliGenBox,2) // Square box random generator
36 : };
37 :
38 : #endif
|