8 #include "TClonesArray.h"
10 #include "TLorentzVector.h"
13 #include "TParticle.h"
15 #include "FairPrimaryGenerator.h"
33 #define LUJETS COMMON_BLOCK(LUJETS,lujets)
38 extern "C" int init1_(
double* Plab,
double*
seed,
double* Elastic,
double* tetmin );
39 extern "C" int dpm_gen_(
double* Generator,
double*
seed );
40 extern "C" int chstatus_(
int* iPDG,
int* iStatus);
61 Double_t ThtMin = TMath::Exp(logangle);
74 Long_t iSeed = gRandom->GetSeed();
76 fSeed=iSeed - a*100000 + a/100000.;
83 cout <<
"<I> PndDpmDirect initialization" << endl;
84 cout <<
"<I> Momentum = " << fMom << endl;
85 cout <<
"<I> Seed = " <<
fSeed << endl;
86 cout <<
"<I> Mode = " << fMode << endl;
87 cout <<
"<I> Theta min = " << fThtMin<<endl;
102 Long_t iSeed = gRandom->GetSeed();
103 int a = iSeed/100000;
104 fSeed=iSeed - a*100000 + a/100000.;
111 cout <<
"<I> PndDpmDirect initialization" << endl;
112 cout <<
"<I> Momentum = " << fMom << endl;
113 cout <<
"<I> Seed = " <<
fSeed << endl;
114 cout <<
"<I> Mode = " << fMode << endl;
115 cout <<
"<I> Gasmode = " << fGasmode << endl;
116 cout <<
"<I> Theta min = " << fThtMin<<endl;
147 double Px[1000],Py[1000],Pz[1000];
161 for (i= 0; i< npart; ++
i) {
163 Id[
i]=lujets_.k[i+1000];
165 Py[
i]=lujets_.p[i+1000];
166 Pz[
i]=lujets_.p[i+2000];
179 radius = gRandom->Gaus(0,fRsigma);
180 gRandom->Circle(fX, fY, radius);
189 primGen->AddTrack(Id[i], Px[i], Py[i], Pz[i], fX, fY, fZ);
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
COMMON_BLOCK_DEF(lujets, LUJETS)
FairPrimaryGenerator * primGen
void SetUnstable(int pdg)
int chstatus_(int *iPDG, int *iStatus)
int init1_(double *Plab, double *seed, double *Elastic, double *tetmin)
int dpm_gen_(double *Generator, double *seed)