Changeset 7740 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/24/06 17:55:16 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc

    r7722 r7740  
    108108        return kTRUE;
    109109
     110    if (fSignalFunc==kThetaSq)
     111    {
     112        const Double_t sum = h.Integral(1, 3)/3;
     113        const Double_t a   = sum<=1 ? 0 : TMath::Log(sum);
     114        const Double_t b   = -1.7;
     115
     116        // Do a best-guess
     117        fFunc->SetParameter(3, a);
     118        fFunc->SetParameter(4, b);
     119    }
     120
    110121    // options : N  do not store the function, do not draw
    111122    //           I  use integral of function in bin rather than value at bin center
     
    249260    // ------------------------------------
    250261
    251      //const Double_t s = fFunc->Integral(0, fSigInt)/alphaw;
    252      fFunc->SetParameter(0, 0);
    253      fFunc->SetParameter(2, 1);
    254      //const Double_t b = fFunc->Integral(0, fSigInt)/alphaw;
    255      //fSignificance = MMath::SignificanceLiMaSigned(s, b);
    256 
    257      // Calculate the fit result and set the corresponding data members
    258      FitResult(h);
    259 
    260      return kTRUE;
     262    //const Double_t s = fFunc->Integral(0, fSigInt)/alphaw;
     263    fFunc->SetParameter(0, 0);
     264    fFunc->SetParameter(2, 1);
     265    //const Double_t b = fFunc->Integral(0, fSigInt)/alphaw;
     266    //fSignificance = MMath::SignificanceLiMaSigned(s, b);
     267
     268    // Calculate the fit result and set the corresponding data members
     269    FitResult(h);
     270
     271    return kTRUE;
    261272}
    262273
     
    319330    // Assuming that bg and fit2.GetEventsBackground() are rather identical:
    320331    const Double_t sc = er*er / fit.GetEventsBackground();
    321 
    322     return sc;
    323332    /*
    324333     cout << MMath::SignificanceLiMaSigned(hon.Integral(1, bin), fit.GetEventsBackground()/sc, sc) << " ";
    325334     cout << sc << " ";
    326335     cout << fit.fChiSqBg << endl;
    327     */
    328 
    329     return kTRUE;
     336     */
     337    return sc;
    330338}
    331339
  • trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc

    r7726 r7740  
    217217        fSkip[0]++;
    218218        fDeviation->SetDevZdAz(0, 0);
     219        fDeviation->SetDevXY(0, 0);
    219220        return kTRUE;
    220221    }
Note: See TracChangeset for help on using the changeset viewer.