Skip to content
Snippets Groups Projects
Commit 4ecc1c68 authored by lawrenceleejr's avatar lawrenceleejr
Browse files

G4Extensions: Fixing typo for G4 console output

Former-commit-id: 248e659b8d8a8c714cb36ce0c7832abae50f4b40
parent 44beea96
No related merge requests found
...@@ -223,7 +223,7 @@ void Pythia8ForDecays::Py1ent(const G4Track& aTrack, std::vector<G4DynamicPartic ...@@ -223,7 +223,7 @@ void Pythia8ForDecays::Py1ent(const G4Track& aTrack, std::vector<G4DynamicPartic
double fracR = mRBef / mRHad; double fracR = mRBef / mRHad;
if (fracR >= 1.){ if (fracR >= 1.){
g4cout << "R-Hadron mass is smaller than (or the same as) the constituent sparticle! Something must be wrong!" << g4endl; G4cout << "R-Hadron mass is smaller than (or the same as) the constituent sparticle! Something must be wrong!" << G4endl;
return; return;
} }
...@@ -280,7 +280,7 @@ void Pythia8ForDecays::Py1ent(const G4Track& aTrack, std::vector<G4DynamicPartic ...@@ -280,7 +280,7 @@ void Pythia8ForDecays::Py1ent(const G4Track& aTrack, std::vector<G4DynamicPartic
const G4ParticleDefinition * particleDefinition = GetParticleDefinition( m_pythia->event[i].id() ); const G4ParticleDefinition * particleDefinition = GetParticleDefinition( m_pythia->event[i].id() );
if (!particleDefinition){ if (!particleDefinition){
g4cout << "I don't know a definition for pdgid "<<m_pythia->event[i].id()<<"! Skipping it..." << g4endl; G4cout << "I don't know a definition for pdgid "<<m_pythia->event[i].id()<<"! Skipping it..." << G4endl;
continue; continue;
} }
......
...@@ -53,7 +53,7 @@ G4DecayProducts* RHadronPythiaDecayer::ImportDecayProducts(const G4Track& aTrack ...@@ -53,7 +53,7 @@ G4DecayProducts* RHadronPythiaDecayer::ImportDecayProducts(const G4Track& aTrack
PythiaForDecays::Instance()->ImportParticles(particles); PythiaForDecays::Instance()->ImportParticles(particles);
} }
g4cout << "Decayed an RHadron with ID " << pdgEncoding << " and momentum " << aTrack.GetMomentum() << " in Pythia. Decay products are:" << g4endl; G4cout << "Decayed an RHadron with ID " << pdgEncoding << " and momentum " << aTrack.GetMomentum() << " in Pythia. Decay products are:" << G4endl;
double totalE=0.0; double totalE=0.0;
for (unsigned int i=0; i<particles.size(); ++i){ for (unsigned int i=0; i<particles.size(); ++i){
if (particles[i]) { if (particles[i]) {
...@@ -61,12 +61,12 @@ G4DecayProducts* RHadronPythiaDecayer::ImportDecayProducts(const G4Track& aTrack ...@@ -61,12 +61,12 @@ G4DecayProducts* RHadronPythiaDecayer::ImportDecayProducts(const G4Track& aTrack
totalE += particles[i]->GetTotalEnergy(); totalE += particles[i]->GetTotalEnergy();
} }
else { else {
g4cout << i << " null pointer!" << g4endl; G4cout << i << " null pointer!" << G4endl;
} }
} }
g4cout << "Total energy in was "<<etot << g4endl; G4cout << "Total energy in was "<<etot << G4endl;
g4cout << "Total energy out is "<<totalE << g4endl; G4cout << "Total energy out is "<<totalE << G4endl;
dp->DumpInfo(); dp->DumpInfo();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment