Changeset 3454 for trunk


Ignore:
Timestamp:
03/10/04 16:32:13 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3453 r3454  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2004/03/10: Thomas Bretz
     21
     22   * mfilter/MFSoftwareTrigger.[h,cc]:
     23     - changed to support also a predifined number of NN
     24
     25
     26
    2027 2004/03/10: Ester Aliu
    2128
     
    2734   * mtemp/MIslandCalc.[h,cc]
    2835     - New MTask to count and characterize Islands.
     36
     37
    2938
    3039 2004/03/09: Thomas Bretz
  • trunk/MagicSoft/Mars/mfilter/MFSoftwareTrigger.cc

    r2704 r3454  
    5959//
    6060MFSoftwareTrigger::MFSoftwareTrigger(const char *name, const char *title)
    61     : fNumMinPhotons(0)
     61    : fNumMinPhotons(0), fNumNeighbors(2)
    6262{
    6363    fName  = name  ? name  : "MFSoftwareTrigger";
     
    9191            continue;
    9292
     93        Int_t num = 1;
     94
    9395        const Int_t nneighbors = gpix.GetNumNeighbors();
    9496        for (Int_t n=0; n<nneighbors; n++)
     
    103105            const Double_t photons = fEvt->GetPixById(id)->GetNumPhotons();
    104106            if (photons >= fNumMinPhotons)
    105                 return kTRUE;
     107                if (++num==fNumNeighbors)
     108                    return kTRUE;
    106109        }
    107110    }
     
    162165    *fLog << (int)(fCut[1]*100/GetNumExecutions()) ;
    163166    *fLog << "%) Evts skipped due to: Software trigger not fullfilled" ;
    164     *fLog << " (with fNumMinPhotons = " << fNumMinPhotons << ")" << endl;
     167    *fLog << " (NumPhotons>=" << fNumMinPhotons << ", NumNeighbors>=";
     168    *fLog << fNumNeighbors << ")" << endl;
    165169
    166170    *fLog << " " << fCut[0] << " (" << (int)(fCut[0]*100/GetNumExecutions()) ;
  • trunk/MagicSoft/Mars/mfilter/MFSoftwareTrigger.h

    r2704 r3454  
    1717
    1818    Float_t     fNumMinPhotons; // nuber of minimum required photons
     19    Byte_t      fNumNeighbors;  // number of required neighbours
    1920
    2021    Int_t       fCut[2];
     
    3435
    3536    void SetNumMinPhotons(Float_t minphotons) { fNumMinPhotons = minphotons; }
     37    void SetNumNeighbors(Byte_t num) { fNumNeighbors = num; }
    3638
    3739    ClassDef(MFSoftwareTrigger, 0) // Filter for software trigger
Note: See TracChangeset for help on using the changeset viewer.