Ignore:
Timestamp:
02/10/05 19:54:14 (20 years ago)
Author:
rico
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MEffAreaAndCoeffCalc.h

    r6359 r6368  
    77
    88class TF1;
    9 class TH1D;
     9class TH1F;
     10class TH2F;
    1011class MHillas;
    1112class MMcEvt;
     
    1819
    1920  TF1* fSpec;        // function used to parametrized the spectrum
    20   TH1D* fHorig;      // histogram with the original energy spectrum
     21  TH1F* fHorig;      // histogram with the original energy spectrum
    2122
    2223  Int_t fEbins;      // number of bins to build spectrum
     
    2526  Double_t fEmax;    // Maximum energy in GeV
    2627
    27  
    2828  Double_t* fWeight; // array containing weights
    29   Double_t* fCoeff;  // array containing coefficients
    30   Double_t* fEffA;   // array containing effective areas
     29  TH2F* fCoeff;      // histogram containing unfolding coefficients
     30  TH2F* fEffA;       // histogram containing effective areas
    3131
    32   TChain* fCini; // chain for initial MC events (even those not triggering)
    33   TChain* fCcut; // chain for surviving MC events (after cuts)
     32  TChain* fCini;     // chain for initial MC events (even those not triggering)
     33  TChain* fCcut;     // chain for surviving MC events (after cuts)
    3434
    35   MHillas* fHillas; // pointer to the MHillas Branch
     35  MHillas* fHillas;  // pointer to the MHillas Branch
    3636  MMcEvt*  fMcEvt;   // pointer to the MMcEvt Branch
    3737
    3838 protected:
     39
    3940  void FillOriginalSpectrum();
    4041  void ComputeCoefficients();
     
    5152  void SetEbins(Int_t i)    {fEbins=i;}
    5253  void SetEsubbins(Int_t i) {fEsubbins=i;}
    53   void SetE(Float_t x)        {fEmin=x;}
    54   void SetEbins(Float_t x)    {fEmax=x;}
     54  void SetEmin(Float_t x)   {fEmin=x;}
     55  void SetEmax(Float_t x)   {fEmax=x;}
    5556
    5657  void AddFileToInitialMC(const Char_t* name) {fCini->Add(name);}
    5758  void AddFileToFinalMC(const Char_t* name) {fCcut->Add(name);}
    5859
    59   Double_t GetEffectiveArea(Int_t i) {return fEffA[i];}
    60   Double_t GetCoefficient(Int_t i)   {return fCoeff[i];}
     60  TH2F* GetEffectiveAreaHisto() {return fEffA;}
     61  TH2F* GetCoefficientHisto()   {return fCoeff;}
    6162
    6263  void ComputeAllFactors();
Note: See TracChangeset for help on using the changeset viewer.