- Timestamp:
- 02/10/05 19:54:14 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/library/MEffAreaAndCoeffCalc.h
r6359 r6368 7 7 8 8 class TF1; 9 class TH1D; 9 class TH1F; 10 class TH2F; 10 11 class MHillas; 11 12 class MMcEvt; … … 18 19 19 20 TF1* fSpec; // function used to parametrized the spectrum 20 TH1 D* fHorig; // histogram with the original energy spectrum21 TH1F* fHorig; // histogram with the original energy spectrum 21 22 22 23 Int_t fEbins; // number of bins to build spectrum … … 25 26 Double_t fEmax; // Maximum energy in GeV 26 27 27 28 28 Double_t* fWeight; // array containing weights 29 Double_t* fCoeff; // array containing coefficients30 Double_t* fEffA; // arraycontaining effective areas29 TH2F* fCoeff; // histogram containing unfolding coefficients 30 TH2F* fEffA; // histogram containing effective areas 31 31 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) 34 34 35 MHillas* fHillas; // pointer to the MHillas Branch35 MHillas* fHillas; // pointer to the MHillas Branch 36 36 MMcEvt* fMcEvt; // pointer to the MMcEvt Branch 37 37 38 38 protected: 39 39 40 void FillOriginalSpectrum(); 40 41 void ComputeCoefficients(); … … 51 52 void SetEbins(Int_t i) {fEbins=i;} 52 53 void SetEsubbins(Int_t i) {fEsubbins=i;} 53 void SetE (Float_t x){fEmin=x;}54 void SetE bins(Float_t x){fEmax=x;}54 void SetEmin(Float_t x) {fEmin=x;} 55 void SetEmax(Float_t x) {fEmax=x;} 55 56 56 57 void AddFileToInitialMC(const Char_t* name) {fCini->Add(name);} 57 58 void AddFileToFinalMC(const Char_t* name) {fCcut->Add(name);} 58 59 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;} 61 62 62 63 void ComputeAllFactors();
Note:
See TracChangeset
for help on using the changeset viewer.