Ignore:
Timestamp:
09/17/07 16:56:20 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r8744 r8746  
    333333{
    334334    // Some debug output
     335    *fLog << all << endl;
    335336    fLog->Separator("Compiling original MC distribution");
    336337
     
    455456        if (!weight.Set(*head))
    456457        {
    457             *fLog << err << "ERROR - Initializing MMcSpectrumWeight failed." << endl;
     458            *fLog << err << "ERROR - Initializing MMcSpectrumWeight from " << fname << " failed." << endl;
    458459            return kFALSE;
    459460        }
     
    463464
    464465        // No we found everything... go on reading contents
    465         *fLog << inf << "Reading OriginalMC of " << fname << endl;
     466        *fLog << inf2 << "Reading OriginalMC of " << fname << endl;
    466467
    467468        // Fill histogram from tree
     
    948949    gPad->SetGridy();
    949950    TH1D *spec=(TH1D*)spectrum.DrawCopy();
    950     FitSpectrum(*spec);
     951    //FitSpectrum(*spec);
    951952
    952953    c1.cd(3);
     
    985986    spec = (TH1D*)spectrum.DrawCopy();
    986987
     988    TLatex tex;
     989
    987990    TF1 fc("Crab", "7.0e-6*(x/300)^(-2.31-0.26*log10(x/300))", 100, 6000);
    988991    fc.SetLineStyle(7);
     
    991994    fc.DrawCopy("same");
    992995
     996    tex.DrawText(90, fc.Eval(100), "Crab (\\Gamma=-2.31)");
     997
    993998    TF1 fa("PG1553", "1.8e-6*(x/200)^-4.21", 90, 600);
    994999    static_cast<const TAttLine&>(fc).Copy(fa);
    9951000    fa.DrawCopy("same");
     1001
     1002    tex.DrawText(90, fa.Eval(90), "PG1553 (\\Gamma=-4.21)");
    9961003
    9971004    // Display dN/dE*E^2 for conveinience
     
    13291336    *fLog << inf;
    13301337    fLog->Separator(GetDescriptor());
    1331     *fLog << "Compile Monte Carlo Sample (data set " << set.GetName() << ")" << endl;
     1338    *fLog << "Compile Monte Carlo sample (dataset " << set.GetName() << ")" << endl;
    13321339    *fLog << endl;
    13331340
     
    16961703    cont.Add(&area1);
    16971704    cont.Add(&hest);
     1705    cont.Add(&set);
    16981706
    16991707    if (fDisplay)
Note: See TracChangeset for help on using the changeset viewer.