12 if (
msg.level() <= MSG::DEBUG) {
13 msg << MSG::DEBUG <<
"entering entryVolume with ascending = " << ascending
14 <<
" and pos = " << pos <<
endmsg;
23 for (VolumeContainer::const_iterator i=
volumes().begin(); i!=
volumes().end(); ++i) {
25 if (
msg.level() <= MSG::DEBUG) {
26 msg << MSG::DEBUG <<
"Comparing " << pos <<
" and " << (**i).position() <<
endmsg;
28 if (pos < (**i).position()) {
29 if (
msg.level() <= MSG::DEBUG) {
30 msg << MSG::DEBUG <<
"volume at pos " << (**i).radius()
31 <<
", " << (**i).zPos() <<
" contains exit point" <<
endmsg;
35 else if (
msg.level() <= MSG::DEBUG) {
36 msg << MSG::DEBUG <<
"volume at pos " << (**i).radius()
37 <<
", " << (**i).zPos() <<
" does not contain exit point" <<
endmsg;
43 for (VolumeContainer::const_reverse_iterator i=
volumes().rbegin(); i!=
volumes().rend(); ++i) {
44 if ((**i).contains(pos))
return *i;