Same class as previously in AliSimpleGen.cxx
[u/mrichter/AliRoot.git] / EVGEN / AliGenFixed.h
CommitLineData
790bbabf 1#ifndef ALIGENFIXED_H
2#define ALIGENFIXED_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#include "AliGenerator.h"
9
10class AliGenFixed : public AliGenerator
11{
12 public:
13 AliGenFixed();
14 AliGenFixed(Int_t npart);
15 virtual ~AliGenFixed() {}
16 virtual void Generate();
17 virtual void Init() {}
18 virtual void SetSigma(Float_t sx, Float_t sy, Float_t sz);
19 virtual void SetMomentum(Float_t pmom) {fPMin=pmom; fPMax=pmom;}
20 virtual void SetPhi(Float_t phi) {fPhiMin=phi*TMath::Pi()/180; fPhiMax=phi*TMath::Pi()/180;}
21 virtual void SetTheta(Float_t theta) {fThetaMin=theta*TMath::Pi()/180; fThetaMax=theta*TMath::Pi()/180;}
22 virtual void SetPart(Int_t part) {fIpart=part;}
23
24protected:
25
26 Int_t fIpart; // Particle type
27
28 ClassDef(AliGenFixed,1) // Single particle generator
29};
30#endif