Changeset 2819 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 01/15/04 15:36:38 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r2816 r2819 107 107 // 108 108 MHCamera::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) 111 110 { 112 111 //fGeomCam = (MGeomCam*)geom.Clone(); … … 155 154 if (fNotify) 156 155 delete fNotify; 157 if (fYProj)158 delete fYProj;159 160 156 } 161 157 … … 456 452 // 457 453 // 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. 459 457 // 460 458 // If the standard name "_py" is given "_py" is appended to the name … … 474 472 TH1D *MHCamera::Projection(const char *name) const 475 473 { 476 477 474 Int_t nbins = 50; 478 475 … … 501 498 502 499 h1 = new TH1D(pname, GetTitle(), nbins, min, max); 503 500 h1->SetDirectory(pname.IsNull() ? NULL : gROOT); 504 501 h1->SetXTitle(GetYaxis()->GetTitle()); 505 502 h1->SetYTitle("Counts"); 506 503 h1->Sumw2(); 507 if (pname.IsNull())508 h1->SetDirectory(NULL);509 504 } 510 505 -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r2811 r2819 44 44 Bool_t fFreezed; //! Just a dummy!!!! ([Set,Is]Freezed) 45 45 46 // Will be removed in the future47 TH1D *fYProj; //! Y-Projection of the histogram (does not exist in ROOT)48 49 46 //Int_t fOptStat; 50 47 //TGStatusBar *fStatusBar;
Note:
See TracChangeset
for help on using the changeset viewer.