Changeset 8660 for trunk


Ignore:
Timestamp:
08/06/07 17:51:40 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8659 r8660  
    5959   * mimage/MHVsSize.cc:
    6060     - changes some comments
     61
     62   * mmuon/MHSingleMuon.cc:
     63     - skip the "error estimation" step. It is just a multiplication
     64       with a fixed value. This doesn't influence enaything. And the
     65       absolute avlue of the error is not used at all.
    6166
    6267
  • trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc

    r8625 r8660  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.15 2007-06-29 12:29:47 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.16 2007-08-06 16:50:45 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    217217        if (TMath::Abs(dist-fMuonSearchPar->GetRadius())<fMargin)
    218218        {
     219            // The arrival time is aligned around 0 for smaller
     220            // and more stable histogram range
    219221            fHistTime.Fill(pix.GetArrivalTime()-fMuonSearchPar->GetTime());
    220222        }
     
    250252    gMinuit->GetParameter(2, sig,  dummy);  // get the sigma value
    251253
     254    // The mean arrival time which was subtracted before will
     255    // be added again, now
     256    const Double_t tm0 = fMuonSearchPar->GetTime()+mean;
     257
    252258    for (Int_t i=0; i<entries; i++)
    253259    {
     
    262268        // if the signal is not near the estimated circle, it is ignored.
    263269        if (TMath::Abs(dist-fMuonSearchPar->GetRadius())<fMargin &&
    264             TMath::Abs(pix.GetArrivalTime()-fMuonSearchPar->GetTime()-mean) < 2*sig)
     270            TMath::Abs(pix.GetArrivalTime()-tm0) < 2*sig)
    265271        {
    266272            fHistPhi.Fill(TMath::ATan2(dx, dy)*TMath::RadToDeg(), pix.GetNumPhotons());
     
    268274    }
    269275
    270     // error estimation (temporaly)
     276    return kTRUE;
     277
     278/*
     279    // Because the errors (sqrt(content)) are only scaled by a fixed
     280    // factor, and the absolute value of the error is nowhere
     281    // needed we skip this step
     282
     283    // error estimation (temporarily)
    271284    //  The error is estimated from the signal. In order to do so, we have to
    272285    // once convert the signal from ADC to photo-electron. Then we can get
     
    276289    const Double_t Ffactor  = 1.4;
    277290    for (Int_t i=0; i<fHistPhi.GetNbinsX()+1; i++)
    278     {
    279         const Float_t abs      = TMath::Abs(fHistPhi.GetBinContent(i));
    280         const Float_t rougherr = TMath::Sqrt(abs)*Ffactor;
    281 
    282         fHistPhi.SetBinError(i, rougherr);
    283     }
     291        fHistPhi.SetBinError(i, fHistPhi.GetBinError(i)*Ffactor);
    284292
    285293    for (Int_t i=0; i<fHistWidth.GetNbinsX()+1; i++)
    286     {
    287         const Float_t abs      = TMath::Abs(fHistWidth.GetBinContent(i));
    288         const Float_t rougherr = TMath::Sqrt(abs)*Ffactor;
    289 
    290         fHistWidth.SetBinError(i, rougherr);
    291     }
     294        fHistWidth.SetBinError(i, fHistWidth.GetBinError(i)*Ffactor);
    292295
    293296    return kTRUE;
     297 */
    294298}
    295299
Note: See TracChangeset for help on using the changeset viewer.