Changeset 7366 for trunk/MagicSoft/Mars/mmuon
- Timestamp:
- 09/27/05 14:38:40 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mmuon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmuon/MHMuonPar.cc
r7365 r7366 238 238 AppendPad("pad4"); 239 239 } 240 240 /* 241 241 Double_t MHMuonPar::Integral(const TProfile &p, Int_t a, Int_t b) const 242 242 { … … 252 252 return denominator==0 ? 0 : numerator/denominator; 253 253 } 254 254 */ 255 255 Double_t MHMuonPar::Integral(const TProfile &p, Float_t a, Float_t b) const 256 256 { … … 258 258 const Int_t bin2 = p.GetXaxis()->FindFixBin(b); 259 259 260 // return Integral(p, bin1, bin2);261 260 return p.Integral(bin1, bin2); 262 261 } … … 268 267 const TString txt = Form("\\Sigma_{%.2f\\circ}^{%.2f\\circ} = %.3f", 269 268 fgIntegralLoLim, fgIntegralUpLim, Integral(fHistBroad)); 270 // fgIntegralLoLim, fgIntegralUpLim, Integral(fHistBroad)*1000);271 269 272 270 TLatex text(0.55, 0.93, txt); -
trunk/MagicSoft/Mars/mmuon/MHMuonPar.h
r7252 r7366 33 33 Float_t fMm2Deg; 34 34 35 Double_t Integral(const TProfile &p, Int_t a, Int_t b) const;35 //Double_t Integral(const TProfile &p, Int_t a, Int_t b) const; 36 36 Double_t Integral(const TProfile &p, Float_t a=fgIntegralLoLim, Float_t b=fgIntegralUpLim) const; 37 37 -
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc
r7365 r7366 130 130 fHistTime.SetTitle("HistTime"); 131 131 fHistTime.SetXTitle("timing difference"); 132 fHistTime.SetYTitle(" number of pixels");132 fHistTime.SetYTitle("Counts"); 133 133 fHistTime.SetDirectory(NULL); 134 134 fHistTime.SetFillStyle(4000); … … 180 180 ApplyBinning(*plist, "ArcPhi", &fHistPhi); 181 181 ApplyBinning(*plist, "MuonWidth", &fHistWidth); 182 ApplyBinning(*plist, "MuonTime", &fHistTime);182 ApplyBinning(*plist, "MuonTime", &fHistTime); 183 183 184 184 return kTRUE; … … 213 213 214 214 // if the signal is not near the estimated circle, it is ignored. 215 if (dist < fMuonSearchPar->GetRadius() + fMargin && 216 dist > fMuonSearchPar->GetRadius() - fMargin) 215 if (TMath::Abs(dist-fMuonSearchPar->GetRadius())<fMargin) 217 216 { 218 217 fHistTime.Fill(pix.GetArrivalTime()-fMuonSearchPar->GetTime()); 219 218 } 219 220 220 // use only the inner pixles. FIXME: This is geometry dependent 221 221 if(i>397) … … 240 240 241 241 // Double_t err; 242 Double_t mean, meanerr, sig, sigerr;243 gMinuit->GetParameter(2, sig, sigerr);// get the sigma value244 gMinuit->GetParameter(1, mean, meanerr);// get the sigma value242 Double_t mean, meanerr, dummy; 243 gMinuit->GetParameter(2, sig, dummy); // get the sigma value 244 gMinuit->GetParameter(1, mean, dummy); // get the sigma value 245 245 246 246 for (Int_t i=0; i<entries; i++) … … 255 255 256 256 // if the signal is not near the estimated circle, it is ignored. 257 if ( dist < fMuonSearchPar->GetRadius() +fMargin &&258 dist > fMuonSearchPar->GetRadius() - fMargin)257 if (TMath::Abs(dist-fMuonSearchPar->GetRadius())<fMargin && 258 TMath::Abs(pix.GetArrivalTime()-fMuonSearchPar->GetTime()-mean) < 2*sig) 259 259 { 260 if(TMath::Abs(pix.GetArrivalTime()-(fMuonSearchPar->GetTime()+mean))<2*sig) 261 fHistPhi.Fill(TMath::ATan2(dx, dy)*TMath::RadToDeg(), pix.GetNumPhotons()); 260 fHistPhi.Fill(TMath::ATan2(dx, dy)*TMath::RadToDeg(), pix.GetNumPhotons()); 262 261 } 263 262 }
Note:
See TracChangeset
for help on using the changeset viewer.