Changeset 2430 for trunk/MagicSoft/Simulation
- Timestamp:
- 10/26/03 20:01:45 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/StarResponse/MStarLight.cxx
r1079 r2430 316 316 } 317 317 318 Float_t version = VERSIONSR; 319 318 320 // write them out 319 321 322 fwrite ( &version, sizeof(Float_t), 1, datei ) ; 320 323 fwrite ( &fBrightness, sizeof(Float_t), 1, datei ) ; 321 324 fwrite ( &fTimeRange , sizeof(Float_t), 1, datei ) ; … … 377 380 exit (230) ; 378 381 } 379 382 383 Float_t read_version; 384 Float_t current_version=VERSIONSR; 385 386 // Check taht we read the right version of the Database 387 fread ( &read_version, sizeof(Float_t), 1, datei ) ; 388 389 if(Int_t(read_version)!=Int_t(current_version)){ 390 cout<<" Error: You are trying to read database VERSION "<< 391 read_version<<endl; 392 cout<<" You must generate a databse for the current VERSION "<< 393 current_version<<endl; 394 exit (230); 395 } 396 380 397 fread ( &fBrightness, sizeof(Float_t), 1, datei ) ; 381 398 fread ( &fTimeRange , sizeof(Float_t), 1, datei ) ;
Note:
See TracChangeset
for help on using the changeset viewer.