This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / STEER / AliGenerator.cxx
CommitLineData
fe4da5cc 1///////////////////////////////////////////////////////////////////
2// //
3// Generate the final state of the interaction as the input //
4// to the MonteCarlo //
5//
6//Begin_Html
7/*
8<img src="gif/AliGeneratorClass.gif">
9</pre>
10<br clear=left>
11<font size=+2 color=red>
12<p>The responsible person for this module is
13<a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
14</font>
15<pre>
16*/
17//End_Html
18// //
19///////////////////////////////////////////////////////////////////
20
21#include "AliGenerator.h"
22#include "AliRun.h"
23
24ClassImp(AliGenerator)
25
26TGenerator* AliGenerator::fgMCEvGen=0;
27
28//____________________________________________________________
29AliGenerator::AliGenerator()
30{
31 gAlice->SetGenerator(this);
32 SetThetaRange();
33 SetPhiRange();
34 SetMomentumRange();
35 SetPtRange();
36 SetYRange();
37 SetNumberParticles();
38 //
39 // fName="Default";
40 // fTitle="Base Generator Class";
41 //
42 fOrigin.Set(3);
43 fOsigma.Set(3);
44 fOrigin[0]=fOrigin[1]=fOrigin[2]=0;
45 fOsigma[0]=fOsigma[1]=fOsigma[2]=0;
46}
47
48//____________________________________________________________
49AliGenerator::AliGenerator(Int_t npart)
50 : TNamed(" "," ")
51{
52 gAlice->SetGenerator(this);
53 SetThetaRange();
54 SetPhiRange();
55 SetMomentumRange();
56 SetPtRange();
57 SetYRange();
58 SetNumberParticles(npart);
59 //
60 // fName="Default";
61 // fTitle="Base Generator Class";
62 //
63 fVertexSmear=none;
64 fOrigin.Set(3);
65 fOsigma.Set(3);
66 fOrigin[0]=fOrigin[1]=fOrigin[2]=0;
67 fOsigma[0]=fOsigma[1]=fOsigma[2]=0;
68 fVMin.Set(3);
69 fVMin[0]=fVMin[1]=fVMin[2]=0;
70 fVMax.Set(3);
71 fVMax[0]=fVMax[1]=fVMax[2]=10000;
72}
73
74//____________________________________________________________
75AliGenerator::~AliGenerator()
76{
77 fOrigin.Set(0);
78 fOsigma.Set(0);
79 delete fgMCEvGen;
80}
81
82void AliGenerator::Init()
83{
84}
85
86