Ignore:
Timestamp:
09/28/01 13:36:31 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.