Changeset 957 for trunk


Ignore:
Timestamp:
09/28/01 13:36:31 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.h

    r956 r957  
    1010#endif
    1111
    12 class MParList; 
    13 class MReadTree; 
    14 class MRawEvtData; 
     12class MParList;
     13class MReadTree;
     14class MRawEvtData;
    1515
    1616class TList;
    17 class TCanvas; 
    18 class TGListBox; 
    19 class TGTextEntry; 
     17class TCanvas;
     18class TGListBox;
     19class TGTextEntry;
    2020
    2121class MGFadcDisp : public TGTransientFrame
  • trunk/MagicSoft/Mars/mhist/MHHillas.cc

    r952 r957  
    141141
    142142    c->cd(1);
    143     //fAlpha->SetBit(kCanDelete);
    144143    fAlpha->Draw();
    145144
    146145    c->cd(2);
    147     //fLength->SetBit(kCanDelete);
    148146    fLength->Draw();
    149147
    150148    c->cd(3);
    151     //fDist->SetBit(kCanDelete);
    152149    fDist->Draw();
    153150
    154151    c->cd(4);
    155     //fWidth->SetBit(kCanDelete);
    156152    fWidth->Draw();
    157153
  • trunk/MagicSoft/Mars/mhist/MHMcCollectionArea.cc

    r954 r957  
    3131ClassImp(MHMcCollectionArea);
    3232
     33// --------------------------------------------------------------------------
     34//
     35//  Creates the three necessary histograms:
     36//   - selected showers (input)
     37//   - all showers (input)
     38//   - collection area (result)
     39//
    3340MHMcCollectionArea::MHMcCollectionArea(const char *name, const char *title)
    3441{
    35     //
    36     //   default constructor
    37     //
    38 
    3942    //   initialize the histogram for the distribution r vs E
    4043    //
     
    7275}
    7376
     77// --------------------------------------------------------------------------
     78//
     79// Delete the three histograms
     80//
    7481MHMcCollectionArea::~MHMcCollectionArea()
    7582{
     
    7986}
    8087
     88// --------------------------------------------------------------------------
     89//
     90// Fill data into the histogram which contains all showers
     91//
    8192void MHMcCollectionArea::FillAll(Float_t log10E, Float_t radius)
    8293{
     
    8495}
    8596
     97// --------------------------------------------------------------------------
     98//
     99// Fill data into the histogram which contains the selected showers
     100//
    86101void MHMcCollectionArea::FillSel(Float_t log10E, Float_t radius)
    87102{
     
    89104}
    90105
     106// --------------------------------------------------------------------------
     107//
     108// Draw the histogram with all showers
     109//
    91110void MHMcCollectionArea::DrawAll(Option_t* option)
    92111{
    93112    TCanvas *c=new TCanvas(fHistAll->GetName(), fHistAll->GetTitle());
    94113
     114    fHistAll->Draw(option);
     115
     116    c->Modified();
     117    c->Update();
     118}
     119
     120// --------------------------------------------------------------------------
     121//
     122// Draw the histogram with the selected showers only.
     123//
     124void MHMcCollectionArea::DrawSel(Option_t* option)
     125{
     126    TCanvas *c=new TCanvas(fHistSel->GetName(), fHistSel->GetTitle());
     127
    95128    fHistSel->Draw(option);
    96129
     
    99132}
    100133
    101 void MHMcCollectionArea::DrawSel(Option_t* option)
    102 {
    103     TCanvas *c=new TCanvas(fHistSel->GetName(), fHistSel->GetTitle());
    104 
    105     fHistSel->Draw(option);
    106 
    107     c->Modified();
    108     c->Update();
    109 }
    110 
     134// --------------------------------------------------------------------------
     135//
     136// Creates a new canvas and draws the histogram into it.
     137// Be careful: The histogram belongs to this object and won't get deleted
     138// together with the canvas.
     139//
    111140TObject *MHMcCollectionArea::DrawClone(Option_t* option)
    112141{
     
    136165}
    137166
     167// --------------------------------------------------------------------------
     168//
     169//  Calculate the Efficiency (collection area)
     170//
    138171void MHMcCollectionArea::CalcEfficiency()
    139172{
Note: See TracChangeset for help on using the changeset viewer.