Changeset 8775 for trunk/MagicSoft/Mars/mmuon
- Timestamp:
- 12/03/07 17:44:59 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc
r8660 r8775 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.1 6 2007-08-06 16:50:45tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.17 2007-12-03 17:44:59 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 70 70 // your results!! 71 71 // 72 // Input container:72 // InputContainer: 73 73 // - MGeomCam 74 74 // - MMuonSearchPar 75 75 // 76 // 77 // Class Version 2: 78 // ---------------- 79 // + Double_t fRelTimeMean; // Result of the gaus fit to the arrival time 80 // + Double_t fRelTimeSigma; // Result of the gaus fit to the arrival time 76 81 // 77 82 //////////////////////////////////////////////////////////////////////////// … … 194 199 Bool_t MHSingleMuon::Fill(const MParContainer *par, const Stat_t w) 195 200 { 201 fRelTimeMean = 0; 202 fRelTimeSigma = -1; 203 196 204 fHistPhi.Reset(); 197 205 fHistWidth.Reset(); … … 247 255 fHistTime.Fit(&g1, "QNB"); 248 256 249 // Double_t err; 250 Double_t sig, mean, dummy; 251 gMinuit->GetParameter(1, mean, dummy); // get the mean value 252 gMinuit->GetParameter(2, sig, dummy); // get the sigma value 257 Double_t dummy; 258 gMinuit->GetParameter(1, fRelTimeMean, dummy); // get the mean value 259 gMinuit->GetParameter(2, fRelTimeSigma, dummy); // get the sigma value 253 260 254 261 // The mean arrival time which was subtracted before will 255 262 // be added again, now 256 const Double_t tm0 = fMuonSearchPar->GetTime()+ mean;263 const Double_t tm0 = fMuonSearchPar->GetTime()+fRelTimeMean; 257 264 258 265 for (Int_t i=0; i<entries; i++) … … 268 275 // if the signal is not near the estimated circle, it is ignored. 269 276 if (TMath::Abs(dist-fMuonSearchPar->GetRadius())<fMargin && 270 TMath::Abs(pix.GetArrivalTime()-tm0) < 2* sig)277 TMath::Abs(pix.GetArrivalTime()-tm0) < 2*fRelTimeSigma) 271 278 { 272 279 fHistPhi.Fill(TMath::ATan2(dx, dy)*TMath::RadToDeg(), pix.GetNumPhotons());
Note:
See TracChangeset
for help on using the changeset viewer.