Changeset 1629 for trunk/MagicSoft/include-Classes/MMcFormat
- Timestamp:
- 11/18/02 10:46:48 (22 years ago)
- Location:
- trunk/MagicSoft/include-Classes/MMcFormat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MMcFormat/MMcCorsikaRunHeader.cc
r1628 r1629 47 47 fTitle = title ? title : "Translation of the CORSIKA header"; 48 48 49 fRunNumber = 0.0; 50 fDate = 0.0; 51 fCorsika_version = 0.0; 52 fNumObsLev = 0.0; 53 for(int i=0;i<10;i++) 54 fHeightLev[i]=0.0; 55 fSlopeSpec = 0.0; 56 fELowLim = 0.0; 57 fEUppLim = 0.0; 58 fEGS4_flag = 0.0; 59 fNKG_flag = 0.0; 60 fEcutoffh = 0.0; 61 fEcutoffm = 0.0; 62 fEcutoffe = 0.0; 63 fEcutoffg = 0.0; 49 fRunNumber = 0; 50 fDate = 0; 51 fCorsikaVersion = 0; 52 fNumObsLev = 0; 64 53 65 for(int i=0;i<50;i++) fC[i] = 0.0; 66 for(int i=0;i<40;i++) fCKA[i] = 0.0; 67 for(int i=0;i<5 ;i++) fCETA[i] = 0.0; 68 for(int i=0;i<11;i++) fCSTRBA[i] = 0.0; 69 for(int i=0;i<5;i++){ 70 fAATM[i] = 0.0; 71 fBATM[i] = 0.0; 72 fCATM[i] = 0.0; 54 for (int i=0; i<10; i++) 55 fHeightLev[i]=0; 56 57 fSlopeSpec = 0; 58 fELowLim = 0; 59 fEUppLim = 0; 60 fEGS4flag = 0; 61 fNKGflag = 0; 62 fEcutoffh = 0; 63 fEcutoffm = 0; 64 fEcutoffe = 0; 65 fEcutoffg = 0; 66 67 for(int i=0; i<50; i++) fC[i] = 0; 68 for(int i=0; i<40; i++) fCKA[i] = 0; 69 for(int i=0; i<5; i++) fCETA[i] = 0; 70 for(int i=0; i<11; i++) fCSTRBA[i] = 0; 71 for(int i=0; i<5; i++) 72 { 73 fAATM[i] = 0; 74 fBATM[i] = 0; 75 fCATM[i] = 0; 73 76 } 74 for (int i=0;i<4;i++) fNFL[i] = 0.0;77 for (int i=0;i<4; i++) fNFL[i] = 0; 75 78 76 79 } … … 105 108 fRunNumber = runnumber; 106 109 fDate = date; 107 fCorsika _version = vers;110 fCorsikaVersion = vers; 108 111 fNumObsLev = numobslev; 109 for(int i=0;i<10;i++) 112 113 for (int i=0; i<10; i++) 110 114 fHeightLev[i]=height[i]; 115 111 116 fSlopeSpec = slope; 112 117 fELowLim = elow; 113 118 fEUppLim = eupp; 114 fEGS4 _flag = egs4;115 fNKG _flag = nkg;119 fEGS4flag = egs4; 120 fNKGflag = nkg; 116 121 fEcutoffh = eh; 117 122 fEcutoffm = em; … … 119 124 fEcutoffg = eg; 120 125 121 for(int i=0;i<50;i++) fC[i] = c[i]; 122 for(int i=0;i<40;i++) fCKA[i] = cka[i]; 123 for(int i=0;i<5 ;i++) fCETA[i] = ceta[i]; 124 for(int i=0;i<11;i++) fCSTRBA[i] = cstrba[i]; 125 for(int i=0;i<5;i++){ 126 for (int i=0; i<50; i++) fC[i] = c[i]; 127 for (int i=0; i<40; i++) fCKA[i] = cka[i]; 128 for (int i=0; i<5 ; i++) fCETA[i] = ceta[i]; 129 for (int i=0; i<11; i++) fCSTRBA[i] = cstrba[i]; 130 for (int i=0; i<5; i++) 131 { 126 132 fAATM[i] = aatm[i]; 127 133 fBATM[i] = batm[i]; 128 134 fCATM[i] = catm[i]; 129 130 for (int i=0;i<4;i++) fNFL[i] = nfl[i];135 } 136 for (int i=0; i<4; i++) fNFL[i] = nfl[i]; 131 137 } 132 138 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcCorsikaRunHeader.h
r1623 r1629 20 20 Float_t fRunNumber; 21 21 Float_t fDate; 22 Float_t fCorsika _version;22 Float_t fCorsikaVersion; 23 23 Float_t fNumObsLev; 24 24 Float_t fHeightLev[10]; … … 26 26 Float_t fELowLim; 27 27 Float_t fEUppLim; // Limits of energy range for generation 28 Float_t fEGS4 _flag;29 Float_t fNKG _flag;28 Float_t fEGS4flag; 29 Float_t fNKGflag; 30 30 Float_t fEcutoffh; 31 31 Float_t fEcutoffm; … … 45 45 public: 46 46 MMcCorsikaRunHeader(const char *name=NULL, const char *title=NULL); 47 ~MMcCorsikaRunHeader();48 47 49 48 void Fill(const Float_t runnumber,
Note:
See TracChangeset
for help on using the changeset viewer.