Ignore:
Timestamp:
06/27/05 19:42:25 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

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

    r7169 r7171  
    5959#include "../mhflux/MHAlpha.h"
    6060#include "../mhflux/MHCollectionArea.h"
     61//#include "../mhflux/MHThreshold.h"
    6162#include "../mhflux/MHEnergyEst.h"
    6263#include "../mhflux/MMcSpectrumWeight.h"
     
    140141    task->SetName(name);
    141142
     143    if (dynamic_cast<MContinue*>(task))
     144        dynamic_cast<MContinue*>(task)->SetAllowEmpty();
     145
    142146    return kTRUE;
    143147}
     
    426430    taskenv1.SetDefault(fEstimateEnergy ? fEstimateEnergy : &est);
    427431
     432    // FIXME: Create HistE and HistEOff to be able to modify it from
     433    // the resource file.
     434
    428435    MFillH fill1(Form("HistEOff [%s]", cls.Data()), "", "FillHistEOff");
    429436    MFillH fill2(Form("HistE    [%s]", cls.Data()), "", "FillHistE");
     
    442449    tlist.AddToList(&fill2);
    443450
    444     MEvtLoop loop(fName);
     451    MEvtLoop loop("RefillExcess"); // ***** fName *****
    445452    loop.SetParList(&plist);
    446453    loop.SetDisplay(fDisplay);
     
    515522    tlist1.AddToList(&fill0);
    516523
    517     MEvtLoop loop1(fName);
     524    MEvtLoop loop1("IntermediateLoop"); // ***** fName *****
    518525    loop1.SetParList(&plist);
    519526    loop1.SetLogStream(fLog);
     
    623630    f.SetParameter(1, 1.9e-6);
    624631    f.SetLineColor(kGreen);
    625     spectrum.Fit(&f, "NIM", "", 100, 4000);
     632    spectrum.Fit(&f, "NIM", "", 100, 5000);
    626633    f.DrawCopy("same");
    627634
     
    903910
    904911    if (!fNoThetaWeights)
    905         weight.SetZdWeights(&temp1);
     912        weight.SetWeightsZd(&temp1);
    906913
    907914    TH1D excess;
     
    979986    MFillH fill3(&area, "", "FillCollectionArea");
    980987    MFillH fill4(&hest, "", "FillEnergyEst");
     988    MFillH fill5("MHThreshold", "", "FillThreshold");
    981989    fill3.SetWeight();
    982990    fill4.SetWeight();
     991    fill5.SetWeight();
     992    fill3.SetNameTab("ColArea");
     993    fill4.SetNameTab("E-Est");
     994    fill5.SetNameTab("Threshold");
    983995
    984996    MH3 hsize("MHillas.fSize");
     
    10341046    tlist2.AddToList(&fill3);
    10351047    tlist2.AddToList(&fill4);
     1048    tlist2.AddToList(&fill5);
    10361049    tlist2.AddToList(&fill2a);
    10371050    tlist2.AddToList(&fill3a);
     
    10431056    //tlist2.AddToList(&fill9a);
    10441057
    1045     MEvtLoop loop2(fName);
     1058    MEvtLoop loop2("FillMonteCarlo"); // ***** fName *****
    10461059    loop2.SetParList(&plist);
    10471060    loop2.SetDisplay(fDisplay);
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r7135 r7171  
    288288    // ------------------ Setup write task ----------------
    289289
     290    // Effective on-time need its own not to be skipped by (eg) image cleaning
     291    // Muons needs its own to have a unique SetReadyToSave
    290292    const TString rule(Form("%s{s/_Y_/_I_}", fPathOut.Data()));
    291293    MWriteRootFile write( 2, rule, fOverwrite?"RECREATE":"NEW");
    292     MWriteRootFile writem(2, rule, fOverwrite?"RECREATE":"NEW");
     294    MWriteRootFile writet(2, rule, fOverwrite?"RECREATE":"NEW"); // EffectiveOnTime
     295    MWriteRootFile writem(2, rule, fOverwrite?"RECREATE":"NEW"); // Muons
     296
    293297    // Data
    294298    write.AddContainer("MHillas",       "Events");
     
    334338        write.AddContainer("MTimeDrive",           "Drive");
    335339        // Effective On Time
    336         write.AddContainer("MEffectiveOnTime",     "EffectiveOnTime");
    337         write.AddContainer("MTimeEffectiveOnTime", "EffectiveOnTime");
     340        writet.AddContainer("MEffectiveOnTime",     "EffectiveOnTime");
     341        writet.AddContainer("MTimeEffectiveOnTime", "EffectiveOnTime");
    338342    }
    339343
     
    373377        tlist2.AddToList(&fill8);
    374378        tlist2.AddToList(&fill9);
     379        tlist2.AddToList(&writet);
    375380    }
    376381    //tlist2.AddToList(&fillb);
Note: See TracChangeset for help on using the changeset viewer.