Ignore:
Timestamp:
09/17/04 18:41:21 (20 years ago)
Author:
moralejo
Message:
 Commited changes to adapt header files to current c++ syntaxis.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/include-CORSIKA/COREventHeader.hxx

    r5103 r5112  
    3232#include <stdlib.h>
    3333#include <math.h>
    34 #include <string>
    3534// @endcode
    3635
     
    124123  // reads EventHeader from binary input stream
    125124  Int_t read ( ifstream &is ) {
    126     is.read ( (char *)this, sizeof( float ) * 273 );
     125    is.read ( (char *)&(this->EVTH[0]), sizeof( float ) * 273 );
    127126    return is.gcount();
    128127  }
     
    130129  // writes EventHeader to binary output stream
    131130  Int_t write ( ofstream &os ) {
    132     os.write ( (char *)this, sizeof( float ) * 273 );
     131    os.write ( (char *)&(this->EVTH[0]), sizeof( float ) * 273 );
    133132    return 0;
    134133  }
Note: See TracChangeset for help on using the changeset viewer.