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.5 2000/06/08 13:34:50 fca
19 Better control of momentum range in GenBox
21 Revision 1.4 1999/09/29 09:24:29 fca
22 Introduction of the Copyright and cvs Log
26 ///////////////////////////////////////////////////////////////////
28 // Generate the final state of the interaction as the input //
29 // to the MonteCarlo //
33 <img src="picts/AliGeneratorClass.gif">
36 <font size=+2 color=red>
37 <p>The responsible person for this module is
38 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
44 ///////////////////////////////////////////////////////////////////
46 #include "AliGenerator.h"
49 ClassImp(AliGenerator)
51 TGenerator* AliGenerator::fgMCEvGen=0;
53 //____________________________________________________________
54 AliGenerator::AliGenerator()
57 // Default constructor
59 printf("\n AliGenerator Default Constructor\n\n");
61 gAlice->SetGenerator(this);
62 SetThetaRange(); ResetBit(kThetaRange);
63 SetPhiRange(); ResetBit(kPhiRange);
64 SetMomentumRange(); ResetBit(kMomentumRange);
65 SetPtRange(); ResetBit(kPtRange);
66 SetYRange(); ResetBit(kYRange);
72 fOrigin[0]=fOrigin[1]=fOrigin[2]=0;
73 fOsigma[0]=fOsigma[1]=fOsigma[2]=0;
75 fVMin[0]=fVMin[1]=fVMin[2]=0;
77 fVMax[0]=fVMax[1]=fVMax[2]=10000;
80 //____________________________________________________________
81 AliGenerator::AliGenerator(Int_t npart)
85 // Standard constructor
87 printf("\n AliGenerator Constructor initializing number of particles \n\n");
88 gAlice->SetGenerator(this);
89 SetThetaRange(); ResetBit(kThetaRange);
90 SetPhiRange(); ResetBit(kPhiRange);
91 SetMomentumRange(); ResetBit(kMomentumRange);
92 SetPtRange(); ResetBit(kPtRange);
93 SetYRange(); ResetBit(kYRange);
98 fOrigin[0]=fOrigin[1]=fOrigin[2]=0;
99 fOsigma[0]=fOsigma[1]=fOsigma[2]=0;
101 fVMin[0]=fVMin[1]=fVMin[2]=0;
103 fVMax[0]=fVMax[1]=fVMax[2]=10000;
105 SetNumberParticles(npart);
108 //____________________________________________________________
109 AliGenerator::AliGenerator(const AliGenerator &gen) : TNamed(" "," ")
117 //____________________________________________________________
118 AliGenerator & AliGenerator::operator=(const AliGenerator &gen)
121 // Assignment operator
127 //____________________________________________________________
128 void AliGenerator::Copy(AliGenerator &gen) const
131 // Copy *this onto gen
133 Fatal("Copy","Not implemented!\n");
136 //____________________________________________________________
137 AliGenerator::~AliGenerator()
147 void AliGenerator::Init()
150 // Dummy initialisation