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/CORParticle.hxx

    r3046 r5112  
    2727#include "TObject.h"
    2828
    29 #include <iostream.h>
    30 #include <iomanip.h>
    31 #include <fstream.h>
     29#include <iostream>
     30#include <iomanip>
     31#include <fstream>
    3232#include <stdlib.h>
    3333#include <math.h>
    3434// @endcode
     35
     36using namespace std;
    3537
    3638// @subsection Class {\em CORParticle}: Definition
     
    6971  // reads photon from binary input stream
    7072  Int_t read ( ifstream &is ) {
    71     int n;
    72     is.read ( (char *)this, 7 * sizeof( Float_t ) );   //
     73    is.read ( (char *)(&this->w), 7 * sizeof( Float_t ) );   //
    7374    return is.gcount();
    7475  }
     
    7677  // writes photon to binary output stream
    7778  Int_t write ( ofstream &os ) {
    78     os.write ( (char *)this, 7 * sizeof( Float_t ) );
     79    os.write ( (char *)(&this->w), 7 * sizeof( Float_t ) );
    7980    return 0;
    8081  }
Note: See TracChangeset for help on using the changeset viewer.