Changeset 1550 for trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
- Timestamp:
- 10/18/02 17:53:03 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
r1521 r1550 21 21 // 22 22 // $RCSfile: camera.cxx,v $ 23 // $Revision: 1.4 3$23 // $Revision: 1.44 $ 24 24 // $Author: blanch $ 25 // $Date: 2002- 09-13 10:53:39$25 // $Date: 2002-10-18 16:53:03 $ 26 26 // 27 27 //////////////////////////////////////////////////////////////////////// … … 1850 1850 heights, 1851 1851 corsika, 1852 (UInt_t)(REFL_VERSION *100),1852 (UInt_t)(REFL_VERSION_A*100), 1853 1853 (UInt_t)(VERSION*100)); 1854 1854 … … 3033 3033 int check_reflector_file(FILE *infile){ 3034 3034 3035 char Signature[20]; // auxiliary variable3036 3035 char sign[20]; // auxiliary variable 3037 3036 3038 strcpy(Signature, REFL_SIGNATURE); 3039 3040 strcpy(sign, Signature); 3041 3042 fread( (char *)sign, strlen(Signature), 1, infile); 3043 3044 if (strcmp(sign, Signature) != 0) { 3037 strcpy(sign, REFL_SIGNATURE_B); 3038 3039 fread( (char *)sign, strlen(REFL_SIGNATURE_B), 1, infile); 3040 if (strcmp(sign, REFL_SIGNATURE_A) == 0){ 3041 fread( (char *)sign, 1, 1, infile); 3042 return 4; 3043 } 3044 else if (strcmp(sign, REFL_SIGNATURE_B) == 0){ 3045 fread( (char *)sign, 1, 1, infile); 3046 return 5; 3047 } 3048 else if (strcmp(sign, REFL_SIGNATURE_C) == 0){ 3049 fread( (char *)sign, 1, 1, infile); 3050 return 6; 3051 } 3052 else { 3045 3053 cout << "ERROR: Signature of .rfl file is not correct\n"; 3046 3054 cout << '"' << sign << '"' << '\n'; 3047 cout << "should be: " << Signature<< '\n';3055 cout << "should be: " << REFL_SIGNATURE_A <<" or "<< REFL_SIGNATURE_B <<" or " << REFL_SIGNATURE_C <<" or "<< '\n'; 3048 3056 return(FALSE); 3049 3057 } 3050 3058 3051 fread( (char *)sign, 1, 1, infile);3052 3053 return(TRUE);3054 3059 3055 3060 } … … 3601 3606 // 3602 3607 // $Log: not supported by cvs2svn $ 3608 // Revision 1.43 2002/09/13 10:53:39 blanch 3609 // Minor change to remove some undisired comments. 3610 // 3603 3611 // Revision 1.42 2002/09/09 16:00:49 blanch 3604 3612 // Statement has been included to avoid writting to disk MParContainer and MArray. … … 3731 3739 // 3732 3740 // $Log: not supported by cvs2svn $ 3741 // Revision 1.43 2002/09/13 10:53:39 blanch 3742 // Minor change to remove some undisired comments. 3743 // 3733 3744 // Revision 1.42 2002/09/09 16:00:49 blanch 3734 3745 // Statement has been included to avoid writting to disk MParContainer and MArray.
Note:
See TracChangeset
for help on using the changeset viewer.