Changeset 8660 for trunk/MagicSoft
- Timestamp:
- 08/06/07 17:51:40 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8659 r8660 59 59 * mimage/MHVsSize.cc: 60 60 - changes some comments 61 62 * mmuon/MHSingleMuon.cc: 63 - skip the "error estimation" step. It is just a multiplication 64 with a fixed value. This doesn't influence enaything. And the 65 absolute avlue of the error is not used at all. 61 66 62 67 -
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc
r8625 r8660 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.1 5 2007-06-29 12:29:47tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.16 2007-08-06 16:50:45 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 217 217 if (TMath::Abs(dist-fMuonSearchPar->GetRadius())<fMargin) 218 218 { 219 // The arrival time is aligned around 0 for smaller 220 // and more stable histogram range 219 221 fHistTime.Fill(pix.GetArrivalTime()-fMuonSearchPar->GetTime()); 220 222 } … … 250 252 gMinuit->GetParameter(2, sig, dummy); // get the sigma value 251 253 254 // The mean arrival time which was subtracted before will 255 // be added again, now 256 const Double_t tm0 = fMuonSearchPar->GetTime()+mean; 257 252 258 for (Int_t i=0; i<entries; i++) 253 259 { … … 262 268 // if the signal is not near the estimated circle, it is ignored. 263 269 if (TMath::Abs(dist-fMuonSearchPar->GetRadius())<fMargin && 264 TMath::Abs(pix.GetArrivalTime()- fMuonSearchPar->GetTime()-mean) < 2*sig)270 TMath::Abs(pix.GetArrivalTime()-tm0) < 2*sig) 265 271 { 266 272 fHistPhi.Fill(TMath::ATan2(dx, dy)*TMath::RadToDeg(), pix.GetNumPhotons()); … … 268 274 } 269 275 270 // error estimation (temporaly) 276 return kTRUE; 277 278 /* 279 // Because the errors (sqrt(content)) are only scaled by a fixed 280 // factor, and the absolute value of the error is nowhere 281 // needed we skip this step 282 283 // error estimation (temporarily) 271 284 // The error is estimated from the signal. In order to do so, we have to 272 285 // once convert the signal from ADC to photo-electron. Then we can get … … 276 289 const Double_t Ffactor = 1.4; 277 290 for (Int_t i=0; i<fHistPhi.GetNbinsX()+1; i++) 278 { 279 const Float_t abs = TMath::Abs(fHistPhi.GetBinContent(i)); 280 const Float_t rougherr = TMath::Sqrt(abs)*Ffactor; 281 282 fHistPhi.SetBinError(i, rougherr); 283 } 291 fHistPhi.SetBinError(i, fHistPhi.GetBinError(i)*Ffactor); 284 292 285 293 for (Int_t i=0; i<fHistWidth.GetNbinsX()+1; i++) 286 { 287 const Float_t abs = TMath::Abs(fHistWidth.GetBinContent(i)); 288 const Float_t rougherr = TMath::Sqrt(abs)*Ffactor; 289 290 fHistWidth.SetBinError(i, rougherr); 291 } 294 fHistWidth.SetBinError(i, fHistWidth.GetBinError(i)*Ffactor); 292 295 293 296 return kTRUE; 297 */ 294 298 } 295 299
Note:
See TracChangeset
for help on using the changeset viewer.