#include <PndJRGenerator.h>
Definition at line 29 of file PndJRGenerator.h.
PndJRGenerator::PndJRGenerator |
( |
| ) |
|
Default constructor (should not be used)
Definition at line 22 of file PndJRGenerator.cxx.
TTree * fInputTree
Pointer to input file.
TFile * fInputFile
Input file name.
PndJRGenerator::PndJRGenerator |
( |
const Char_t * |
fileName | ) |
|
Standard constructor
- Parameters
-
fileName | The input (PLUTO) file name |
Definition at line 32 of file PndJRGenerator.cxx.
References fParticles.
37 fParticles =
new TClonesArray(
"TParticle",100);
TTree * fInputTree
Pointer to input file.
const Char_t * fFileName
Event number.
TClonesArray * fParticles
Pointer to input tree.
TFile * fInputFile
Input file name.
PndJRGenerator::~PndJRGenerator |
( |
| ) |
|
|
virtual |
Destructor
Definition at line 45 of file PndJRGenerator.cxx.
void CloseInput()
Particle array from PLUTO.
void PndJRGenerator::CloseInput |
( |
| ) |
|
|
private |
Particle array from PLUTO.
Private method CloseInput. Just for convenience. Closes the input file properly. Called from destructor and from ReadEvent.
Definition at line 109 of file PndJRGenerator.cxx.
111 cout <<
"-I PndJRGenerator: Closing input file " <<
fFileName
const Char_t * fFileName
Event number.
TFile * fInputFile
Input file name.
Bool_t PndJRGenerator::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 53 of file PndJRGenerator.cxx.
References Double_t, fParticles, g, and pz.
57 cout <<
"-E PndJRGenerator: Input file nor open!" << endl;
63 cout <<
"-E PndJRGenerator: No more events in input file!" << endl;
76 for (Int_t iPart=0; iPart < nParts; iPart++) {
77 TParticle* part = (TParticle*)
fParticles->At(iPart);
78 Int_t pdgType = part->GetPdgCode();
82 cout <<
"-W PndJRGenerator: Unknown type " << part->GetPdgCode()
83 <<
", skipping particle." << endl;
96 primGen->AddTrack(pdgType, px, py, pz, vx, vy, vz);
TTree * fInputTree
Pointer to input file.
FairPrimaryGenerator * primGen
TClonesArray * fParticles
Pointer to input tree.
void CloseInput()
Particle array from PLUTO.
TFile * fInputFile
Input file name.
const Char_t* PndJRGenerator::fFileName |
|
private |
TFile* PndJRGenerator::fInputFile |
|
private |
TTree* PndJRGenerator::fInputTree |
|
private |
TClonesArray* PndJRGenerator::fParticles |
|
private |
Int_t PndJRGenerator::iEvent |
|
private |
The documentation for this class was generated from the following files: