- Timestamp:
- 05/24/06 17:55:16 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r7722 r7740 108 108 return kTRUE; 109 109 110 if (fSignalFunc==kThetaSq) 111 { 112 const Double_t sum = h.Integral(1, 3)/3; 113 const Double_t a = sum<=1 ? 0 : TMath::Log(sum); 114 const Double_t b = -1.7; 115 116 // Do a best-guess 117 fFunc->SetParameter(3, a); 118 fFunc->SetParameter(4, b); 119 } 120 110 121 // options : N do not store the function, do not draw 111 122 // I use integral of function in bin rather than value at bin center … … 249 260 // ------------------------------------ 250 261 251 252 253 254 255 256 257 258 259 260 262 //const Double_t s = fFunc->Integral(0, fSigInt)/alphaw; 263 fFunc->SetParameter(0, 0); 264 fFunc->SetParameter(2, 1); 265 //const Double_t b = fFunc->Integral(0, fSigInt)/alphaw; 266 //fSignificance = MMath::SignificanceLiMaSigned(s, b); 267 268 // Calculate the fit result and set the corresponding data members 269 FitResult(h); 270 271 return kTRUE; 261 272 } 262 273 … … 319 330 // Assuming that bg and fit2.GetEventsBackground() are rather identical: 320 331 const Double_t sc = er*er / fit.GetEventsBackground(); 321 322 return sc;323 332 /* 324 333 cout << MMath::SignificanceLiMaSigned(hon.Integral(1, bin), fit.GetEventsBackground()/sc, sc) << " "; 325 334 cout << sc << " "; 326 335 cout << fit.fChiSqBg << endl; 327 */ 328 329 return kTRUE; 336 */ 337 return sc; 330 338 } 331 339 -
trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc
r7726 r7740 217 217 fSkip[0]++; 218 218 fDeviation->SetDevZdAz(0, 0); 219 fDeviation->SetDevXY(0, 0); 219 220 return kTRUE; 220 221 }
Note:
See TracChangeset
for help on using the changeset viewer.