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

Legend:

Unmodified
Added
Removed
  • 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)
Note: See TracChangeset for help on using the changeset viewer.