Changeset 8625 for trunk/MagicSoft


Ignore:
Timestamp:
06/29/07 13:34:23 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8622 r8625  
    4848   * mfilter/MFMagicCuts.[h,cc]:
    4949     - added the usage of the new SlopeLong parameter for ghostbusting
     50
     51   * mjobs/MJStar.cc:
     52     - preselect events for muon analysis not only by size but also
     53       by fConcCOG.
     54
     55   * mmuon/MMuonSearchPar.[h,cc]:
     56     - added a new member function to return the dist (sqrt(x^2+y^2))
     57     - to create outliers which are outling as much as possible we
     58       let the fit change x and y to infinity.
     59
     60   * mmuon/MHSingleMuon.cc:
     61     - adapted the histogram binning from Siegen slices to ns.
     62     - adapted the par limits for the fit to ns
     63     - adapted the starting value for the rms to ns
     64     - removed the fit range, it was anyhow identical to the histogram
     65     - changed the condition of the pixel index into a condition
     66       of the pixel size
    5067
    5168
  • trunk/MagicSoft/Mars/NEWS

    r8623 r8625  
    6464     some timimng parameters (Muon Analysis and MFSoftwareTrigger)
    6565     to obtain optimal results. The plot in the PulsePos tab
    66      will now be in ns, too.
     66     will now be in ns, too. This might also mean that the Muon
     67     analysis in star might not work as perfect as expected as long
     68     as old files read in.
     69
     70   - star: For speed reasons events suitable for the muon analysis
     71     are now also preselected by fConcCOG<0.1 which seems to be a very
     72     good preselector for muons.
    6773
    6874   - star: is now calculating a new timing parameter the Slope along
  • trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc

    r8117 r8625  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.14 2006-10-18 10:35:52 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.15 2007-06-29 12:29:47 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    144144    bins.Apply(fHistWidth);
    145145
    146     bins.SetEdges(101, -10, 10);
     146    bins.SetEdges(101, -33, 33);   // +/- 33ns
    147147    bins.Apply(fHistTime);
    148148}
     
    221221
    222222        // use only the inner pixles. FIXME: This is geometry dependent
    223         if(i>397)
     223        if(gpix.GetAidx()>0)
    224224            continue;
    225225
     
    227227    }
    228228    // Setup the function and perform the fit
    229     TF1 g1("g1", "gaus", -10, 10);
     229    TF1 g1("g1", "gaus");//, -fHistTime.GetXmin(), fHistTime.GetXmax());
    230230
    231231    // Choose starting values as accurate as possible
    232232    g1.SetParameter(0, fHistTime.GetMaximum());
    233233    g1.SetParameter(1, 0);
    234     g1.SetParameter(2, 0.2);
    235 
    236     g1.SetParLimits(1, -0.5, 0.5);
    237     g1.SetParLimits(2, 0, 1);
     234    g1.SetParameter(2, 0.7); // FIXME! GetRMS instead???
     235
     236    // According to fMuonSearchPar->GetTimeRMS() identified muons
     237    // do not have an arrival time rms>3
     238    g1.SetParLimits(1, -1.7, 1.7);
     239    g1.SetParLimits(2,  0,   3.4);
     240
    238241    // options : N  do not store the function, do not draw
    239242    //           I  use integral of function in bin rather than value at bin center
    240243    //           R  use the range specified in the function range
    241244    //           Q  quiet mode
    242     fHistTime.Fit(&g1, "QNRB");
     245    fHistTime.Fit(&g1, "QNB");
    243246
    244247    //    Double_t err;
  • trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.cc

    r8535 r8625  
    197197    // ----------------- Setup and call minuit -------------------
    198198    const Float_t  delta = 30.;  // 3 mm (1/10 of an inner pixel size) Step to move.
    199     const Double_t r     = geom.GetMaxRadius()*2;
     199    //const Double_t r     = geom.GetMaxRadius()*2;
    200200
    201201    // Save gMinuit
     
    207207    minuit.Command("set nowarn"); // Switch off warning
    208208    // Define Parameters
    209     minuit.DefineParameter(0, "x",     x, delta, -r, r);
    210     minuit.DefineParameter(1, "y",     y, delta, -r, r);
     209    minuit.DefineParameter(0, "x",     x, delta,  0, 0);//-r, r);
     210    minuit.DefineParameter(1, "y",     y, delta,  0, 0);//-r, r);
    211211    minuit.DefineParameter(2, "r",     0, 1,      0, 0);
    212212    minuit.DefineParameter(3, "sigma", 0, 1,      0, 0);
  • trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.h

    r7367 r8625  
    4242    Float_t GetCenterX()   const { return fCenterX; }
    4343    Float_t GetCenterY()   const { return fCenterY; }
     44    Float_t GetDist()      const { return TMath::Hypot(fCenterX, fCenterY); }
    4445    Float_t GetTime()      const { return fTime; }
    4546    Float_t GetTimeRms()   const { return fTimeRms; }
Note: See TracChangeset for help on using the changeset viewer.