Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- G4double G4MesonAbsorption::
- GetTimeToAbsorption(const G4KineticTrack& trk1,
- const G4KineticTrack& trk2)
- {
- ....
- if(( trk1.GetDefinition() == G4Neutron::Neutron() ||
- trk1.GetDefinition() == G4Neutron::Neutron() ) &&
- sqrtS>1.91*GeV && pi*distance>maxChargedCrossSection)
- return time;
- ....
- }
- Most likely this is what should be written here: trk1.GetDefinition() == G4Neutron::Neutron() || trk2.GetDefinition() == G4Neutron::Neutron()
- This suspicious code was found in Geant4 project by PVS-Studio static code analyzer.
- Warning message is:
- V501 There are identical sub-expressions 'trk1.GetDefinition() == G4Neutron::Neutron()' to the left and to the right of the '||' operator. G4had_im_r_matrix g4mesonabsorption.cc 285
- 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
Advertisement