Ignore:
Timestamp:
12/03/07 17:44:59 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc

    r8660 r8775  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.16 2007-08-06 16:50:45 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.17 2007-12-03 17:44:59 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    7070// your results!!
    7171//
    72 // Inputcontainer:
     72// InputContainer:
    7373//   - MGeomCam
    7474//   - MMuonSearchPar
    7575//
     76//
     77// Class Version 2:
     78// ----------------
     79//   + Double_t fRelTimeMean;   // Result of the gaus fit to the arrival time
     80//   + Double_t fRelTimeSigma;  // Result of the gaus fit to the arrival time
    7681//
    7782////////////////////////////////////////////////////////////////////////////
     
    194199Bool_t MHSingleMuon::Fill(const MParContainer *par, const Stat_t w)
    195200{
     201    fRelTimeMean  =  0;
     202    fRelTimeSigma = -1;
     203
    196204    fHistPhi.Reset();
    197205    fHistWidth.Reset();
     
    247255    fHistTime.Fit(&g1, "QNB");
    248256
    249     //    Double_t err;
    250     Double_t sig, mean, dummy;
    251     gMinuit->GetParameter(1, mean, dummy);  // get the mean  value
    252     gMinuit->GetParameter(2, sig,  dummy);  // get the sigma value
     257    Double_t dummy;
     258    gMinuit->GetParameter(1, fRelTimeMean,   dummy);  // get the mean  value
     259    gMinuit->GetParameter(2, fRelTimeSigma,  dummy);  // get the sigma value
    253260
    254261    // The mean arrival time which was subtracted before will
    255262    // be added again, now
    256     const Double_t tm0 = fMuonSearchPar->GetTime()+mean;
     263    const Double_t tm0 = fMuonSearchPar->GetTime()+fRelTimeMean;
    257264
    258265    for (Int_t i=0; i<entries; i++)
     
    268275        // if the signal is not near the estimated circle, it is ignored.
    269276        if (TMath::Abs(dist-fMuonSearchPar->GetRadius())<fMargin &&
    270             TMath::Abs(pix.GetArrivalTime()-tm0) < 2*sig)
     277            TMath::Abs(pix.GetArrivalTime()-tm0) < 2*fRelTimeSigma)
    271278        {
    272279            fHistPhi.Fill(TMath::ATan2(dx, dy)*TMath::RadToDeg(), pix.GetNumPhotons());
Note: See TracChangeset for help on using the changeset viewer.