#include <PndCorrDistGenerator.h>
Definition at line 31 of file PndCorrDistGenerator.h.
PndCorrDistGenerator::PndCorrDistGenerator |
( |
| ) |
|
Default constructor (should not be used)
Definition at line 24 of file PndCorrDistGenerator.cxx.
TH2F * fInputHist
Pointer to input file.
Int_t fPdgType
Particle array from PLUTO.
TFile * fInputFile
Input file name.
PndCorrDistGenerator::PndCorrDistGenerator |
( |
const Char_t * |
fileName | ) |
|
Standard constructor
- Parameters
-
fileName | The input (PLUTO) file name |
Definition at line 38 of file PndCorrDistGenerator.cxx.
42 if(
fParam){cout<<
"choosing parametrization modell"<<endl;}
44 cout<<
" Random events gerated from a TH2D P(th) dist-->GiBUU Modell"<<endl;
TH2F * fInputHist
Pointer to input file.
const Char_t * fFileName
Event number.
TFile * fInputFile
Input file name.
PndCorrDistGenerator::~PndCorrDistGenerator |
( |
| ) |
|
|
virtual |
void PndCorrDistGenerator::CloseInput |
( |
| ) |
|
|
private |
Private method CloseInput. Just for convenience. Closes the input file properly. Called from destructor and from ReadEvent.
Definition at line 146 of file PndCorrDistGenerator.cxx.
148 cout <<
"-I PndCorrDistGenerator: Closing input file " <<
fFileName
const Char_t * fFileName
Event number.
TFile * fInputFile
Input file name.
Definition at line 166 of file PndCorrDistGenerator.cxx.
References Double_t, sigma, CAMath::Sqrt(), and v.
173 EK = gamma*1.321 - 1.321;
179 limLow = MeanP*0.882;
180 limHigh = MeanP*1.085;
183 TF1* MBol =
new TF1(
"mb",
"TMath::Gaus(x,[0],[1])",limLow,limHigh);
190 MBol->SetParameter(0,MeanP);
191 MBol->SetParameter(1,
sigma);
193 cout <<
"-I PndCorrDistGenerator: Calculating Momentum distribution via MB <v >" << endl;
194 Double_t fitval = MBol->GetRandom();
static T Sqrt(const T &x)
Definition at line 157 of file PndCorrDistGenerator.cxx.
References Double_t.
159 cout <<
"-I PndCorrDistGenerator: Calculating Mean Momentum as function of theta" << endl;
161 Double_t fitval = TMath::Exp((4.93964e-01)-(thet*1.41427e-02));
Bool_t PndCorrDistGenerator::ReadEvent |
( |
FairPrimaryGenerator * |
primGen | ) |
|
|
virtual |
Reads on event from the input file and pushes the tracks onto the stack. Abstract method in base class.
- Parameters
-
primGen | pointer to the FairPrimaryGenerator |
Definition at line 60 of file PndCorrDistGenerator.cxx.
References CAMath::Cos(), Double_t, exp(), p, phi, pz, CAMath::Sin(), and theta.
64 cout <<
"-E PndCorrDistGenerator: Input file nor open!" << endl;
74 phi = gRandom->Uniform(0,360)* TMath::DegToRad();
92 lan =
new TF1(
"lan",
"1.03980e+03*TMath::Landau(x,[0],[1],0)",
fTheLow,
fTheHigh);
93 lan->SetParameters(1.10093e+01,4.65284e+00);
96 theta = lan->GetRandom();
135 primGen->AddTrack(3312, px, py, pz, 0., 0., 0.);
friend F32vec4 exp(const F32vec4 &a)
Double_t MeanMomentum(Double_t thet)
TH2F * fInputHist
Pointer to input file.
FairPrimaryGenerator * primGen
Int_t fPdgType
Particle array from PLUTO.
TFile * fInputFile
Input file name.
Double_t MaxBoltDistP(Double_t MeanP)
void PndCorrDistGenerator::SetParam |
( |
| ) |
|
|
inline |
void PndCorrDistGenerator::SetThetaRange |
( |
Double_t |
thetLow = 0. , |
|
|
Double_t |
thetHigh = 0. |
|
) |
| |
|
inline |
const Char_t* PndCorrDistGenerator::fFileName |
|
private |
TFile* PndCorrDistGenerator::fInputFile |
|
private |
TH2F* PndCorrDistGenerator::fInputHist |
|
private |
Bool_t PndCorrDistGenerator::fParam |
|
private |
TClonesArray* PndCorrDistGenerator::fParticles |
|
private |
Int_t PndCorrDistGenerator::fPdgType |
|
private |
Int_t PndCorrDistGenerator::iEvent |
|
private |
The documentation for this class was generated from the following files: