Changeset 9565 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 03/30/10 14:47:27 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc
r9301 r9565 298 298 pad->GetPad(1)->cd(1); 299 299 300 if (gPad->FindObject("EnergyEst_ex")) 300 if ((hx = dynamic_cast<TH1*>(gPad->FindObject("EnergyEst_ex")))) 301 { 302 hx->GetSumw2()->Set(0); // Workaround. Otherwise we get a warning because it is recreated 301 303 hx = fHEnergy.Project3D("ex"); 302 303 if (gPad->FindObject("EnergyEst_ey")) 304 } 305 306 if ((hy = dynamic_cast<TH1*>(gPad->FindObject("EnergyEst_ey")))) 307 { 308 hy->GetSumw2()->Set(0); // Workaround. Otherwise we get a warning because it is recreated 304 309 hy = fHEnergy.Project3D("ey"); 310 } 305 311 306 312 if (hx && hy) … … 317 323 { 318 324 pad->GetPad(1)->GetPad(2)->cd(1); 319 if (gPad->FindObject("EnergyEst_ez")) 325 if ((hx = dynamic_cast<TH1*>(gPad->FindObject("EnergyEst_ez")))) 326 { 327 hx->GetSumw2()->Set(0); // Workaround. Otherwise we get a warning because it is recreated 320 328 fHEnergy.Project3D("ez"); 329 } 321 330 322 331 pad->GetPad(1)->GetPad(2)->cd(2);
Note:
See TracChangeset
for help on using the changeset viewer.