* provided "as is" without express or implied warranty. *
**************************************************************************/
+// Pythia 6 interface used by AliGenPythia
+// Some settings are done by AliGenPythia, others here :)
+//
/* $Id$ */
#include "AliPythia.h"
# define qpygin0 qpygin0_
# define pytune pytune_
# define py2ent py2ent_
+# define setpowwght setpowwght_
# define type_of_call
#else
# define pyclus PYCLUS
# define qpygin0 QPYGIN0
# define pytune PYTUNE
# define py2ent PY2ENT
+# define setpowwght SETPOWWGHT
# define type_of_call _stdcall
#endif
extern "C" void type_of_call pyshowq(Int_t &, Int_t &, Double_t &);
extern "C" void type_of_call pytune(Int_t &);
extern "C" void type_of_call py2ent(Int_t &, Int_t&, Int_t&, Double_t&);
-extern "C" void type_of_call qpygin0();
+extern "C" void type_of_call qpygin0();
+extern "C" void type_of_call setpowwght(Double_t &);
//_____________________________________________________________________________
AliPythia* AliPythia::fgAliPythia=NULL;
// QCD Jets
//
SetMSEL(1);
+
// Pythia Tune A (CDF)
//
if (fItune < 0) {
py2ent(idx, pdg1, pdg2, p);
}
+void AliPythia::SetWeightPower(Double_t pow)
+{
+ setpowwght(pow);
+ SetMSTP(142, 1); // Tell Pythia to use pyevwt to calculate event wghts
+ if (GetCKIN(3) <= 0)
+ AliWarning("Need to set minimum p_T,hard to nonzero value for weighted event generation");
+}
void AliPythia::InitQuenching(Float_t cMin, Float_t cMax, Float_t k, Int_t iECMethod, Float_t zmax, Int_t ngmax)
{