- Timestamp:
- 09/17/04 18:41:21 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-CORSIKA/COREventHeader.hxx
r5103 r5112 32 32 #include <stdlib.h> 33 33 #include <math.h> 34 #include <string>35 34 // @endcode 36 35 … … 124 123 // reads EventHeader from binary input stream 125 124 Int_t read ( ifstream &is ) { 126 is.read ( (char *) this, sizeof( float ) * 273 );125 is.read ( (char *)&(this->EVTH[0]), sizeof( float ) * 273 ); 127 126 return is.gcount(); 128 127 } … … 130 129 // writes EventHeader to binary output stream 131 130 Int_t write ( ofstream &os ) { 132 os.write ( (char *) this, sizeof( float ) * 273 );131 os.write ( (char *)&(this->EVTH[0]), sizeof( float ) * 273 ); 133 132 return 0; 134 133 }
Note:
See TracChangeset
for help on using the changeset viewer.