00001
00002
00003
00004
00006 #ifndef FOURMOMUTILS_P4DUMPER_H
00007 #define FOURMOMUTILS_P4DUMPER_H
00008
00009
00010 #include <iosfwd>
00011
00012
00013
00014 namespace FourMomUtils {
00015
00017 template <class I4MomIter>
00018 inline
00019 std::ostream& dump( std::ostream& out,
00020 const I4MomIter iBeg, const I4MomIter iEnd ) {
00021 for ( I4MomIter i = iBeg; i != iEnd; ++i ) {
00022 out << (**i) << "\n";
00023 }
00024 return out;
00025 }
00026
00028 template <class Container>
00029 inline
00030 std::ostream& dump( std::ostream& out, const Container& c ) {
00031 return dump( out, c.begin(), c.end() );
00032 }
00033
00034 }
00035
00036 #endif //> FOURMOMUTILS_P4DUMPER_H