Changeset 8957 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 06/14/08 16:55:58 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHDisp.cc
r8719 r8957 243 243 const Int_t bz = fHist.GetZaxis()->FindFixBin(0); 244 244 245 TH2 & bg = fHalf ? fHistBg1 : fHistBg2;245 TH2 &hbg = fHalf ? fHistBg1 : fHistBg2; 246 246 247 247 const Bool_t smear = fSmearing>0; … … 249 249 { 250 250 if (!fHistOff) 251 bg.Fill(pos1.X(), pos1.Y(), w*w0);251 hbg.Fill(pos1.X(), pos1.Y(), w*w0); 252 252 else 253 253 fHist.Fill(pos1.X(), pos1.Y(), 0.0, w*w0); … … 276 276 const Double_t rc = TMath::Exp(-dp)/normg; 277 277 if (!fHistOff) 278 bg.AddBinContent(bg.GetBin(x, y), rc);278 hbg.AddBinContent(hbg.GetBin(x, y), rc); 279 279 else 280 280 fHist.AddBinContent(fHist.GetBin(x, y, bz), rc); … … 310 310 311 311 if (!fHistOff) 312 bg.SetEntries(bg.GetEntries()+1);312 hbg.SetEntries(hbg.GetEntries()+1); 313 313 else 314 314 fHist.SetEntries(fHist.GetEntries()+1);
Note:
See TracChangeset
for help on using the changeset viewer.