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.4 1999/09/29 09:24:29 fca
19 Introduction of the Copyright and cvs Log
23 ///////////////////////////////////////////////////////////////////
25 // Generate the final state of the interaction as the input //
26 // to the MonteCarlo //
30 <img src="picts/AliGeneratorClass.gif">
33 <font size=+2 color=red>
34 <p>The responsible person for this module is
35 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
41 ///////////////////////////////////////////////////////////////////
43 #include "AliGenerator.h"
46 ClassImp(AliGenerator)
48 TGenerator* AliGenerator::fgMCEvGen=0;
50 //____________________________________________________________
51 AliGenerator::AliGenerator()
53 printf("\n AliGenerator Default Constructor\n\n");
55 gAlice->SetGenerator(this);
56 SetThetaRange(); ResetBit(kThetaRange);
57 SetPhiRange(); ResetBit(kPhiRange);
58 SetMomentumRange(); ResetBit(kMomentumRange);
59 SetPtRange(); ResetBit(kPtRange);
60 SetYRange(); ResetBit(kYRange);
66 fOrigin[0]=fOrigin[1]=fOrigin[2]=0;
67 fOsigma[0]=fOsigma[1]=fOsigma[2]=0;
69 fVMin[0]=fVMin[1]=fVMin[2]=0;
71 fVMax[0]=fVMax[1]=fVMax[2]=10000;
74 //____________________________________________________________
75 AliGenerator::AliGenerator(Int_t npart)
78 printf("\n AliGenerator Constructor initializing number of particles \n\n");
79 gAlice->SetGenerator(this);
80 SetThetaRange(); ResetBit(kThetaRange);
81 SetPhiRange(); ResetBit(kPhiRange);
82 SetMomentumRange(); ResetBit(kMomentumRange);
83 SetPtRange(); ResetBit(kPtRange);
84 SetYRange(); ResetBit(kYRange);
89 fOrigin[0]=fOrigin[1]=fOrigin[2]=0;
90 fOsigma[0]=fOsigma[1]=fOsigma[2]=0;
92 fVMin[0]=fVMin[1]=fVMin[2]=0;
94 fVMax[0]=fVMax[1]=fVMax[2]=10000;
96 SetNumberParticles(npart);
99 //____________________________________________________________
100 AliGenerator::~AliGenerator()
107 void AliGenerator::Init()