1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 // Simple particle gun.
19 // Momentum, phi and theta of the partice as well as the particle type can be set.
20 // andreas.morsch@cern.ch
23 <img src="picts/AliGeneratorClass.gif">
26 <font size=+2 color=red>
27 <p>The responsible person for this module is
28 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
34 ///////////////////////////////////////////////////////////////////
38 #include "AliGenFixed.h"
43 //_____________________________________________________________________________
44 AliGenFixed::AliGenFixed()
48 // Default constructor
54 //_____________________________________________________________________________
55 AliGenFixed::AliGenFixed(Int_t npart)
59 // Standard constructor
62 fTitle="Fixed Particle Generator";
63 // Generate Proton by default
68 //_____________________________________________________________________________
69 void AliGenFixed::Generate()
72 // Generate one trigger
74 Float_t polar[3]= {0,0,0};
76 fP[0] = fPMin*TMath::Cos(fPhiMin)*TMath::Sin(fThetaMin);
77 fP[1] = fPMin*TMath::Sin(fPhiMin)*TMath::Sin(fThetaMin);
78 fP[2] = fPMin*TMath::Cos(fThetaMin);
83 SetTrack(fTrackIt,-1,fIpart,fP,fOrigin.GetArray(),polar,0,kPPrimary,nt);
86 //_____________________________________________________________________________
87 void AliGenFixed::SetSigma(Float_t sx, Float_t sy, Float_t sz)
90 // Set the interaction point sigma
92 printf("Vertex smearing not implemented for fixed generator\n");