- Timestamp:
- 07/27/05 17:41:28 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7224 r7225 20 20 21 21 -*-*- 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 22 38 23 39 2005/07/27 Thomas Bretz -
trunk/MagicSoft/Mars/NEWS
r7223 r7225 124 124 - star: Output now contains MReportStarguider 125 125 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 127 133 128 134 - ganymed: Two new default templates for ganymed.rc are avilable: -
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) -
trunk/MagicSoft/Mars/star.rc
r7126 r7225 58 58 #MMuonSetup.Margin: 0.2 59 59 #MMuonSetup.ThresholdArcPhi: 30 60 #MMuonSetup.ThresholdArcWidth: 3060 #MMuonSetup.ThresholdArcWidth: 2 61 61 62 62 #BinningRadius.Raw: 20 0.5 1.5
Note:
See TracChangeset
for help on using the changeset viewer.