Ignore:
Timestamp:
02/15/05 15:36:45 (20 years ago)
Author:
rico
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/macros/computeCoeff.C

    r6465 r6486  
    1010  /* now it's just a cross check with the same MC */
    1111  /************************************************/
    12   const Int_t ebins = 10;              // number of bins to build spectrum
     12  const Int_t ebins = 20;              // number of bins to build spectrum
    1313  const Double_t emin=10;
    14   const Double_t emax=600;
    15   const Double_t logemin = TMath::Log10(emin);
    16   const Double_t logemax = TMath::Log10(emax);
     14  const Double_t emax=200;
     15  const Int_t tbins = 2;
     16  const Double_t thetab[tbins+1] = {0,10,20};
    1717  calc.SetEbins(ebins);
    18   //  calc.SetEsubbins(1);
    19 
     18  calc.SetEmin(emin);
     19  calc.SetEmax(emax);
     20  calc.SetThetaBinning(tbins,thetab);
     21 
    2022  // define the funtion of the desired spectrum
    21   calc.SetFunction("4.e9*pow(x,-2.6+1)",emin,emax);
     23  calc.SetFunction("4.e9*pow(x,-2.6+1)");
    2224  calc.ComputeAllFactors();
    2325 
     
    3133  ccut->SetAlias("theta","MMcEvt.fTelescopeTheta*180./3.14159");
    3234
     35
     36  const Double_t logemin = TMath::Log10(emin);
     37  const Double_t logemax = TMath::Log10(emax);
    3338  TH1D* hspec = new TH1D("hspec","Spectrum",ebins,logemin,logemax);
    3439  hspec->Sumw2();
     
    4247      Float_t corrval;
    4348      if(effa)
    44         corrval = uncorrval*unfold/effa;
     49        corrval = uncorrval*unfold/effa*1e9;
    4550      else
    4651        corrval = 0;
Note: See TracChangeset for help on using the changeset viewer.