Ignore:
Timestamp:
11/03/03 15:41:36 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MHillasCalc.cc

    r2440 r2454  
    173173// --------------------------------------------------------------------------
    174174//
     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//
     178void 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//
    175187//  Prints some statistics about the hillas calculation. The percentage
    176188//  is calculated with respect to the number of executions of this task.
     
    184196    *fLog << GetDescriptor() << " execution statistics:" << endl;
    185197    *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;
    191203    *fLog << endl;
    192204
Note: See TracChangeset for help on using the changeset viewer.