Ignore:
Timestamp:
06/30/08 10:37:00 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

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

    r8956 r8988  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.108 2008-06-14 14:32:15 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.109 2008-06-30 09:36:38 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    675675// and added to gROOT such the gROOT->FindObject can find the histogram.
    676676//
    677 // If the standard name "_py" is given "_py" is appended to the name
     677// If the standard name "_proj" is given "_proj" is appended to the name
    678678// of the MHCamera and the corresponding histogram is searched using
    679679// gROOT->FindObject and updated with the present projection.
     
    718718    //check if histogram with identical name exist
    719719    TObject *h1obj = gROOT->FindObject(pname);
    720     if (h1obj && h1obj->InheritsFrom("TH1D")) {
     720    if (h1obj && h1obj->InheritsFrom(TH1D::Class())) {
    721721        h1 = (TH1D*)h1obj;
    722722        h1->Reset();
     
    812812    //check if histogram with identical name exist
    813813    TObject *h1obj = gROOT->FindObject(pname);
    814     if (h1obj && h1obj->InheritsFrom("TProfile")) {
     814    if (h1obj && h1obj->InheritsFrom(TProfile::Class())) {
    815815        h1 = (TProfile*)h1obj;
    816816        h1->Reset();
     
    859859// and added to gROOT such the gROOT->FindObject can find the histogram.
    860860//
    861 // If the standard name "_azi" is given "_azi" is appended to the name
     861// If the standard name "_az" is given "_az" is appended to the name
    862862// of the MHCamera and the corresponding histogram is searched using
    863863// gROOT->FindObject and updated with the present projection.
     
    892892    //check if histogram with identical name exist
    893893    TObject *h1obj = gROOT->FindObject(pname);
    894     if (h1obj && h1obj->InheritsFrom("TProfile")) {
     894    if (h1obj && h1obj->InheritsFrom(TProfile::Class())) {
    895895        h1 = (TProfile*)h1obj;
    896896        h1->Reset();
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r8484 r8988  
    11/* ======================================================================== *\
    2 !  $Name: not supported by cvs2svn $:$Id: MHCamera.h,v 1.64 2007-05-10 12:14:54 tbretz Exp $
     2!  $Name: not supported by cvs2svn $:$Id: MHCamera.h,v 1.65 2008-06-30 09:36:38 tbretz Exp $
    33\* ======================================================================== */
    44#ifndef MARS_MHCamera
     
    284284    UInt_t   GetNumPixels() const;
    285285
    286     TH1D    *Projection(const char *name="_py", const Int_t nbins=50) const
    287       {
     286    TH1D    *Projection(const char *name="_proj", const Int_t nbins=50) const
     287    {
    288288        return ProjectionS(TArrayI(), TArrayI(), name,nbins);
    289       }
    290     TH1D    *ProjectionS(Int_t sector, Int_t aidx, const char *name="_py", const Int_t nbins=50) const
     289    }
     290    TH1D    *ProjectionS(Int_t sector, Int_t aidx, const char *name="_proj", const Int_t nbins=50) const
    291291    {
    292292        return ProjectionS(TArrayI(1, &sector), TArrayI(1, &aidx), name, nbins);
    293293    }
    294     TH1D    *ProjectionS(const TArrayI &sector, const TArrayI &aidx, const char *name="_py", const Int_t nbins=50) const;
     294    TH1D    *ProjectionS(const TArrayI &sector, const TArrayI &aidx, const char *name="_proj", const Int_t nbins=50) const;
    295295
    296296    TProfile *RadialProfile(const char *name="_rad", Int_t nbins=25) const { return  RadialProfileS(TArrayI(), TArrayI(), name, nbins);}
     
    301301    TProfile *RadialProfileS(const TArrayI &sector, const TArrayI &aidx, const char *name="_rad", const Int_t nbins=25) const;
    302302
    303     TProfile *AzimuthProfile(const char *name="_azi", Int_t nbins=25) const { return  AzimuthProfileA(TArrayI(), name, nbins);  }
    304     TProfile *AzimuthProfile(Int_t aidx, const char *name="_rad", const Int_t nbins=25) const
    305       {
     303    TProfile *AzimuthProfile(const char *name="_az", Int_t nbins=25) const { return  AzimuthProfileA(TArrayI(), name, nbins);  }
     304    TProfile *AzimuthProfile(Int_t aidx, const char *name="_az", const Int_t nbins=25) const
     305    {
    306306        return AzimuthProfileA(TArrayI(1, &aidx), name, nbins);
    307       }
    308     TProfile *AzimuthProfileA(const TArrayI &aidx, const char *name="_rad", const Int_t nbins=25) const;
     307    }
     308    TProfile *AzimuthProfileA(const TArrayI &aidx, const char *name="_az", const Int_t nbins=25) const;
    309309   
    310310    void CamDraw(TCanvas &c, const Int_t x, const Int_t y,
Note: See TracChangeset for help on using the changeset viewer.