#include <PndDpmDirect.h>
|
| PndDpmDirect () |
|
| PndDpmDirect (Double_t Mom, Int_t Mode, Long_t Seed=-1) |
|
| PndDpmDirect (Double_t Mom, Int_t Mode, Long_t Seed, Double_t ThtMin) |
|
| PndDpmDirect (Double_t Mom, Int_t Mode, Double_t Rsigma, TF1 *DensityFunction, Long_t Seed=-1, Double_t ThtMin=0.001) |
|
virtual | ~PndDpmDirect () |
|
virtual Bool_t | ReadEvent (FairPrimaryGenerator *primGen) |
|
void | SetUnstable (int pdg) |
|
void | SetStable (int pdg) |
|
Definition at line 25 of file PndDpmDirect.h.
PndDpmDirect::PndDpmDirect |
( |
| ) |
|
PndDpmDirect::PndDpmDirect |
( |
Double_t |
Mom, |
|
|
Int_t |
Mode, |
|
|
Long_t |
Seed = -1 |
|
) |
| |
Standard constructor
- Parameters
-
Mom | in GeV/C |
Mode | = 0. - No elastic scattering, only inelastic |
Mode | = 1. - Elastic and inelastic interactions |
Mode | = 2. - Only elastic scattering, no inelastic one |
Definition at line 52 of file PndDpmDirect.cxx.
References Double_t, and CAMath::Log().
61 Double_t ThtMin = TMath::Exp(logangle);
PndDpmDirect::PndDpmDirect |
( |
Double_t |
Mom, |
|
|
Int_t |
Mode, |
|
|
Long_t |
Seed, |
|
|
Double_t |
ThtMin |
|
) |
| |
Definition at line 66 of file PndDpmDirect.cxx.
References a, fDensityFunction, fSeed, and init1_().
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;
int init1_(double *Plab, double *seed, double *Elastic, double *tetmin)
PndDpmDirect::PndDpmDirect |
( |
Double_t |
Mom, |
|
|
Int_t |
Mode, |
|
|
Double_t |
Rsigma, |
|
|
TF1 * |
DensityFunction, |
|
|
Long_t |
Seed = -1 , |
|
|
Double_t |
ThtMin = 0.001 |
|
) |
| |
Definition at line 94 of file PndDpmDirect.cxx.
References a, fDensityFunction, fSeed, and init1_().
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;
int init1_(double *Plab, double *seed, double *Elastic, double *tetmin)
PndDpmDirect::~PndDpmDirect |
( |
| ) |
|
|
virtual |
Bool_t PndDpmDirect::ReadEvent |
( |
FairPrimaryGenerator * |
primGen | ) |
|
|
virtual |
Generate one event using DPM
- Parameters
-
primGen | pointer to the FairPrimaryGenerator |
Definition at line 143 of file PndDpmDirect.cxx.
References Double_t, dpm_gen_(), fDensityFunction, fSeed, fX, fY, fZ, and i.
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);
FairPrimaryGenerator * primGen
int dpm_gen_(double *Generator, double *seed)
void PndDpmDirect::SetStable |
( |
int |
pdg | ) |
|
void PndDpmDirect::SetUnstable |
( |
int |
pdg | ) |
|
TF1* PndDpmDirect::fDensityFunction |
|
private |
int PndDpmDirect::fGasmode |
|
private |
double PndDpmDirect::fMode |
|
private |
0. - No elastic scattering, only inelastic
- - Elastic and inelastic interactions
- - Only elastic scattering, no inelastic one
Definition at line 67 of file PndDpmDirect.h.
double PndDpmDirect::fMom |
|
private |
double PndDpmDirect::fRsigma |
|
private |
double PndDpmDirect::fSeed |
|
private |
double PndDpmDirect::fThtMin |
|
private |
The documentation for this class was generated from the following files: