Changeset 2819


Ignore:
Timestamp:
01/15/04 15:36:38 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2818 r2819  
    4141   * mhist/MHCamera.[h,cc]:
    4242     - added member function Projection
     43     - removed fYproj
    4344
    4445   * mreport/MReport*.*:
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r2816 r2819  
    107107//
    108108MHCamera::MHCamera(const MGeomCam &geom, const char *name, const char *title)
    109 : fGeomCam(NULL), /*TH1D(name, title, geom.GetNumPixels(), -0.5, geom.GetNumPixels()-0.5),
    110                     fUsed(geom.GetNumPixels()),*/ fColors(kItemsLegend), fYProj(NULL)
     109: fGeomCam(NULL), fColors(kItemsLegend)
    111110{
    112111    //fGeomCam = (MGeomCam*)geom.Clone();
     
    155154    if (fNotify)
    156155      delete fNotify;
    157     if (fYProj)
    158       delete fYProj;
    159 
    160156}
    161157
     
    456452//
    457453// If no name is given the newly allocated histogram is removed from
    458 // the current directory calling SetDirectory(0)
     454// the current directory calling SetDirectory(0) in any other case
     455// the newly created histogram is removed from the current directory
     456// and added to gROOT such the gROOT->FindObject can find the histogram.
    459457//
    460458// If the standard name "_py" is given "_py" is appended to the name
     
    474472TH1D *MHCamera::Projection(const char *name) const
    475473{
    476 
    477474    Int_t nbins = 50;
    478475
     
    501498
    502499        h1 = new TH1D(pname, GetTitle(), nbins, min, max);
    503 
     500        h1->SetDirectory(pname.IsNull() ? NULL : gROOT);
    504501        h1->SetXTitle(GetYaxis()->GetTitle());
    505502        h1->SetYTitle("Counts");
    506503        h1->Sumw2();
    507         if (pname.IsNull())
    508             h1->SetDirectory(NULL);
    509504    }
    510505
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r2811 r2819  
    4444    Bool_t         fFreezed;     //! Just a dummy!!!! ([Set,Is]Freezed)
    4545
    46     // Will be removed in the future
    47     TH1D          *fYProj;       //! Y-Projection of the histogram (does not exist in ROOT)
    48    
    4946    //Int_t          fOptStat;
    5047    //TGStatusBar   *fStatusBar;
Note: See TracChangeset for help on using the changeset viewer.