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 **************************************************************************/
20 ///////////////////////////////////////////////////////////////////
22 // Generate the final state of the interaction as the input //
23 // to the MonteCarlo //
27 <img src="picts/AliGeneratorClass.gif">
30 <font size=+2 color=red>
31 <p>The responsible person for this module is
32 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
38 ///////////////////////////////////////////////////////////////////
40 #include "AliGenFixed.h"
48 //_____________________________________________________________________________
49 AliGenFixed::AliGenFixed()
53 // Default constructor
58 //_____________________________________________________________________________
59 AliGenFixed::AliGenFixed(Int_t npart)
63 // Standard constructor
66 fTitle="Fixed Particle Generator";
67 // Generate Proton by default
71 //_____________________________________________________________________________
72 void AliGenFixed::Generate()
75 // Generate one trigger
77 Float_t polar[3]= {0,0,0};
78 Float_t p[3] = {fPMin*TMath::Cos(fPhiMin)*TMath::Sin(fThetaMin),
79 fPMin*TMath::Sin(fPhiMin)*TMath::Sin(fThetaMin),
80 fPMin*TMath::Cos(fThetaMin)};
83 for(i=0;i<fNpart;i++) {
84 gAlice->SetTrack(fTrackIt,-1,fIpart,p,fOrigin.GetArray(),polar,0,"Primary",nt);
88 //_____________________________________________________________________________
89 void AliGenFixed::SetSigma(Float_t sx, Float_t sy, Float_t sz)
92 // Set the interaction point sigma
94 printf("Vertex smearing not implemented for fixed generator\n");