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 Revision 1.1 2000/06/09 20:24:00 morsch
19 Same class as previously in AliSimpleGen.cxx
20 All coding rule violations except RS3 corrected (AM)
24 ///////////////////////////////////////////////////////////////////
26 // Generate the final state of the interaction as the input //
27 // to the MonteCarlo //
31 <img src="picts/AliGeneratorClass.gif">
34 <font size=+2 color=red>
35 <p>The responsible person for this module is
36 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
42 ///////////////////////////////////////////////////////////////////
44 #include "AliGenFixed.h"
50 //_____________________________________________________________________________
51 AliGenFixed::AliGenFixed()
55 // Default constructor
60 //_____________________________________________________________________________
61 AliGenFixed::AliGenFixed(Int_t npart)
65 // Standard constructor
68 fTitle="Fixed Particle Generator";
69 // Generate Proton by default
73 //_____________________________________________________________________________
74 void AliGenFixed::Generate()
77 // Generate one trigger
79 Float_t polar[3]= {0,0,0};
80 Float_t p[3] = {fPMin*TMath::Cos(fPhiMin)*TMath::Sin(fThetaMin),
81 fPMin*TMath::Sin(fPhiMin)*TMath::Sin(fThetaMin),
82 fPMin*TMath::Cos(fThetaMin)};
85 for(i=0;i<fNpart;i++) {
86 gAlice->SetTrack(fTrackIt,-1,fIpart,p,fOrigin.GetArray(),polar,0,"Primary",nt);
90 //_____________________________________________________________________________
91 void AliGenFixed::SetSigma(Float_t sx, Float_t sy, Float_t sz)
94 // Set the interaction point sigma
96 printf("Vertex smearing not implemented for fixed generator\n");