Changeset 3454
- Timestamp:
- 03/10/04 16:32:13 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3453 r3454 18 18 19 19 -*-*- 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 20 27 2004/03/10: Ester Aliu 21 28 … … 27 34 * mtemp/MIslandCalc.[h,cc] 28 35 - New MTask to count and characterize Islands. 36 37 29 38 30 39 2004/03/09: Thomas Bretz -
trunk/MagicSoft/Mars/mfilter/MFSoftwareTrigger.cc
r2704 r3454 59 59 // 60 60 MFSoftwareTrigger::MFSoftwareTrigger(const char *name, const char *title) 61 : fNumMinPhotons(0) 61 : fNumMinPhotons(0), fNumNeighbors(2) 62 62 { 63 63 fName = name ? name : "MFSoftwareTrigger"; … … 91 91 continue; 92 92 93 Int_t num = 1; 94 93 95 const Int_t nneighbors = gpix.GetNumNeighbors(); 94 96 for (Int_t n=0; n<nneighbors; n++) … … 103 105 const Double_t photons = fEvt->GetPixById(id)->GetNumPhotons(); 104 106 if (photons >= fNumMinPhotons) 105 return kTRUE; 107 if (++num==fNumNeighbors) 108 return kTRUE; 106 109 } 107 110 } … … 162 165 *fLog << (int)(fCut[1]*100/GetNumExecutions()) ; 163 166 *fLog << "%) Evts skipped due to: Software trigger not fullfilled" ; 164 *fLog << " (with fNumMinPhotons = " << fNumMinPhotons << ")" << endl; 167 *fLog << " (NumPhotons>=" << fNumMinPhotons << ", NumNeighbors>="; 168 *fLog << fNumNeighbors << ")" << endl; 165 169 166 170 *fLog << " " << fCut[0] << " (" << (int)(fCut[0]*100/GetNumExecutions()) ; -
trunk/MagicSoft/Mars/mfilter/MFSoftwareTrigger.h
r2704 r3454 17 17 18 18 Float_t fNumMinPhotons; // nuber of minimum required photons 19 Byte_t fNumNeighbors; // number of required neighbours 19 20 20 21 Int_t fCut[2]; … … 34 35 35 36 void SetNumMinPhotons(Float_t minphotons) { fNumMinPhotons = minphotons; } 37 void SetNumNeighbors(Byte_t num) { fNumNeighbors = num; } 36 38 37 39 ClassDef(MFSoftwareTrigger, 0) // Filter for software trigger
Note:
See TracChangeset
for help on using the changeset viewer.