#include "TSystem.h"
#include "TIsajet.h"
#include "Icommon.h"
-#include "iostream.h"
-#include "fstream.h"
+#include "Riostream.h"
#include "math.h"
#include "TROOT.h"
#include "TMath.h"
ClassImp(TIsajet)
+static TRandom * sRandom;
+
/**************************************************************************/
TIsajet::TIsajet() : TGenerator("Isajet", "Isajet")
}
if (setPdf) {
- PDFinit();
+// PDFinit();
}
}
}
/**************************************************************************/
-void TIsajet::SetIFORCE(const Int_t val[], Int_t arraySize, Bool_t anti = true)
+void TIsajet::SetIFORCE(const Int_t val[], Int_t arraySize, Bool_t anti)
{
if (GetNFORCE() >= FORCE.mxforc - anti) {
printf ("ERROR in TIsajet::SetIFORCE :\n");
printf ("set. \n");
if (anti) {
- Int_t antivals[arraySize];
+ Int_t* antivals = new Int_t[arraySize];
for (Int_t i = 0; i < arraySize; i++){
antivals[i] = (0 - val[i]);
}
/**************************************************************************/
-void TIsajet::UnForce(Int_t index, Bool_t anti = true)
+void TIsajet::UnForce(Int_t index, Bool_t anti)
{
if (FORCE.nforce == 0) {
printf ("Error in TIsajet::UnForce : \n");
/**************************************************************************/
-void TIsajet::UnForceID(Int_t particle_ID, Bool_t anti = true)
+void TIsajet::UnForceID(Int_t particle_ID, Bool_t anti)
{
if (FORCE.nforce == 0) {
printf ("Error in TIsajet::UnForceID : \n");
return 0;
}
- Int_t decay[6];
+ Int_t* decay = new Int_t[6];
decay[0] = FORCE.iforce[index];
for (Int_t i = 1; i < 6; i++) {
extern "C" void type_of_call isaini(Int_t& j, Int_t& k, Int_t& m, Int_t& n);
extern "C" void type_of_call isaevt(Int_t& j, Int_t& k, Int_t& m);
extern "C" void type_of_call openfiles();
-extern "C" void type_of_call pdfinit();
+extern "C" void type_of_call pdfinit(Int_t &, Int_t &);
extern "C" void type_of_call isabeg(Int_t& ifl);
extern "C" void type_of_call isabg2(Int_t& ifl);
openfiles();
}
-void TIsajet::PDFinit()
+void TIsajet::PDFinit(Int_t& pdfpar, Int_t& pdfval )
{
pdfinit(pdfpar, pdfval);
}