Changeset 5448
- Timestamp:
- 11/22/04 11:36:32 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5434 r5448 20 20 21 21 -*-*- END OF LINE -*-*- 22 23 2004/11/22: Abelardo Moralejo 24 25 * mfbase/MFEventSelector2.cc 26 - Fixed error in Process: calls to Select and SelectProb were 27 exchanged. 28 - Added example to documentation on how to use the "probability" 29 option. 30 31 * mfbase/MFEventSelector.h 32 - Fixed typo in comment 33 34 * mfilter/MFSize.[h,cc] 35 - removed class. The same kind of filtering can now be done, in 36 a more versatile way, with MFEventSelector2 37 38 * mfilter/Makefile, FilterLinkDef.h 39 - removed class MFSize 40 41 * mtemp/mpadova/macros/resize.C 42 - Now the class MFEventSelector2 is used instead of the removed 43 MFSize. Behaviour is the same. Default probabilities have been 44 slightly changed (but this is just an example). 45 22 46 23 47 2004/11/18: Hendrik Bartko -
trunk/MagicSoft/Mars/mfbase/MFEventSelector2.cc
r5429 r5448 477 477 // Get corresponding bin number and check 478 478 // whether a selection should be made 479 fResult = fHistIsProbability ? Select (ibin) : SelectProb(ibin);479 fResult = fHistIsProbability ? SelectProb(ibin) : Select(ibin); 480 480 481 481 fCounter[fResult ? 1 : 0]++; -
trunk/MagicSoft/Mars/mfbase/MFEventSelector2.h
r5429 r5448 66 66 Bool_t IsExpressionTrue() const { return fResult; } 67 67 68 ClassDef(MFEventSelector2, 0) // FI MXE!68 ClassDef(MFEventSelector2, 0) // FIXME! 69 69 }; 70 70 -
trunk/MagicSoft/Mars/mfilter/FilterLinkDef.h
r5335 r5448 21 21 #pragma link C++ class MFCosmics+; 22 22 23 #pragma link C++ class MFSize+;24 25 23 #pragma link C++ class MFEnergySlope+; 26 24 -
trunk/MagicSoft/Mars/mfilter/Makefile
r5335 r5448 32 32 MFSoftwareTrigger.cc \ 33 33 MFCosmics.cc \ 34 MFEnergySlope.cc \ 35 MFSize.cc 34 MFEnergySlope.cc 36 35 37 36 ############################################################ -
trunk/MagicSoft/Mars/mtemp/mpadova/macros/resize.C
r5335 r5448 42 42 write.AddContainer("MHillasSrc", "Events"); 43 43 44 write.AddContainer("MGeomCam", "RunHeaders");45 write.AddContainer("MMcConfigRunHeader", "RunHeaders");44 write.AddContainer("MGeomCam", "RunHeaders"); 45 write.AddContainer("MMcConfigRunHeader", "RunHeaders"); 46 46 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders"); 47 write.AddContainer("MMcFadcHeader", "RunHeaders");48 write.AddContainer("MMcTrigHeader", "RunHeaders");47 write.AddContainer("MMcFadcHeader", "RunHeaders"); 48 write.AddContainer("MMcTrigHeader", "RunHeaders"); 49 49 50 write.AddContainer("MRawRunHeader", "RunHeaders"); 51 write.AddContainer("MSrcPosCam", "RunHeaders"); 52 write.AddContainer("MMcRunHeader", "RunHeaders"); 53 50 write.AddContainer("MRawRunHeader", "RunHeaders"); 51 write.AddContainer("MSrcPosCam", "RunHeaders"); 52 write.AddContainer("MMcRunHeader", "RunHeaders"); 54 53 55 54 // … … 59 58 // 60 59 61 TH1F* h = new TH1F("h", "", 20, 2., 4.); 60 Float_t frac[20] = {0.180451, 0.236564, 0.253332, 0.282566, 0.355083, 61 0.424058, 0.566892, 0.657478, 0.753713, 0.738402, 62 0.789239, 0.762777, 0.857609, 0.833747, 0.923706, 63 1.04348, 0.978622, 0.875537, 0.971831, 1.}; 62 64 63 Float_t frac[20] = {0.144928, 0.171911, 0.18763, 0.209461, 0.253219, 64 0.305425, 0.384593, 0.485204, 0.612452, 0.708138, 65 0.754522, 0.728028, 0.774046, 0.791422, 0.808775, 66 0.896842, 1., 1., 1., 1.}; 67 65 66 TH1F hist("probability", "", 20, 2., 4.); 67 hist.SetXTitle("log10(MHillas.fSize)"); 68 68 for (Int_t i = 0; i < 20; i++) 69 h ->SetBinContent(i+1, frac[i]);69 hist.SetBinContent(i+1, frac[i]); 70 70 71 MFSize fsize; 72 fsize.SetProb(h); 71 MH3 mh(hist); 72 MFEventSelector2 fsize(mh); 73 fsize.SetHistIsProbability(kTRUE); 73 74 74 75 write.SetFilter(&fsize);
Note:
See TracChangeset
for help on using the changeset viewer.