Changeset 6486 for trunk/MagicSoft/Mars/mtemp/mifae/macros/computeCoeff.C
- Timestamp:
- 02/15/05 15:36:45 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/macros/computeCoeff.C
r6465 r6486 10 10 /* now it's just a cross check with the same MC */ 11 11 /************************************************/ 12 const Int_t ebins = 10; // number of bins to build spectrum12 const Int_t ebins = 20; // number of bins to build spectrum 13 13 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}; 17 17 calc.SetEbins(ebins); 18 // calc.SetEsubbins(1); 19 18 calc.SetEmin(emin); 19 calc.SetEmax(emax); 20 calc.SetThetaBinning(tbins,thetab); 21 20 22 // 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)"); 22 24 calc.ComputeAllFactors(); 23 25 … … 31 33 ccut->SetAlias("theta","MMcEvt.fTelescopeTheta*180./3.14159"); 32 34 35 36 const Double_t logemin = TMath::Log10(emin); 37 const Double_t logemax = TMath::Log10(emax); 33 38 TH1D* hspec = new TH1D("hspec","Spectrum",ebins,logemin,logemax); 34 39 hspec->Sumw2(); … … 42 47 Float_t corrval; 43 48 if(effa) 44 corrval = uncorrval*unfold/effa ;49 corrval = uncorrval*unfold/effa*1e9; 45 50 else 46 51 corrval = 0;
Note:
See TracChangeset
for help on using the changeset viewer.