Changeset 8988 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 06/30/08 10:37:00 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r8956 r8988 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.10 8 2008-06-14 14:32:15tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.109 2008-06-30 09:36:38 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 675 675 // and added to gROOT such the gROOT->FindObject can find the histogram. 676 676 // 677 // If the standard name "_p y" is given "_py" is appended to the name677 // If the standard name "_proj" is given "_proj" is appended to the name 678 678 // of the MHCamera and the corresponding histogram is searched using 679 679 // gROOT->FindObject and updated with the present projection. … … 718 718 //check if histogram with identical name exist 719 719 TObject *h1obj = gROOT->FindObject(pname); 720 if (h1obj && h1obj->InheritsFrom( "TH1D")) {720 if (h1obj && h1obj->InheritsFrom(TH1D::Class())) { 721 721 h1 = (TH1D*)h1obj; 722 722 h1->Reset(); … … 812 812 //check if histogram with identical name exist 813 813 TObject *h1obj = gROOT->FindObject(pname); 814 if (h1obj && h1obj->InheritsFrom( "TProfile")) {814 if (h1obj && h1obj->InheritsFrom(TProfile::Class())) { 815 815 h1 = (TProfile*)h1obj; 816 816 h1->Reset(); … … 859 859 // and added to gROOT such the gROOT->FindObject can find the histogram. 860 860 // 861 // If the standard name "_az i" is given "_azi" is appended to the name861 // If the standard name "_az" is given "_az" is appended to the name 862 862 // of the MHCamera and the corresponding histogram is searched using 863 863 // gROOT->FindObject and updated with the present projection. … … 892 892 //check if histogram with identical name exist 893 893 TObject *h1obj = gROOT->FindObject(pname); 894 if (h1obj && h1obj->InheritsFrom( "TProfile")) {894 if (h1obj && h1obj->InheritsFrom(TProfile::Class())) { 895 895 h1 = (TProfile*)h1obj; 896 896 h1->Reset(); -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r8484 r8988 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.h,v 1.6 4 2007-05-10 12:14:54tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.h,v 1.65 2008-06-30 09:36:38 tbretz Exp $ 3 3 \* ======================================================================== */ 4 4 #ifndef MARS_MHCamera … … 284 284 UInt_t GetNumPixels() const; 285 285 286 TH1D *Projection(const char *name="_p y", const Int_t nbins=50) const287 286 TH1D *Projection(const char *name="_proj", const Int_t nbins=50) const 287 { 288 288 return ProjectionS(TArrayI(), TArrayI(), name,nbins); 289 290 TH1D *ProjectionS(Int_t sector, Int_t aidx, const char *name="_p y", const Int_t nbins=50) const289 } 290 TH1D *ProjectionS(Int_t sector, Int_t aidx, const char *name="_proj", const Int_t nbins=50) const 291 291 { 292 292 return ProjectionS(TArrayI(1, §or), TArrayI(1, &aidx), name, nbins); 293 293 } 294 TH1D *ProjectionS(const TArrayI §or, const TArrayI &aidx, const char *name="_p y", const Int_t nbins=50) const;294 TH1D *ProjectionS(const TArrayI §or, const TArrayI &aidx, const char *name="_proj", const Int_t nbins=50) const; 295 295 296 296 TProfile *RadialProfile(const char *name="_rad", Int_t nbins=25) const { return RadialProfileS(TArrayI(), TArrayI(), name, nbins);} … … 301 301 TProfile *RadialProfileS(const TArrayI §or, const TArrayI &aidx, const char *name="_rad", const Int_t nbins=25) const; 302 302 303 TProfile *AzimuthProfile(const char *name="_az i", 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) const305 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 { 306 306 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; 309 309 310 310 void CamDraw(TCanvas &c, const Int_t x, const Int_t y,
Note:
See TracChangeset
for help on using the changeset viewer.