Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inline G4double G4GeneralPhaseSpaceDecay::Pmx(
- G4double e, G4double p1, G4double p2)
- {
- // calculate momentum of daughter particles in two-body decay
- if (e-p1-p2 < 0 )
- {
- G4HadronicException(__FILE__, __LINE__,
- "G4GeneralPhaseSpaceDecay::Pmx energy in "
- "cms > mass1+mass2");
- }
- ....
- }
- Most likely this is what should be written here: throw G4HadronicException(__FILE__, __LINE__, ....);
- This suspicious code was found in Geant4 project by PVS-Studio static code analyzer.
- Warning message is:
- V596 The object was created but it is not being used. The 'throw' keyword could be missing: throw G4HadronicException(FOO); G4had_mod_util g4generalphasespacedecay.hh 116
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment