8 #include "TClonesArray.h"
13 #include "TLorentzVector.h"
16 #include "../hyp/THParticle.h"
18 #include "FairPrimaryGenerator.h"
27 fThetaRangeIsSet(0),fPRangeIsSet(0),fGamOn(0) {
39 fThetaRangeIsSet(0),fPRangeIsSet(0),fGamOn(0){
46 fParticles =
new TClonesArray(
"THParticle",100);
69 cout <<
"-E- PndHypBupGenerator: Input file not open!" << endl;
74 cout <<
"-E PndDpmGenerator: No more events in input file!" << endl;
92 for (Int_t iPart=0; iPart < nParts; iPart++) {
98 cout <<
"-W PndDpmGenerator: Unknown type " << part->
GetPdgCode()
99 <<
", skipping particle." << endl;
113 phi = gRandom->Uniform(0,360)* TMath::DegToRad();
126 cout<<
" Secondary vertex for stopping Xi - gammas "<<vx<<
" "
132 primGen->AddTrack(22, px, py, pz, vx, vy,vz);
148 cout<<
" Secondary vertex for stopping Xi - "<<pdgType<<
" "<<vx<<
" "
154 primGen->AddTrack(pdgType, px, py, pz, vx, vy,vz);
171 cout <<
"-I- CbmHypBupGenerator: Closing input file "
friend F32vec4 acos(const F32vec4 &a)
const Char_t * fFileName
Event number.
friend F32vec4 cos(const F32vec4 &a)
TTree * fInputTree
Pointer to input file.
Int_t iEvent
PDG database.
FairPrimaryGenerator * primGen
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
virtual ~PndHypBupGenerator()
TClonesArray * fParticles
Pointer to input tree.
TFile * fInputFile
Input file name.
Double32_t fThetaMin
Azimuth angle range [degree].
Double32_t fPMin
Particle array.