hepmc - Diff between revs 65 and 432

Subversion Repositories:
Rev:
Show entire file - Ignore whitespace
Rev 65 Rev 432
Line 5... Line 5...
5 ////////////////////////////////////////////////////////////////////////// 5 //////////////////////////////////////////////////////////////////////////
6 // Mikhail.Kirsanov@Cern.CH, 2006 6 // Mikhail.Kirsanov@Cern.CH, 2006
7 // event input/output in ascii format for eye and machine reading 7 // event input/output in ascii format for eye and machine reading
8 ////////////////////////////////////////////////////////////////////////// 8 //////////////////////////////////////////////////////////////////////////
9 // 9 //
10 // Strategy for reading or writing events/particleData as machine readable -  
-   10 // Strategy for reading or writing events as machine readable
11 //  ascii to a file. When instantiating, the mode of file to be created 11 //  ascii to a file. When instantiating, the mode of file to be created
12 //  must be specified. Options are: 12 //  must be specified. Options are:
13 //      std::ios::in     open file for input 13 //      std::ios::in     open file for input
14 //      std::ios::out    open file for output 14 //      std::ios::out    open file for output
15 //      std::ios::trunc  erase old file when opening (i.e. ios::out|ios::trunc 15 //      std::ios::trunc  erase old file when opening (i.e. ios::out|ios::trunc
Line 45... Line 45...
45 45
46     //! event input/output in ascii format for eye and machine reading 46     //! event input/output in ascii format for eye and machine reading
47 47
48     /// 48     ///
49     /// \class IO_AsciiParticles 49     /// \class IO_AsciiParticles
50     /// Strategy for reading or writing events/particleData as machine readable -  
-   50     /// Strategy for reading or writing events as machine readable
51     ///  ascii to a file. When instantiating, the mode of file to be created 51     ///  ascii to a file. When instantiating, the mode of file to be created
52     ///  must be specified. 52     ///  must be specified.
53     /// 53     ///
54     class IO_AsciiParticles : public IO_BaseClass { 54     class IO_AsciiParticles : public IO_BaseClass {
55     public: 55     public:
Line 60... Line 60...
60 60
61         /// write this event 61         /// write this event
62         void          write_event( const GenEvent* evt ); 62         void          write_event( const GenEvent* evt );
63         /// get the next event 63         /// get the next event
64         bool          fill_next_event( GenEvent* evt ); 64         bool          fill_next_event( GenEvent* evt );
65     inline void          write_particle_data_table(const ParticleDataTable*); -  
66     inline bool          fill_particle_data_table( ParticleDataTable* ); -  
67         /// insert a comment directly into the output file --- normally you 65         /// insert a comment directly into the output file --- normally you
68         ///  only want to do this at the beginning or end of the file. All 66         ///  only want to do this at the beginning or end of the file. All
69         ///  comments are preceded with "HepMC::IO_AsciiParticles-COMMENT\n" 67         ///  comments are preceded with "HepMC::IO_AsciiParticles-COMMENT\n"
70         void          write_comment( const std::string comment ); 68         void          write_comment( const std::string comment );
71 69
Line 96... Line 94...
96     ////////////// 94     //////////////
97 95
98     inline int  IO_AsciiParticles::rdstate() const { return (int)m_file->rdstate(); } 96     inline int  IO_AsciiParticles::rdstate() const { return (int)m_file->rdstate(); }
99     inline void IO_AsciiParticles::clear() { m_file->clear(); } 97     inline void IO_AsciiParticles::clear() { m_file->clear(); }
100     inline void IO_AsciiParticles::setPrecision(int iprec) { m_precision=iprec; } 98     inline void IO_AsciiParticles::setPrecision(int iprec) { m_precision=iprec; }
101 -  
102     ///////////////////// -  
103     // Inline dummies  // -  
104     ///////////////////// -  
105 -  
106   void IO_AsciiParticles::write_particle_data_table(const ParticleDataTable*) {;} -  
107   bool IO_AsciiParticles::fill_particle_data_table( ParticleDataTable* ) {return false;} -  
108 99
109 } // HepMC 100 } // HepMC
110 101
111 #endif  // HEPMC_IO_ASCIIPARTICLES_H 102 #endif  // HEPMC_IO_ASCIIPARTICLES_H
112 //-------------------------------------------------------------------------- 103 //--------------------------------------------------------------------------