Changeset 9851 for trunk/Mars/mhflux
- Timestamp:
- 08/12/10 09:43:02 (14 years ago)
- Location:
- trunk/Mars/mhflux
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mhflux/MHAlpha.cc
r9576 r9851 142 142 binsa.Apply(fHistTime); 143 143 144 MH::SetBinning( &fHist, &binst, &binse, &binsa);144 MH::SetBinning(fHist, binst, binse, binsa); 145 145 } 146 146 … … 334 334 binst.Apply(fHTheta); 335 335 binsa.Apply(fHistTime); 336 MH::SetBinning( &fHist, &binst, &binse, &binsa);336 MH::SetBinning(fHist, binst, binse, binsa); 337 337 338 338 MAlphaFitter *fit = (MAlphaFitter*)pl->FindObject("MAlphaFitter"); … … 353 353 // If this is the first call we have to initialize the time-histogram 354 354 // 355 MBinning bins; 356 bins.SetEdges(1, t.GetAxisTime()-60, t.GetAxisTime()); 355 const MBinning bins(1, t.GetAxisTime()-60, t.GetAxisTime()); 357 356 bins.Apply(fHTime); 358 357 -
trunk/Mars/mhflux/MHCollectionArea.cc
r9422 r9851 109 109 binse.Apply(fHEnergy); 110 110 111 MH::SetBinning( &fHistSel, &binst, &binse);112 MH::SetBinning( &fHistAll, &binst, &binse);111 MH::SetBinning(fHistSel, binst, binse); 112 MH::SetBinning(fHistAll, binst, binse); 113 113 114 114 // For some unknown reasons this must be called after … … 202 202 binse.Apply(fHEnergy); 203 203 204 MH::SetBinning( &fHistSel, &binst, &binse);205 MH::SetBinning( &fHistAll, &binst, &binse);204 MH::SetBinning(fHistSel, binst, binse); 205 MH::SetBinning(fHistAll, binst, binse); 206 206 207 207 fMcAreaRadius = -1; -
trunk/Mars/mhflux/MHDisp.cc
r9301 r9851 132 132 binsx.SetEdges(fHist, 'x'); 133 133 binsy.SetEdges(fHist, 'y'); 134 MH::SetBinning( &fHistBg, &binsx, &binsy);134 MH::SetBinning(fHistBg, binsx, binsy); 135 135 136 136 if (!fHistOff) 137 137 { 138 MH::SetBinning( &fHistBg1, &binsx, &binsy);139 MH::SetBinning( &fHistBg2, &binsx, &binsy);138 MH::SetBinning(fHistBg1, binsx, binsy); 139 MH::SetBinning(fHistBg2, binsx, binsy); 140 140 } 141 141 -
trunk/Mars/mhflux/MHEffectiveOnTime.cc
r9343 r9851 435 435 btime.SetEdges(50, 0, 0.1); 436 436 437 MH::SetBinning( &fH2DeltaT, &btime, &btheta);437 MH::SetBinning(fH2DeltaT, btime, btheta); 438 438 439 439 btime.Apply(fH1DeltaT); … … 480 480 } 481 481 if (binstheta && binsdtime) 482 SetBinning( &fH2DeltaT, binsdtime,binstheta);482 SetBinning(fH2DeltaT, *binsdtime, *binstheta); 483 483 484 484 fTotalTime = 0; -
trunk/Mars/mhflux/MHEnergyEst.cc
r9565 r9851 113 113 binsi.SetEdges(1, 0, 1000); 114 114 115 SetBinning( &fHEnergy, &binse, &binse, &binst);116 SetBinning( &fHImpact, &binsi, &binsr);117 118 SetBinning( &fHResolutionEst, &binse, &binsr);119 SetBinning( &fHResolutionMC, &binse, &binsr);115 SetBinning(fHEnergy, binse, binse, binst); 116 SetBinning(fHImpact, binsi, binsr); 117 118 SetBinning(fHResolutionEst, binse, binsr); 119 SetBinning(fHResolutionMC, binse, binsr); 120 120 121 121 // For some unknown reasons this must be called after … … 165 165 binsr.SetEdges(*plist, "BinningEnergyRes"); 166 166 167 SetBinning( &fHEnergy, &binse, &binse, &binst);168 SetBinning( &fHImpact, &binsi, &binsr);169 170 SetBinning( &fHResolutionEst, &binse, &binsr);171 SetBinning( &fHResolutionMC, &binse, &binsr);167 SetBinning(fHEnergy, binse, binse, binst); 168 SetBinning(fHImpact, binsi, binsr); 169 170 SetBinning(fHResolutionEst, binse, binsr); 171 SetBinning(fHResolutionMC, binse, binsr); 172 172 173 173 fChisq = 0; -
trunk/Mars/mhflux/MHFalseSource.cc
r9367 r9851 258 258 259 259 if (fHistOff) 260 MH::SetBinning( &fHist,fHistOff);260 MH::SetBinning(fHist, *fHistOff); 261 261 else 262 262 { … … 269 269 const Float_t r = (geom ? geom->GetMaxRadius()/3 : 200)*fMm2Deg; 270 270 271 MBinning b; 272 b.SetEdges(20, -r, r); 273 SetBinning(&fHist, &b, &b, &binsa); 271 const MBinning b(20, -r, r); 272 SetBinning(fHist, b, b, binsa); 274 273 } 275 274 else 276 SetBinning( &fHist, bins, bins, &binsa);275 SetBinning(fHist, *bins, *bins, binsa); 277 276 } 278 277 … … 502 501 503 502 TH2D h; 504 MH::SetBinning( &h,h2);503 MH::SetBinning(h, *h2); 505 504 506 505 // Divide by number of entries in off region (of off-data) -
trunk/Mars/mhflux/MHThetaSq.cc
r9369 r9851 95 95 binsa.Apply(fHistTime); 96 96 97 MH::SetBinning( &fHist, &binst, &binse, &binsa);97 MH::SetBinning(fHist, binst, binse, binsa); 98 98 } 99 99 … … 132 132 // Apply binning 133 133 binsa.Apply(fHistTime); 134 MH::SetBinning( &fHist, &binst, &binse, &binsa);134 MH::SetBinning(fHist, binst, binse, binsa); 135 135 136 136 // Remark: Binnings might be overwritten in MHAlpha::SetupFill -
trunk/Mars/mhflux/MHThetaSqN.cc
r9369 r9851 98 98 binsa.Apply(fHistTime); 99 99 100 MH::SetBinning( &fHist, &binst, &binse, &binsa);100 MH::SetBinning(fHist, binst, binse, binsa); 101 101 102 102 fParameter = new MParameterD; … … 142 142 // Apply binning 143 143 binsa.Apply(fHistTime); 144 MH::SetBinning( &fHist, &binst, &binse, &binsa);144 MH::SetBinning(fHist, binst, binse, binsa); 145 145 146 146 // Remark: Binnings might be overwritten in MHAlpha::SetupFill -
trunk/Mars/mhflux/MHThreshold.cc
r9362 r9851 98 98 } 99 99 100 ApplyBinning(*pl, "Threshold", &fHEnergy);100 ApplyBinning(*pl, "Threshold", fHEnergy); 101 101 102 102 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.