Changeset 7225 for trunk


Ignore:
Timestamp:
07/27/05 17:41:28 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7224 r7225  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22
     23 2005/07/27 Markus Meyer, Thomas Bretz
     24
     25   * mmuon/MHSingleMuon.[h,cc]:
     26     - added third (constant) parameter to arc width gaus fit
     27     - replaced nonsense GetMaximumBin as start value for fit
     28       by GetMaximum
     29     - replaced TH1F for fHistWidth by TProfile
     30
     31   * mmuon/MMuonSetup.cc:
     32     - set new threshold for arc width plot to 2
     33
     34   * star.rc:
     35     - replaced default for arc width threshold
     36
     37
    2238
    2339 2005/07/27 Thomas Bretz
  • trunk/MagicSoft/Mars/NEWS

    r7223 r7225  
    124124   - star: Output now contains MReportStarguider
    125125
    126    - ganymed: corrects now (correctly?) for the misspointing in May/April 05
     126   - star: Improved muon analysis. Due to the absense of a constant
     127           for the gaus fit for arc width and the fact that the arcwidth
     128           plot was a histogram instead of a profile the resulting psf
     129           became pedestal rms dependant
     130
     131   - ganymed: corrects now (correctly?) for the misspointing in
     132              May/April 05
    127133
    128134   - ganymed: Two new default templates for ganymed.rc are avilable:
  • trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc

    r7135 r7225  
    244244// below the threshold is found, kFALSE is returned.
    245245//
    246 Bool_t MHSingleMuon::FindRangeAboveThreshold(const TH1F &h, Float_t thres, Int_t &first, Int_t &last) const
     246Bool_t MHSingleMuon::FindRangeAboveThreshold(const TH1 &h, Float_t thres, Int_t &first, Int_t &last) const
    247247{
    248248    const Int_t n      = h.GetNbinsX();
     
    348348
    349349    // Setup the function and perform the fit
    350     TF1 f1("f1", "gaus", startfitval, endfitval);
     350    TF1 f1("f1", "gaus + [3]", startfitval, endfitval);
    351351    f1.SetLineColor(kBlue);
    352352
    353353    // Choose starting values as accurate as possible
    354     f1.SetParameter(0, fHistWidth.GetMaximumBin());
     354    f1.SetParameter(0, fHistWidth.GetMaximum());
    355355    f1.SetParameter(1, fHistWidth.GetBinCenter(m));
    356356//    f1.SetParameter(2, (endfitval-startfitval)/2);
    357357    f1.SetParameter(2, 0.1);
     358    f1.SetParameter(3, 1.8);
    358359
    359360    // options : N  do not store the function, do not draw
  • trunk/MagicSoft/Mars/mmuon/MHSingleMuon.h

    r7135 r7225  
    55#include "MH.h"
    66#endif
    7 #ifndef ROOT_TH1
    8 #include <TH1.h>
     7#ifndef ROOT_TProfile
     8#include <TProfile.h>
    99#endif
    1010
     
    2424    Double_t fMargin;               //!
    2525
    26     TH1F fHistPhi;   // Histogram of photon distribution along the arc.
    27     TH1F fHistWidth; // Histogram of radial photon distribution of the arc.
     26    TH1F     fHistPhi;   // Histogram of photon distribution along the arc.
     27    TProfile fHistWidth; // Histogram of radial photon distribution of the arc.
    2828
    29     Bool_t FindRangeAboveThreshold(const TH1F &h, Float_t thres, Int_t &first, Int_t &last) const;
     29    Bool_t FindRangeAboveThreshold(const TH1 &h, Float_t thres, Int_t &first, Int_t &last) const;
    3030
    3131public:
     
    3939
    4040    const TH1F &GetHistPhi() const { return fHistPhi; }
    41     const TH1F &GetHistWidth() const { return fHistWidth; }
     41    const TProfile &GetHistWidth() const { return fHistWidth; }
    4242
    4343    void Draw(Option_t *o="");
  • trunk/MagicSoft/Mars/mmuon/MMuonSetup.cc

    r7009 r7225  
    4949//
    5050MMuonSetup::MMuonSetup(const char *name, const char *title)
    51     : fMargin(0.2), fThresholdArcPhi(30), fThresholdArcWidth(30)
     51    : fMargin(0.2), fThresholdArcPhi(30), fThresholdArcWidth(2)
    5252{
    5353    fName  = name  ? name  : "MMuonSetup";
     
    6060//   MMuonSetup.Margin:            0.2
    6161//   MMuonSetup.ThresholdArcPhi:   30
    62 //   MMuonSetup.ThresholdArcWidth: 30
     62//   MMuonSetup.ThresholdArcWidth: 2
    6363//
    6464Int_t MMuonSetup::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
  • trunk/MagicSoft/Mars/star.rc

    r7126 r7225  
    5858#MMuonSetup.Margin:            0.2
    5959#MMuonSetup.ThresholdArcPhi:   30
    60 #MMuonSetup.ThresholdArcWidth: 30
     60#MMuonSetup.ThresholdArcWidth: 2
    6161
    6262#BinningRadius.Raw:            20  0.5  1.5
Note: See TracChangeset for help on using the changeset viewer.