Changeset 3526 for trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
- Timestamp:
- 03/16/04 18:50:24 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
r3520 r3526 116 116 Double_t edgepixin2 = 0; 117 117 118 Float_t maxpix[9] = {0,0,0,0,0,0,0,0,0}; // [#phot]119 118 Float_t maxpix1 = 0; // [#phot] 120 119 Float_t maxpix2 = 0; // [#phot] … … 171 170 } 172 171 } 173 174 // Compute Concentrations 1-8175 176 if(maxpix[0]<=nphot) {177 for(int i=0;i<8;i++)178 maxpix[8-i]=maxpix[7-i];179 maxpix[0]=nphot;180 }181 else182 for(int i=0;i<8;i++){183 if (nphot<maxpix[7-i]){184 for(int j=0;j<i-1;j++){185 maxpix[7-j]=maxpix[6-j]; // [1]186 }187 maxpix[8-i]=nphot;188 break;189 }190 }191 172 192 173 // Compute Concetration 1 -2 … … 211 192 fConc1 = maxpix1/hillas.GetSize(); // [ratio] 212 193 213 fConc3 = (maxpix[0]+maxpix[1]+maxpix[2]);214 fConc4 = (fConc3+maxpix[3]);215 fConc5 = (fConc4+maxpix[4]);216 fConc6 = (fConc5+maxpix[5]);217 fConc7 = (fConc6+maxpix[6]);218 fConc8 = (fConc7+maxpix[7]);219 220 fConc3/=hillas.GetSize(); // [ratio]221 fConc4/=hillas.GetSize(); // [ratio]222 fConc5/=hillas.GetSize(); // [ratio]223 fConc6/=hillas.GetSize(); // [ratio]224 fConc7/=hillas.GetSize(); // [ratio]225 fConc8/=hillas.GetSize(); // [ratio]226 227 194 SetReadyToSave(); 228 195 }
Note:
See TracChangeset
for help on using the changeset viewer.