Changeset 7122 for trunk/MagicSoft/Mars/mhflux/MHDisp.cc
- Timestamp:
- 06/01/05 18:13:13 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHDisp.cc
r7115 r7122 197 197 return kFALSE; 198 198 } 199 const Double_t m3l = fHilExt->GetM3Long()*TMath::Sign( 1.0f, hsrc.GetCosDeltaAlpha())*fMm2Deg;199 const Double_t m3l = fHilExt->GetM3Long()*TMath::Sign(fMm2Deg, hsrc.GetCosDeltaAlpha()); 200 200 201 201 gweight = m3l>fM3lCut ? 1 : 0; … … 217 217 } 218 218 219 // Workaround: Number-of-entries 220 if (gweight>0.25) 221 fHist.Fill(pos1.X(), pos1.Y(), 0.0, w*gweight); 222 if (gweight<0.75) 223 fHist.Fill(pos2.X(), pos2.Y(), 0.0, w*(1-gweight)); 219 fHist.Fill(pos1.X(), pos1.Y(), 0.0, w*gweight); 220 fHist.Fill(pos2.X(), pos2.Y(), 0.0, w*(1-gweight)); 224 221 225 222 return kTRUE; … … 273 270 const Double_t x0 = h1->GetXaxis()->GetBinCenter(ix); 274 271 const Double_t y0 = h1->GetYaxis()->GetBinCenter(iy); 272 const Double_t w0 = h1->GetXaxis()->GetBinWidth(1); 275 273 276 274 for (int x=0; x<h1->GetNbinsX(); x++) … … 294 292 h2->Fit(&func, "IMQ", "", 0, 1.0); 295 293 296 const Double_t r0 = 2*func.GetParameter(2); 297 const Double_t e = func.Integral(0, r0)/h1->GetBinWidth(1); 298 func.SetParameter(0, 0); 299 const Double_t b = func.Integral(0, r0)/h1->GetBinWidth(1); 294 // No wintegrate the function f(x) per Delta Area 295 // which is f(x)/(pi*delta r*(2*r+delta r)) 296 TF1 func2("fcn2", Form("(gaus + [3]*x*x + [4])/(2*x+%.5f)", w0)); 297 for (int i=0; i<5; i++) 298 func2.SetParameter(i, func.GetParameter(i)); 299 300 const Double_t r0 = 2*func2.GetParameter(2); 301 const Double_t e = func2.Integral(0, r0)/(w0*TMath::Pi()); 302 func2.SetParameter(0, 0); 303 const Double_t b = func2.Integral(0, r0)/(w0*TMath::Pi()); 300 304 const Double_t s = MMath::SignificanceLiMa(e, b); 301 305
Note:
See TracChangeset
for help on using the changeset viewer.