Changeset 8676


Ignore:
Timestamp:
08/18/07 15:10:25 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8674 r8676  
    5656       Execution of the program can be forced with a new option.
    5757     - write more information to output file.
     58     - added a new tab showing the vent distribution without weights
    5859
    5960
  • trunk/MagicSoft/Mars/NEWS

    r8674 r8676  
    244244     the information is lost.
    245245
     246   - sponde: added a new tab "EventDist" showing the unweighted event
     247     distribution of your sample after cuts. This tells you how many
     248     events with this energy you had in your MC files. The same information
     249     you get from the error bars of the weighted histograms, but this is
     250     less intuitive.
     251
    246252
    247253
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r8674 r8676  
    299299        fDisplay->SetStatusLine1("Getting maximum impact...");
    300300
    301     // Create chain
     301    // ----- Create chain -----
    302302    *fLog << "Getting files... " << flush;
    303303    TChain chain("RunHeaders");
     
    397397        // Fill histogram from tree
    398398        hfill->SetDirectory(&file);
    399         t->Draw(cont, weights, "goff");
     399        if (t->Draw(cont, weights, "goff")<0)
     400        {
     401            *fLog << err << "ERROR - Reading OriginalMC failed." << endl;
     402            return kFALSE;
     403        }
    400404        hfill->SetDirectory(0);
    401405        h.Add(hfill);
     
    12151219    plist.AddToList(&bins2);
    12161220
    1217     // Initialize weighting to a new spectru
    1218     // m as defined in the resource file
     1221    // Initialize weighting to a new spectrum
     1222    // as defined in the resource file
    12191223    MMcSpectrumWeight weight;
    12201224    if (!InitWeighting(set, weight))
     
    13451349    fill5.SetNameTab("Threshold");
    13461350
     1351    MH3 henergy("MMcEvt.fEnergy");
     1352    henergy.SetName("EventDist;EnergyEst");
     1353    henergy.SetTitle("Unweighted event distribution (Real statistics);E [GeV];Counts;");
     1354    henergy.Sumw2();
     1355
    13471356    MH3 hsize("MHillas.fSize");
    13481357    hsize.SetName("ExcessMC");
     
    13531362    plist.AddToList(&bins);
    13541363
     1364    MFillH fill0a(&henergy, "", "FillEventDist");
    13551365    MFillH fill1a("MHHillasMCPre  [MHHillas]",      "MHillas",      "FillHillasPre");
    13561366    MFillH fill2a("MHHillasMCPost [MHHillas]",      "MHillas",      "FillHillasPost");
     
    14081418    tlist2.AddToList(&fill4);
    14091419    tlist2.AddToList(&fill5);
     1420    tlist2.AddToList(&fill0a);
    14101421    tlist2.AddToList(&fill2a);
    14111422    tlist2.AddToList(&fill3a);
     
    14851496    cont.Add(&area1);
    14861497    cont.Add(&hest);
    1487     cont.Add(const_cast<TEnv*>(GetEnv()));
    14881498
    14891499    if (fDisplay)
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.h

    r8655 r8676  
    3434
    3535    Bool_t fRefill;
    36     Bool_t fSimpleMode;
     36    //Bool_t fSimpleMode;
     37    Bool_t fForceTheta;
    3738    Bool_t fRawMc;
    3839    Bool_t fNoThetaWeights;
     
    6364
    6465    void EnableRefilling(Bool_t b=kTRUE)  { fRefill=b; }
    65     void EnableSimpleMode(Bool_t b=kTRUE) { fSimpleMode=b; }
     66    //void EnableSimpleMode(Bool_t b=kTRUE) { fSimpleMode=b; }
    6667    void EnableRawMc(Bool_t b=kTRUE)      { fRawMc=b; }
     68    void ForceTheta(Bool_t b=kTRUE)       { fForceTheta=b; }
    6769
    6870    void SetEnergyEstimator(const MTask *task);
Note: See TracChangeset for help on using the changeset viewer.