Changeset 970 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
10/22/01 14:42:34 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
10 edited

Legend:

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

    r959 r970  
    9696// pointer to it from this function
    9797//
    98 TObject *MHHillas::DrawClone(Option_t *opt)
     98TObject *MHHillas::DrawClone(Option_t *opt) const
    9999{
    100100    TCanvas *c = new TCanvas("Hillas", "Histograms of Hillas Parameters");
    101101    c->Divide(2,2);
    102102
     103    gROOT->SetSelectedPad(NULL);
     104
    103105    //
    104106    // This is necessary to get the expected bahviour of DrawClone
    105107    //
    106     gROOT->SetSelectedPad(NULL);
    107 
    108108    c->cd(1);
    109109    fAlpha->DrawClone()->SetBit(kCanDelete);
  • trunk/MagicSoft/Mars/mhist/MHHillas.h

    r961 r970  
    3333
    3434    void Draw(Option_t *opt=NULL);
    35     TObject *DrawClone(Option_t *opt=NULL);
     35    TObject *DrawClone(Option_t *opt=NULL) const;
    3636
    3737    ClassDef(MHHillas, 1) // Container which hilds hostograms for the Hillas parameters
  • trunk/MagicSoft/Mars/mhist/MHMcCollectionArea.cc

    r967 r970  
    152152// together with the canvas.
    153153//
    154 TObject *MHMcCollectionArea::DrawClone(Option_t* option)
     154TObject *MHMcCollectionArea::DrawClone(Option_t* option) const
    155155{
    156156    TCanvas *c=new TCanvas(fHistCol->GetName(), fHistCol->GetTitle());
  • trunk/MagicSoft/Mars/mhist/MHMcCollectionArea.h

    r961 r970  
    3838
    3939    void Draw(Option_t *option = NULL);
    40     TObject *DrawClone(Option_t *option = NULL);
     40    TObject *DrawClone(Option_t *option = NULL) const;
    4141
    4242    void CalcEfficiency();
  • trunk/MagicSoft/Mars/mhist/MHMcEnergy.cc

    r959 r970  
    178178}
    179179
    180 TObject *MHMcEnergy::DrawClone(Option_t *option)
     180TObject *MHMcEnergy::DrawClone(Option_t *option) const
    181181{
    182182    TCanvas *c=new TCanvas(fHist->GetName(), fHist->GetTitle());
  • trunk/MagicSoft/Mars/mhist/MHMcEnergy.h

    r954 r970  
    4949
    5050    void Draw(Option_t* option = "");
    51     TObject *DrawClone(Option_t* option = "");
     51    TObject *DrawClone(Option_t* option = "") const;
    5252    void Print(Option_t* option = NULL);
    5353
  • trunk/MagicSoft/Mars/mhist/MHMcRate.cc

    r954 r970  
    209209}
    210210
    211 TObject *MHMcRate::DrawClone(Option_t *)
     211TObject *MHMcRate::DrawClone(Option_t *) const
    212212{
    213213    *fLog << dbginf << "To be iplemented" << endl;
  • trunk/MagicSoft/Mars/mhist/MHMcRate.h

    r961 r970  
    5858
    5959    void Draw(Option_t *o=NULL);
    60     TObject *DrawClone(Option_t *o=NULL);
     60    TObject *DrawClone(Option_t *o=NULL) const;
    6161
    6262    ClassDef(MHMcRate, 1)  // Data Container to calculate Collection Area
  • trunk/MagicSoft/Mars/mhist/MHStarMap.cc

    r959 r970  
    6767    //   connect all the histogram with the container fHist
    6868    //
    69     fStarMap = new TH2F("Star Map", "Counts",
     69    fStarMap = new TH2F("StarMap", "Counts",
    7070                        150, -300, 300,
    7171                        150, -300, 300);
     
    125125//    of palette entries
    126126//
    127 void MHStarMap::PrepareDrawing()
     127void MHStarMap::PrepareDrawing() const
    128128{
    129129    const Int_t numg = 32; // number of gray scaled colors
     
    169169// pointer to it from this function
    170170//
    171 TObject *MHStarMap::DrawClone(Option_t *opt)
     171TObject *MHStarMap::DrawClone(Option_t *opt) const
    172172{
    173173    TCanvas *c = new TCanvas("Star Map", "Star Map created from Hillas Parameters", 500, 500);
  • trunk/MagicSoft/Mars/mhist/MHStarMap.h

    r952 r970  
    2323    TH2F *fStarMap;
    2424
    25     void PrepareDrawing();
     25    void PrepareDrawing() const;
    2626
    2727public:
     
    3434
    3535    void Draw(Option_t *opt=NULL);
    36     TObject *DrawClone(Option_t *opt=NULL);
     36    TObject *DrawClone(Option_t *opt=NULL) const;
    3737
    3838    ClassDef(MHStarMap, 1) // Container to hold 2-dim histogram (starmap)
Note: See TracChangeset for help on using the changeset viewer.