Ignore:
Timestamp:
07/05/01 13:23:12 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MFillHFadc.cc

    r852 r855  
    112112Bool_t MFillHFadc::PostProcess()
    113113{
    114     fHistos->SetHasChanged();
     114    fHistos->SetReadyToSave();
    115115    return kTRUE;
    116116}
  • trunk/MagicSoft/Mars/mhist/MFillHHillas.cc

    r852 r855  
    7575Bool_t MFillHHillas::PostProcess()
    7676{
    77     fHistos->SetHasChanged();
     77    fHistos->SetReadyToSave();
    7878    return kTRUE;
    7979}
  • trunk/MagicSoft/Mars/mhist/MFillHStarMap.cc

    r852 r855  
    7676Bool_t MFillHStarMap::PostProcess()
    7777{
    78     fHistos->SetHasChanged();
    79 
     78    fHistos->SetReadyToSave();
    8079    return kTRUE;
    8180}
  • trunk/MagicSoft/Mars/mhist/MHMcEnergies.h

    r851 r855  
    3030    void AddEntriesToList(MParList *plist);
    3131
    32     MHMcEnergy &operator[](UInt_t idx) { return (MHMcEnergy&)fHists[idx]; }
     32    MHMcEnergy &operator[](UInt_t idx) { return *(MHMcEnergy*)(*fHists)[idx]; }
    3333
    3434    ClassDef(MHMcEnergies, 1)  // container to hold several MHMcEnergy histograms
  • trunk/MagicSoft/Mars/mhist/MHMcEnergy.cc

    r851 r855  
    2929#include <TH1.h>
    3030#include <TF1.h>
     31#include <TCanvas.h>
    3132#include <TPaveLabel.h>
    3233
     
    5859        sprintf(aux+10, ";%i", idx);
    5960    hLogEner = new TH1F(aux, "", 100, 0.5, 4.5);
     61    hLogEner->SetXTitle("log(E) [GeV]");
     62    hLogEner->SetYTitle("dN/dE");
    6063    //hLogEner->SetBins(60);
    6164}
     
    7578{
    7679    //
     80    // 0: don't draw the function (it is drawn together with the histogram)
     81    // +: add these function to the list of fits. Don't delete the last fit.
     82    //
    7783    // FIXME: R means: use the range specified in the function (xxmin, xxmax are ignored!)
    7884    //        Q means: quiet (why?)
    7985    //
    8086    //
    81     hLogEner->Fit(fLogEner->GetName(), "RQ", "", xxmin, xxmax);
     87    hLogEner->Fit(fLogEner->GetName(), "Q0+", "", xxmin, xxmax);
    8288}
    8389
     
    9298    const Float_t sum = min+max;
    9399
     100    TCanvas *c=new TCanvas("Energy Distribution","Energy distribution for triggered events");
     101
     102    hLogEner->Draw(option);
     103
    94104    TPaveLabel* label = new TPaveLabel(2.2, 0.75*sum, 4.4, 0.90*sum, text);
    95 
    96     hLogEner->SetYTitle("dN/dE") ;
    97     hLogEner->SetXTitle("log(E) [GeV]") ;
    98     hLogEner->Draw(option) ;
    99105    label->SetFillColor(10);
    100106    label->SetTextSize(0.3);
    101107    label->Draw();
     108
     109    c->Modified();
     110    c->Update();
    102111}
    103112
Note: See TracChangeset for help on using the changeset viewer.