CLHEP/StdHep/ReadStdHep.hh

00001 // $Id: ReadStdHep.hh,v 1.3 2002/05/20 20:15:01 garren Exp $
00002 // ----------------------------------------------------------------------
00003 //
00004 // ReadStdHep.hh
00005 // Author: Lynn Garren
00006 //
00007 // read from an ascii file
00008 // ----------------------------------------------------------------------
00009 #ifndef READSTDHEP_HH
00010 #define READSTDHEP_HH
00011 
00012 #include "CLHEP/config/CLHEP.h"
00013 #include "CLHEP/config/iostream.h"
00014 #include <string>
00015 #include <map>
00016 
00017 #include "CLHEP/StdHep/StdEvent.hh"
00018 #include "CLHEP/StdHep/StdRunInfo.hh"
00019 
00020 namespace StdHep  {
00021 
00022 std::string readBlockType( std::istream & is );
00023 bool findBlockType( std::istream & is, std::string & type );
00024 StdEvent * readStdEvent( std::istream & is );
00025 StdEvent * findNextStdEvent( std::istream & is );
00026 StdRunInfo * readStdRun( std::istream & is );
00027 std::string readStdComment( std::istream & is );
00028 
00029   namespace Detail {
00030 
00031      StdEvent * readStdEventInfo( std::istream & is, std::string & evline );
00032      StdRunInfo * readRunInfo( std::istream & is, std::string & evline );
00033      void  parseStdEventLine( std::string & evline, int & evnum, int & ncol );
00034 
00035   }     // Detail
00036 
00037 }       // StdHep
00038 
00039 #endif // READSTDHEP_HH

Class Library for High Energy Physics (version 1.8)