Changeset 6452


Ignore:
Timestamp:
02/14/05 11:06:10 (20 years ago)
Author:
rwagner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/Changelog

    r6447 r6452  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
    2021
    21222005/02/14: Hendrik Bartko
     
    2526
    2627
     28
     292005/02/14: Robert Wagner
     30   * mtemp/mmpi/FluxCalcAndUnfold.C
     31     - Example macro for calculating a flux and unfolding it using
     32       MUnfoldSpectrum and MUnfold
     33
     34
     35
     36
    27372005/02/11: Robert Wagner
    2838   * mtemp/mmpi/MUnfoldSpectrum.[cc,h]
    2939     - A wrapper class which applies the general unfolding algorithms
    3040       of MUnfold to a gamma spectrum
     41
    3142
    3243
  • trunk/MagicSoft/Mars/mtemp/mmpi/MUnfoldSpectrum.cc

    r6384 r6452  
    2626//  MUnfoldSpectrum
    2727//
     28//  Unfolds a gamma spectrum using the algorithms given in the MUnfold class
     29//
    2830/////////////////////////////////////////////////////////////////////////////   
    2931#include "MUnfoldSpectrum.h"
     
    5456  //   TH3D* migration = migm->GetHist();
    5557 
    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;
    6164 
    6265  TAxis &taxis  = *fToBeUnfolded->GetYaxis();
     
    140143    Double_t blow = baxismig.GetBinLowEdge(1);
    141144    Double_t bup  = baxismig.GetBinLowEdge(nbmig+1);
    142      
    143    
     145         
    144146    // -----------------------------------------
    145147    // dummy ideal distribution
     
    260262      hb.SetBinError(a+1, sqrt(Vbcov(a, a)) );
    261263    }
    262 
    263264   
    264265    for (Int_t k=1; k<=nb; k++) {
     
    272273    }           
    273274  }
    274  
    275        
    276 
    277 
    278 
    279275}
    280276
  • trunk/MagicSoft/Mars/mtemp/mmpi/MUnfoldSpectrum.h

    r6384 r6452  
    1313{
    1414 public:
    15     MUnfoldSpectrum();
    16     ~MUnfoldSpectrum();
     15  MUnfoldSpectrum();
     16  ~MUnfoldSpectrum();
    1717
    1818 private:
     
    3535  void SetPriorInput(TH1D *hpr);
    3636  void SetPriorPower(Double_t gamma);
     37  void SetUnfoldingMethod(Short_t method) { fUnfoldingMethod = method; }
    3738 
    3839  ClassDef(MUnfoldSpectrum, 1)
Note: See TracChangeset for help on using the changeset viewer.