Changeset 5112 for trunk/MagicSoft/Simulation/Detector
- Timestamp:
- 09/17/04 18:41:21 (20 years ago)
- Location:
- trunk/MagicSoft/Simulation/Detector/include-CORSIKA
- Files:
-
- 3 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 } -
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 } -
trunk/MagicSoft/Simulation/Detector/include-CORSIKA/CORStatfile.hxx
r3046 r5112 27 27 #include "TObject.h" 28 28 29 #include <iostream .h>30 #include <fstream .h>29 #include <iostream> 30 #include <fstream> 31 31 #include <stdlib.h> 32 32 #include <math.h> … … 36 36 #define NPLONG 1041 37 37 // @endcode 38 39 using namespace std; 38 40 39 41 // @subsection Class {\em CORStatfile}: Definition
Note:
See TracChangeset
for help on using the changeset viewer.