/* $Id$ */
// Simple particle gun.
-// Momentum, phi and theta of the partice as well as the particle type can be set.
+// Momentum, phi and theta of the particle as well as the particle type can be set.
// andreas.morsch@cern.ch
virtual ~AliGenFixed() {}
virtual void Generate();
virtual void Init() {}
- virtual void SetSigma(Float_t sx, Float_t sy, Float_t sz);
virtual void SetMomentum(Float_t pmom) {fPMin=pmom; fPMax=pmom; SetBit(kMomentumRange);}
virtual void SetPhi(Float_t phi) {fPhiMin=phi*TMath::Pi()/180; fPhiMax=phi*TMath::Pi()/180; SetBit(kPhiRange);}
virtual void SetTheta(Float_t theta) {fThetaMin=theta*TMath::Pi()/180; fThetaMax=theta*TMath::Pi()/180; SetBit(kThetaRange);}
protected:
- Int_t fIpart; // Particle type
- Int_t fExplicit;
- Float_t fP[3];
+ Int_t fIpart; // Particle type
+ Int_t fExplicit; // True if momentum vector has been set by user.
+ Float_t fP[3]; // Momentum vector
ClassDef(AliGenFixed,1) // Single particle generator
};