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.8 2000/09/06 14:26:24 morsch
19 Decayer functionality of AliPythia has been moved to AliDecayerPythia.
20 Class is now a singleton.
22 Revision 1.7 2000/06/09 20:34:50 morsch
23 All coding rule violations except RS3 corrected
25 Revision 1.6 1999/11/09 07:38:48 fca
26 Changes for compatibility with version 2.23 of ROOT
28 Revision 1.5 1999/11/03 17:43:20 fca
29 New version from G.Martinez & A.Morsch
31 Revision 1.4 1999/09/29 09:24:14 fca
32 Introduction of the Copyright and cvs Log
37 #include "AliPythia.h"
42 //_____________________________________________________________________________
44 AliPythia* AliPythia::fgAliPythia=NULL;
46 AliPythia::AliPythia()
48 // Default Constructor
51 void AliPythia::ProcInit(Process_t process, Float_t energy, StrucFunc_t strucfunc)
53 // Initialise the process to generate
56 fStrucFunc = strucfunc;
58 SetMDCY(Pycomp(111),1,0);
59 // select structure function
61 SetMSTP(51,strucfunc);
63 // Pythia initialisation for selected processes//
67 for (Int_t i=1; i<= 200; i++) {
70 // select charm production
114 case beauty_unforced:
124 // Minimum Bias pp-Collisions
126 // Tuning of parameters descibed in G. Ciapetti and A. Di Ciaccio
127 // Proc. of the LHC Workshop, Aachen 1990, Vol. II p. 155
129 // select Pythia min. bias model
135 // Multiple interactions switched on
138 // Low-pT cut-off for hard scattering
140 // model for subsequent non-hardest interaction
141 // 90% gg->gg 10% gg->qq
143 // 90% of gluon interactions have minimum string length
150 Initialize("CMS","p","p",fEcms);
153 Int_t AliPythia::CheckedLuComp(Int_t kf)
155 // Check Lund particle code (for debugging)
157 printf("\n Lucomp kf,kc %d %d",kf,kc);
161 void AliPythia::SetNuclei(Int_t a1, Int_t a2)
163 // Treat protons as inside nuclei with mass numbers a1 and a2
164 // The MSTP array in the PYPARS common block is used to enable and
165 // select the nuclear structure functions.
166 // MSTP(52) : (D=1) choice of proton and nuclear structure-function library
167 // =1: internal PYTHIA acording to MSTP(51)
168 // =2: PDFLIB proton s.f., with MSTP(51) = 1000xNGROUP+NSET
169 // =3: PDFLIB proton s.f. with nuclar correction:
170 // MSTP( 51) = 1000xNPGROUP+NPSET
171 // MSTP(151) = 1000xNAGROUP+NASET
172 // MSTP(192) : Mass number of nucleus side 1
173 // MSTP(193) : Mass number of nucleus side 2
182 AliPythia* AliPythia::Instance()
187 fgAliPythia = new AliPythia();
191 void AliPythia::Streamer(TBuffer &R__b) {}