Changeset 6452 for trunk/MagicSoft/Mars/mtemp/mmpi
- Timestamp:
- 02/14/05 11:06:10 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mmpi
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mmpi/MUnfoldSpectrum.cc
r6384 r6452 26 26 // MUnfoldSpectrum 27 27 // 28 // Unfolds a gamma spectrum using the algorithms given in the MUnfold class 29 // 28 30 ///////////////////////////////////////////////////////////////////////////// 29 31 #include "MUnfoldSpectrum.h" … … 54 56 // TH3D* migration = migm->GetHist(); 55 57 56 const Int_t energyBins = fToBeUnfolded->GetXaxis()->GetNbins(); 57 const Int_t thetaBins = fToBeUnfolded->GetYaxis()->GetNbins(); 58 const TAxis* axisEnergy = fToBeUnfolded->GetXaxis(); 59 const TAxis* axisTheta = fToBeUnfolded->GetYaxis(); 60 cout << "Distribution to be unfolded has " << energyBins << ", " << thetaBins << " bins" <<endl; 58 //const Int_t energyBins = fToBeUnfolded->GetXaxis()->GetNbins(); 59 //const Int_t thetaBins = fToBeUnfolded->GetYaxis()->GetNbins(); 60 //const TAxis* axisEnergy = fToBeUnfolded->GetXaxis(); 61 //const TAxis* axisTheta = fToBeUnfolded->GetYaxis(); 62 //cout << "Distribution to be unfolded has " << energyBins 63 // << ", " << thetaBins << " bins" <<endl; 61 64 62 65 TAxis &taxis = *fToBeUnfolded->GetYaxis(); … … 140 143 Double_t blow = baxismig.GetBinLowEdge(1); 141 144 Double_t bup = baxismig.GetBinLowEdge(nbmig+1); 142 143 145 144 146 // ----------------------------------------- 145 147 // dummy ideal distribution … … 260 262 hb.SetBinError(a+1, sqrt(Vbcov(a, a)) ); 261 263 } 262 263 264 264 265 for (Int_t k=1; k<=nb; k++) { … … 272 273 } 273 274 } 274 275 276 277 278 279 275 } 280 276 -
trunk/MagicSoft/Mars/mtemp/mmpi/MUnfoldSpectrum.h
r6384 r6452 13 13 { 14 14 public: 15 16 15 MUnfoldSpectrum(); 16 ~MUnfoldSpectrum(); 17 17 18 18 private: … … 35 35 void SetPriorInput(TH1D *hpr); 36 36 void SetPriorPower(Double_t gamma); 37 void SetUnfoldingMethod(Short_t method) { fUnfoldingMethod = method; } 37 38 38 39 ClassDef(MUnfoldSpectrum, 1)
Note:
See TracChangeset
for help on using the changeset viewer.