/* $Id$ */
-/*
- Generator for particles in a preset
- kinematic range (flat distribution)
- Comments and suggestions: andreas.morsch@cern.ch
-*/
+
+// Generator for particles in a preset
+// kinematic range (flat distribution)
+// Comments and suggestions: andreas.morsch@cern.ch
+
#include "AliGenerator.h"
class AliGenBox : public AliGenerator
virtual ~AliGenBox() {}
virtual void Generate();
virtual void Init();
+ virtual void SetEtaRange(Float_t etamin, Float_t etamax)
+ {fEtaMin = etamin; fEtaMax = etamax;}
virtual void SetPart(Int_t part) {fIpart=part;}
+ virtual void SetParticleType(Int_t part) {SetPart(part);}
protected:
Int_t fIpart; // Particle type
-
- ClassDef(AliGenBox,1) // Square box random generator
+ Float_t fEtaMin; // Minimum eta
+ Float_t fEtaMax; // Maximum eta
+ ClassDef(AliGenBox,2) // Square box random generator
};
#endif