Ignore:
Timestamp:
03/08/03 14:00:30 (22 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfilter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfilter/MFEventSelector.cc

    r1762 r1809  
    118118Bool_t MFEventSelector::PreProcess(MParList *plist)
    119119{
     120    memset(fErrors, 0, sizeof(fErrors));
     121
    120122    fNumSelectedEvts = 0;
    121123    if (fSelRatio>0)
     
    153155Bool_t MFEventSelector::Process()
    154156{
     157    Int_t rc;
     158
    155159    const Float_t evt = gRandom->Uniform();
    156160
     
    161165
    162166    if (fResult)
     167    {
    163168        fNumSelectedEvts++;
    164169
     170        rc = 0;
     171        fErrors[rc]++;
     172        return kTRUE;
     173    }
     174   
     175    rc = 1;
     176    fErrors[rc]++;
     177
    165178    return kTRUE;
    166179}
     
    172185Bool_t MFEventSelector::PostProcess()
    173186{
     187    //---------------------------------
     188    if (GetNumExecutions() != 0)
     189    {
     190      *fLog << inf << endl;
     191      *fLog << GetDescriptor() << " execution statistics:" << endl;
     192      *fLog << dec << setfill(' ');
     193      *fLog << " " << setw(7) << fErrors[1] << " (" << setw(3)
     194            << (int)(fErrors[1]*100/GetNumExecutions())
     195            << "%) Events not selected" << endl;
     196
     197      *fLog << " " << fErrors[0] << " ("
     198            << (int)(fErrors[0]*100/GetNumExecutions())
     199            << "%) Events selected!" << endl;
     200      *fLog << endl;
     201    }
     202
     203    //---------------------------------
    174204    if (TestBit(kNumTotalFromFile))
    175205        fNumTotalEvts = -1;
     
    199229
    200230}
    201 
  • trunk/MagicSoft/Mars/mfilter/MFEventSelector.h

    r1762 r1809  
    3737     */
    3838
     39    Int_t fErrors[2];
     40
    3941public:
    4042    // MFEventSelector();
Note: See TracChangeset for help on using the changeset viewer.