Changeset 1442 for trunk/MagicSoft


Ignore:
Timestamp:
07/25/02 14:18:34 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1439 r1442  
    11                                                                  -*-*- END -*-*-
     2
     3 2002/07/25: Wolfgang Wittek, Thomas Bretz
     4
     5   * mhist/MHHillas.[h,cc], mhist/MHHillasSrc.[h,cc]:
     6     - added some more histograms showing the new parameters.
     7
     8   * mhist/MH.[h,cc]:
     9     - added ScaleAxis member functions
     10
    211
    312
  • trunk/MagicSoft/Mars/mhist/MHHillasSrc.cc

    r1285 r1442  
    6868    // connect all the histogram with the container fHist
    6969    //
    70     fAlpha = new TH1F("Alpha", "Alpha of Ellipse",   90, 0,  90);
    71     fDist  = new TH1F("Dist",  "Dist of Ellipse",   100, 0, 600);
     70    fAlpha    = new TH1F("Alpha",    "Alpha of Ellipse",             90,  0,  90);
     71    fDist     = new TH1F("Dist",     "Dist of Ellipse",             100,  0, 600);
     72    fHeadTail = new TH1F("HeadTail", "HeadTail of Ellipse",          45,  0,  90);
     73    fCosDA    = new TH1F("CosDA",    "cos(Delta,Alpha) of Ellipse", 100, -1,   1);
    7274
    7375    fAlpha->SetDirectory(NULL);
    7476    fDist->SetDirectory(NULL);
    75 
    76     fAlpha->SetXTitle("\\alpha [mm]");
     77    fHeadTail->SetDirectory(NULL);
     78    fCosDA->SetDirectory(NULL);
     79
     80    fAlpha->SetXTitle("\\alpha [\\circ]");
    7781    fDist->SetXTitle("Dist [mm]");
     82    fHeadTail->SetXTitle("Head-Tail [\\circ]");
     83    fCosDA->SetXTitle("cos(\\delta,\\alpha) [mm]");
    7884
    7985    fAlpha->SetYTitle("Counts");
    8086    fDist->SetYTitle("Counts");
     87    fHeadTail->SetYTitle("Counts");
     88    fCosDA->SetYTitle("Counts");
    8189}
    8290
     
    8997    delete fAlpha;
    9098    delete fDist;
     99    delete fHeadTail;
     100    delete fCosDA;
    91101}
    92102
     
    138148    const MHillasSrc &h = *(MHillasSrc*)par;
    139149
    140     fAlpha->Fill(fabs(h.GetAlpha()));
    141     fDist ->Fill(fUseMmScale ? h.GetDist() : fMm2Deg*h.GetDist());
     150    fAlpha   ->Fill(fabs(h.GetAlpha()));
     151    fDist    ->Fill(fUseMmScale ? h.GetDist() : fMm2Deg*h.GetDist());
     152    fHeadTail->Fill(h.GetHeadTail());
     153    fCosDA   ->Fill(h.GetCosDeltaAlpha());
    142154
    143155    return kTRUE;
     
    154166TObject *MHHillasSrc::DrawClone(Option_t *opt) const
    155167{
    156     TCanvas *c = MakeDefCanvas("Hillas", "Histograms of Source dependant Parameters",
    157                                350, 500);
    158     c->Divide(1, 2);
     168    TCanvas *c = MakeDefCanvas("HillasSrc", "Histograms of Source dependant Parameters",
     169                               700, 500);
     170    c->Divide(2, 2);
    159171
    160172    // FIXME: Display Source position
     
    170182    c->cd(2);
    171183    fDist->DrawCopy();
     184
     185    c->cd(3);
     186    fHeadTail->DrawCopy();
     187
     188    c->cd(4);
     189    fCosDA->DrawCopy();
    172190
    173191    c->Modified();
     
    186204{
    187205    if (!gPad)
    188         MakeDefCanvas("Hillas", "Histograms of Src dependant Parameters", 350, 500);
     206        MakeDefCanvas("HillasSrc", "Histograms of Src dependant Parameters",
     207                      700, 500);
    189208
    190209    // FIXME: Display Source position
    191210
    192     gPad->Divide(1, 2);
     211    gPad->Divide(2, 2);
    193212
    194213    gPad->cd(1);
     
    198217    fDist->Draw();
    199218
     219    gPad->cd(1);
     220    fHeadTail->Draw();
     221
     222    gPad->cd(2);
     223    fCosDA->Draw();
     224
    200225    gPad->Modified();
    201226    gPad->Update();
  • trunk/MagicSoft/Mars/mhist/MHHillasSrc.h

    r1216 r1442  
    1414    TH1F *fAlpha;
    1515    TH1F *fDist;
     16    TH1F *fHeadTail;     
     17    TH1F *fCosDA;
    1618
    1719    Float_t fMm2Deg;
     
    2729    Bool_t Fill(const MParContainer *par);
    2830
    29     TH1F *GetHistAlpha()  { return fAlpha; }
    30     TH1F *GetHistDist()   { return fDist; }
     31    TH1F *GetHistAlpha()         { return fAlpha; }
     32    TH1F *GetHistDist()          { return fDist; }
     33    TH1F *GetHistHeadTail()      { return fHeadTail; }
     34    TH1F *GetHistCosDeltaAlpha() { return fCosDA; }
    3135
    3236    void Draw(Option_t *opt=NULL);
Note: See TracChangeset for help on using the changeset viewer.