Changeset 2454 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 11/03/03 15:41:36 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHillasCalc.cc
r2440 r2454 173 173 // -------------------------------------------------------------------------- 174 174 // 175 // This is used to print the output in the PostProcess. Later (having 176 // millions of events) we may want to improve the output. 177 // 178 void MHillasCalc::PrintSkipped(int i, const char *str) const 179 { 180 *fLog << " " << setw(7) << fErrors[i] << " ("; 181 *fLog << setw(3) << (int)(100.*fErrors[i]/GetNumExecutions()); 182 *fLog << "%) Evts skipped due to: " << str << endl; 183 } 184 185 // -------------------------------------------------------------------------- 186 // 175 187 // Prints some statistics about the hillas calculation. The percentage 176 188 // is calculated with respect to the number of executions of this task. … … 184 196 *fLog << GetDescriptor() << " execution statistics:" << endl; 185 197 *fLog << dec << setfill(' '); 186 *fLog << " " << setw(7) << fErrors[1] << " (" << setw(3) << (int)(fErrors[1]*100/GetNumExecutions()) << "%) Evts skipped due to: Event has less than 3 pixels" << endl;187 *fLog << " " << setw(7) << fErrors[2] << " (" << setw(3) << (int)(fErrors[2]*100/GetNumExecutions()) << "%) Evts skipped due to: Calculated Size == 0" << endl;188 *fLog << " " << setw(7) << fErrors[3] << " (" << setw(3) << (int)(fErrors[3]*100/GetNumExecutions()) << "%) Evts skipped due to: Number of used pixels < 3" << endl;189 *fLog << " " << setw(7) << fErrors[4] << " (" << setw(3) << (int)(fErrors[4]*100/GetNumExecutions()) << "%) Evts skipped due to: CorrXY==0" << endl;190 *fLog << " " << fErrors[0] << " (" << (int)(fErrors[0]*100/GetNumExecutions()) << "%) Evts survived Hillas calculation!" << endl;198 PrintSkipped(1, "Event has less than 3 pixels"); 199 PrintSkipped(2, "Calculated Size == 0"); 200 PrintSkipped(3, "Number of used pixels < 3"); 201 PrintSkipped(4, "CorrXY==0"); 202 *fLog << " " << (int)fErrors[0] << " (" << (int)(100.*fErrors[0]/GetNumExecutions()) << "%) Evts survived Hillas calculation!" << endl; 191 203 *fLog << endl; 192 204
Note:
See TracChangeset
for help on using the changeset viewer.