Ignore:
Timestamp:
08/18/07 12:04:44 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhflux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MHCollectionArea.cc

    r8673 r8674  
    183183    MH::SetBinning(&fHistAll, &binst, &binse);
    184184
    185     fMcAreaRadius = -1;
     185    fMcAreaRadius   = -1;
     186    fCorsikaVersion =  0;
    186187
    187188    return kTRUE;
     
    205206
    206207    if (fCorsikaVersion!=0 && fCorsikaVersion!=runheader->GetCorsikaVersion())
    207         *fLog << warn << "Warning - Read files have different Corsika versions..." << endl;
     208    {
     209        *fLog << warn;
     210        *fLog << "Warning - Read files have different Corsika versions..." << endl;
     211        *fLog << "          Last file=" << fCorsikaVersion << "   New file=" << runheader->GetCorsikaVersion() << endl;
     212    }
    208213    fCorsikaVersion = runheader->GetCorsikaVersion();
    209214
     
    285290        //                         GetCollectionAreaAbs(), fMcAreaRadius);
    286291        const TString txt = Form("r_{max}=%.0fm --> A_{max}=%.0fm^{2}",
    287                                  GetCollectionAreaAbs(), fMcAreaRadius);
     292                                 fMcAreaRadius, GetCollectionAreaAbs());
    288293
    289294        TLatex text(0.31, 0.95, txt);
  • trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc

    r8047 r8674  
    254254// are equal only fNorm is returned.
    255255//
    256 // The normalization constant is returned as %.16f
     256// The normalization constant is returned as %.16e
    257257//
    258258// Example: 0.3712780019*(pow(MMcEvt.fEnergy,-2.270))/(pow(MMcEvt.fEnergy,-2.600))
     
    261261{
    262262    if (GetFormulaSpecOld()==GetFormulaSpecNew())
    263         return Form("%.16f", fNorm);
     263        return Form("%.16e", fNorm);
    264264
    265265    const Double_t iold = fNormEnergy<0 ? GetSpecOldIntegral() : CalcSpecOld(fNormEnergy);
     
    268268    const Double_t norm = fNorm*iold/inew;
    269269
    270     return Form("%.16f*(%s)/(%s)", norm, GetFormulaSpecNew().Data(), GetFormulaSpecOld().Data());
     270    return Form("%.16e*(%s)/(%s)", norm, GetFormulaSpecNew().Data(), GetFormulaSpecOld().Data());
    271271}
    272272
     
    447447    if (fWeightsZd)
    448448    {
     449        /*
     450         const Int_t i = fWeightsZd->GetXaxis()->FindFixBin(fPointing->GetZd());
     451
     452         Double_t tmin = fWeightsZd->GetXaxis()->GetBinLowEdge(i)  *TMath::DegToRad();
     453         Double_t tmax = fWeightsZd->GetXaxis()->GetBinLowEdge(i+1)*TMath::DegToRad();
     454         Double_t wdth = fWeightsZd->GetXaxis()->GetBinWidth(i)    *TMath::DegToRad();
     455
     456         Double_t cont = fWeightsZd->GetBinContent(i);
     457
     458         Double_t integ = cos(tmin)-cos(tmax);
     459
     460         w = sin(tmax)*cont/integ*wdth;
     461         */
     462
    449463        const Int_t i = fWeightsZd->GetXaxis()->FindFixBin(fPointing->GetZd());
    450464        w = fWeightsZd->GetBinContent(i);
Note: See TracChangeset for help on using the changeset viewer.