#include <RHadronPythiaDecayer.h>
Definition at line 17 of file RHadronPythiaDecayer.h.
◆ RHadronPythiaDecayer()
| RHadronPythiaDecayer::RHadronPythiaDecayer |
( |
const std::string & | s | ) |
|
◆ ImportDecayProducts()
| G4DecayProducts * RHadronPythiaDecayer::ImportDecayProducts |
( |
const G4Track & | aTrack | ) |
|
|
virtual |
Definition at line 22 of file RHadronPythiaDecayer.cxx.
22 {
23 G4DecayProducts *
dp =
new G4DecayProducts();
24 dp->SetParentParticle( *(aTrack.GetDynamicParticle()) );
25
26
27 G4double etot = aTrack.GetDynamicParticle()->GetTotalEnergy();
28 G4int pdgEncoding = aTrack.GetDefinition()->GetPDGEncoding();
29
30
31 std::vector<G4DynamicParticle*>
particles;
32
33
35
36 G4cout << "Decayed an RHadron with ID " << pdgEncoding << " and momentum " << aTrack.GetMomentum() << " in Pythia. Decay products are:" << G4endl;
37 double totalE=0.0;
39 if (particles[i]) {
40 dp->PushProducts(particles[i]);
42 }
43 else {
44 G4cout <<
i <<
" null pointer!" << G4endl;
45 }
46 }
47
48 G4cout << "Total energy in was "<<etot << G4endl;
49 G4cout << "Total energy out is "<<totalE << G4endl;
50
52
54}
Pythia8ForDecays m_pythia
◆ m_pythia
The documentation for this class was generated from the following files: