Changeset 5448


Ignore:
Timestamp:
11/22/04 11:36:32 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5434 r5448  
    2020
    2121                                                 -*-*- 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
    2246
    2347 2004/11/18: Hendrik Bartko
  • trunk/MagicSoft/Mars/mfbase/MFEventSelector2.cc

    r5429 r5448  
    477477    // Get corresponding bin number and check
    478478    // whether a selection should be made
    479     fResult = fHistIsProbability ? Select(ibin) : SelectProb(ibin);
     479    fResult = fHistIsProbability ? SelectProb(ibin) : Select(ibin);
    480480
    481481    fCounter[fResult ? 1 : 0]++;
  • trunk/MagicSoft/Mars/mfbase/MFEventSelector2.h

    r5429 r5448  
    6666    Bool_t IsExpressionTrue() const { return fResult; }
    6767
    68     ClassDef(MFEventSelector2, 0) // FIMXE!
     68    ClassDef(MFEventSelector2, 0) // FIXME!
    6969};
    7070
  • trunk/MagicSoft/Mars/mfilter/FilterLinkDef.h

    r5335 r5448  
    2121#pragma link C++ class MFCosmics+;
    2222
    23 #pragma link C++ class MFSize+;
    24 
    2523#pragma link C++ class MFEnergySlope+;
    2624
  • trunk/MagicSoft/Mars/mfilter/Makefile

    r5335 r5448  
    3232           MFSoftwareTrigger.cc \
    3333           MFCosmics.cc \
    34            MFEnergySlope.cc \
    35            MFSize.cc
     34           MFEnergySlope.cc
    3635
    3736############################################################
  • trunk/MagicSoft/Mars/mtemp/mpadova/macros/resize.C

    r5335 r5448  
    4242  write.AddContainer("MHillasSrc",     "Events");
    4343
    44   write.AddContainer("MGeomCam", "RunHeaders");
    45   write.AddContainer("MMcConfigRunHeader", "RunHeaders");
     44  write.AddContainer("MGeomCam",            "RunHeaders");
     45  write.AddContainer("MMcConfigRunHeader",  "RunHeaders");
    4646  write.AddContainer("MMcCorsikaRunHeader", "RunHeaders");
    47   write.AddContainer("MMcFadcHeader", "RunHeaders");
    48   write.AddContainer("MMcTrigHeader", "RunHeaders");
     47  write.AddContainer("MMcFadcHeader",       "RunHeaders");
     48  write.AddContainer("MMcTrigHeader",       "RunHeaders");
    4949
    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");
    5453
    5554  //
     
    5958  //
    6059
    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.};
    6264
    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)");
    6868  for (Int_t i = 0; i < 20; i++)
    69     h->SetBinContent(i+1, frac[i]);
     69    hist.SetBinContent(i+1, frac[i]);
    7070
    71   MFSize fsize;
    72   fsize.SetProb(h);
     71  MH3 mh(hist);
     72  MFEventSelector2 fsize(mh);
     73  fsize.SetHistIsProbability(kTRUE);
    7374
    7475  write.SetFilter(&fsize);
Note: See TracChangeset for help on using the changeset viewer.