Add new background and header. D.Picard
[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{
4a3ba9d2 31 printf("\n Initialising AliGenerator\n\n");
32
fe4da5cc 33 gAlice->SetGenerator(this);
34 SetThetaRange();
35 SetPhiRange();
36 SetMomentumRange();
37 SetPtRange();
38 SetYRange();
39 SetNumberParticles();
4a3ba9d2 40 SetTrackingFlag();
fe4da5cc 41 //
42 // fName="Default";
43 // fTitle="Base Generator Class";
44 //
45 fOrigin.Set(3);
46 fOsigma.Set(3);
47 fOrigin[0]=fOrigin[1]=fOrigin[2]=0;
48 fOsigma[0]=fOsigma[1]=fOsigma[2]=0;
49}
50
51//____________________________________________________________
52AliGenerator::AliGenerator(Int_t npart)
53 : TNamed(" "," ")
54{
4a3ba9d2 55 printf("\n Initialising AliGenerator\n\n");
fe4da5cc 56 gAlice->SetGenerator(this);
57 SetThetaRange();
58 SetPhiRange();
59 SetMomentumRange();
60 SetPtRange();
61 SetYRange();
62 SetNumberParticles(npart);
4a3ba9d2 63 SetTrackingFlag();
fe4da5cc 64 //
65 // fName="Default";
66 // fTitle="Base Generator Class";
67 //
68 fVertexSmear=none;
69 fOrigin.Set(3);
70 fOsigma.Set(3);
71 fOrigin[0]=fOrigin[1]=fOrigin[2]=0;
72 fOsigma[0]=fOsigma[1]=fOsigma[2]=0;
73 fVMin.Set(3);
74 fVMin[0]=fVMin[1]=fVMin[2]=0;
75 fVMax.Set(3);
76 fVMax[0]=fVMax[1]=fVMax[2]=10000;
77}
78
79//____________________________________________________________
80AliGenerator::~AliGenerator()
81{
82 fOrigin.Set(0);
83 fOsigma.Set(0);
84 delete fgMCEvGen;
85}
86
87void AliGenerator::Init()
88{
89}
90
91