]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliGenerator.cxx
Do not use Atan, removed from ROOT too
[u/mrichter/AliRoot.git] / STEER / AliGenerator.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
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  **************************************************************************/
15
16 /*
17 $Log$
18 */
19
20 ///////////////////////////////////////////////////////////////////
21 //                                                               //
22 //    Generate the final state of the interaction as the input   //
23 //    to the MonteCarlo                                          //
24 //
25 //Begin_Html
26 /*
27 <img src="picts/AliGeneratorClass.gif">
28 </pre>
29 <br clear=left>
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>.
33 </font>
34 <pre>
35 */
36 //End_Html
37 //                                                               //
38 ///////////////////////////////////////////////////////////////////
39
40 #include "AliGenerator.h"
41 #include "AliRun.h"
42
43 ClassImp(AliGenerator)
44
45 TGenerator* AliGenerator::fgMCEvGen=0;
46
47 //____________________________________________________________
48 AliGenerator::AliGenerator()
49 {
50     printf("\n Initialising AliGenerator\n\n");
51     
52     gAlice->SetGenerator(this);
53     SetThetaRange();
54     SetPhiRange();
55     SetMomentumRange();
56     SetPtRange();
57     SetYRange();
58     SetNumberParticles();
59     SetTrackingFlag();
60   //
61   //  fName="Default";
62   //  fTitle="Base Generator Class";
63   //
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 }
69
70 //____________________________________________________________
71 AliGenerator::AliGenerator(Int_t npart)
72     : TNamed(" "," ")
73 {
74     printf("\n Initialising AliGenerator\n\n");
75     gAlice->SetGenerator(this);
76     SetThetaRange();
77     SetPhiRange();
78     SetMomentumRange();
79     SetPtRange();
80     SetYRange();
81     SetNumberParticles(npart);
82     SetTrackingFlag();
83   //
84   //  fName="Default";
85   //  fTitle="Base Generator Class";
86   //
87     fVertexSmear=none;
88     fOrigin.Set(3);
89     fOsigma.Set(3);
90     fOrigin[0]=fOrigin[1]=fOrigin[2]=0;
91     fOsigma[0]=fOsigma[1]=fOsigma[2]=0;
92     fVMin.Set(3);
93     fVMin[0]=fVMin[1]=fVMin[2]=0;
94     fVMax.Set(3);
95     fVMax[0]=fVMax[1]=fVMax[2]=10000;
96 }
97
98 //____________________________________________________________
99 AliGenerator::~AliGenerator()
100 {
101   fOrigin.Set(0);
102   fOsigma.Set(0);
103   delete fgMCEvGen;
104 }
105
106 void AliGenerator::Init()
107 {   
108 }
109
110