Changeset 7225 for trunk/MagicSoft/Mars/mmuon
- Timestamp:
- 07/27/05 17:41:28 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mmuon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc
r7135 r7225 244 244 // below the threshold is found, kFALSE is returned. 245 245 // 246 Bool_t MHSingleMuon::FindRangeAboveThreshold(const TH1 F&h, Float_t thres, Int_t &first, Int_t &last) const246 Bool_t MHSingleMuon::FindRangeAboveThreshold(const TH1 &h, Float_t thres, Int_t &first, Int_t &last) const 247 247 { 248 248 const Int_t n = h.GetNbinsX(); … … 348 348 349 349 // Setup the function and perform the fit 350 TF1 f1("f1", "gaus ", startfitval, endfitval);350 TF1 f1("f1", "gaus + [3]", startfitval, endfitval); 351 351 f1.SetLineColor(kBlue); 352 352 353 353 // Choose starting values as accurate as possible 354 f1.SetParameter(0, fHistWidth.GetMaximum Bin());354 f1.SetParameter(0, fHistWidth.GetMaximum()); 355 355 f1.SetParameter(1, fHistWidth.GetBinCenter(m)); 356 356 // f1.SetParameter(2, (endfitval-startfitval)/2); 357 357 f1.SetParameter(2, 0.1); 358 f1.SetParameter(3, 1.8); 358 359 359 360 // options : N do not store the function, do not draw -
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.h
r7135 r7225 5 5 #include "MH.h" 6 6 #endif 7 #ifndef ROOT_T H18 #include <T H1.h>7 #ifndef ROOT_TProfile 8 #include <TProfile.h> 9 9 #endif 10 10 … … 24 24 Double_t fMargin; //! 25 25 26 TH1F fHistPhi; // Histogram of photon distribution along the arc.27 T H1FfHistWidth; // 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. 28 28 29 Bool_t FindRangeAboveThreshold(const TH1 F&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; 30 30 31 31 public: … … 39 39 40 40 const TH1F &GetHistPhi() const { return fHistPhi; } 41 const T H1F&GetHistWidth() const { return fHistWidth; }41 const TProfile &GetHistWidth() const { return fHistWidth; } 42 42 43 43 void Draw(Option_t *o=""); -
trunk/MagicSoft/Mars/mmuon/MMuonSetup.cc
r7009 r7225 49 49 // 50 50 MMuonSetup::MMuonSetup(const char *name, const char *title) 51 : fMargin(0.2), fThresholdArcPhi(30), fThresholdArcWidth( 30)51 : fMargin(0.2), fThresholdArcPhi(30), fThresholdArcWidth(2) 52 52 { 53 53 fName = name ? name : "MMuonSetup"; … … 60 60 // MMuonSetup.Margin: 0.2 61 61 // MMuonSetup.ThresholdArcPhi: 30 62 // MMuonSetup.ThresholdArcWidth: 3062 // MMuonSetup.ThresholdArcWidth: 2 63 63 // 64 64 Int_t MMuonSetup::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
Note:
See TracChangeset
for help on using the changeset viewer.