]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVGEN/AliGenBox.h
New method Invert() for changing alpha by pi (forbiden operation via Rotate())
[u/mrichter/AliRoot.git] / EVGEN / AliGenBox.h
CommitLineData
790bbabf 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
0af12c00 8
9// Generator for particles in a preset
10// kinematic range (flat distribution)
11// Comments and suggestions: andreas.morsch@cern.ch
12
675e9664 13
790bbabf 14#include "AliGenerator.h"
15class AliGenBox : public AliGenerator
16{
17 public:
18
19 AliGenBox();
20 AliGenBox(Int_t npart);
21 virtual ~AliGenBox() {}
22 virtual void Generate();
23 virtual void Init();
ad40e621 24 virtual void SetEtaRange(Float_t etamin, Float_t etamax)
84631597 25 {SetBit(kEtaRange);fEtaMin = etamin; fEtaMax = etamax;}
790bbabf 26 virtual void SetPart(Int_t part) {fIpart=part;}
898bb7f8 27 virtual void SetParticleType(Int_t part) {SetPart(part);}
790bbabf 28protected:
29
30 Int_t fIpart; // Particle type
898bb7f8 31 Float_t fEtaMin; // Minimum eta
32 Float_t fEtaMax; // Maximum eta
33 ClassDef(AliGenBox,2) // Square box random generator
790bbabf 34};
35
36#endif