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 "AliGenerator.h"
43 ClassImp(AliGenerator)
45 TGenerator* AliGenerator::fgMCEvGen=0;
47 //____________________________________________________________
48 AliGenerator::AliGenerator()
50 printf("\n Initialising AliGenerator\n\n");
52 gAlice->SetGenerator(this);
62 // fTitle="Base Generator Class";
66 fOrigin[0]=fOrigin[1]=fOrigin[2]=0;
67 fOsigma[0]=fOsigma[1]=fOsigma[2]=0;
70 //____________________________________________________________
71 AliGenerator::AliGenerator(Int_t npart)
74 printf("\n Initialising AliGenerator\n\n");
75 gAlice->SetGenerator(this);
81 SetNumberParticles(npart);
85 // fTitle="Base Generator Class";
90 fOrigin[0]=fOrigin[1]=fOrigin[2]=0;
91 fOsigma[0]=fOsigma[1]=fOsigma[2]=0;
93 fVMin[0]=fVMin[1]=fVMin[2]=0;
95 fVMax[0]=fVMax[1]=fVMax[2]=10000;
98 //____________________________________________________________
99 AliGenerator::~AliGenerator()
106 void AliGenerator::Init()