- Timestamp:
- 09/17/04 18:41:21 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-CORSIKA/CORParticle.hxx
r3046 r5112 27 27 #include "TObject.h" 28 28 29 #include <iostream .h>30 #include <iomanip .h>31 #include <fstream .h>29 #include <iostream> 30 #include <iomanip> 31 #include <fstream> 32 32 #include <stdlib.h> 33 33 #include <math.h> 34 34 // @endcode 35 36 using namespace std; 35 37 36 38 // @subsection Class {\em CORParticle}: Definition … … 69 71 // reads photon from binary input stream 70 72 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 ) ); // 73 74 return is.gcount(); 74 75 } … … 76 77 // writes photon to binary output stream 77 78 Int_t write ( ofstream &os ) { 78 os.write ( (char *) this, 7 * sizeof( Float_t ) );79 os.write ( (char *)(&this->w), 7 * sizeof( Float_t ) ); 79 80 return 0; 80 81 }
Note:
See TracChangeset
for help on using the changeset viewer.