// $Id: print.cc,v 1.2 2002/06/09 12:10:40 boudreau Exp $ // -*- C++ -*- // // ---------------------------------------------------------------------- // print.cc // print an event to the specified output stream (default is std::cout) // ---------------------------------------------------------------------- #include "CLHEP/config/CLHEP.h" #include "CLHEP/config/iostream.h" #include "CLHEP/StdHep/StdEvent.hh" namespace StdHep { void StdEvent::print( std::ostream & os ) const { os << " -------------------------------------------------------- " << std::endl; os << " StdEvent " << itsEventNumber << " with " << numCollisions() << " collisions" << std::endl; os << " -------------------------------------------------------- " << std::endl; // loop over Collisions CollisionList::const_iterator cit(itsCollisionList.begin()), e(itsCollisionList.end()); while(cit!=e) { os << "Begin Collision " << (*cit)->event_number() << std::endl; (*cit)->print( os ); ++cit; } } } // StdHep