Changeset 970
- Timestamp:
- 10/22/01 14:42:34 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHHillas.cc
r959 r970 96 96 // pointer to it from this function 97 97 // 98 TObject *MHHillas::DrawClone(Option_t *opt) 98 TObject *MHHillas::DrawClone(Option_t *opt) const 99 99 { 100 100 TCanvas *c = new TCanvas("Hillas", "Histograms of Hillas Parameters"); 101 101 c->Divide(2,2); 102 102 103 gROOT->SetSelectedPad(NULL); 104 103 105 // 104 106 // This is necessary to get the expected bahviour of DrawClone 105 107 // 106 gROOT->SetSelectedPad(NULL);107 108 108 c->cd(1); 109 109 fAlpha->DrawClone()->SetBit(kCanDelete); -
trunk/MagicSoft/Mars/mhist/MHHillas.h
r961 r970 33 33 34 34 void Draw(Option_t *opt=NULL); 35 TObject *DrawClone(Option_t *opt=NULL) ;35 TObject *DrawClone(Option_t *opt=NULL) const; 36 36 37 37 ClassDef(MHHillas, 1) // Container which hilds hostograms for the Hillas parameters -
trunk/MagicSoft/Mars/mhist/MHMcCollectionArea.cc
r967 r970 152 152 // together with the canvas. 153 153 // 154 TObject *MHMcCollectionArea::DrawClone(Option_t* option) 154 TObject *MHMcCollectionArea::DrawClone(Option_t* option) const 155 155 { 156 156 TCanvas *c=new TCanvas(fHistCol->GetName(), fHistCol->GetTitle()); -
trunk/MagicSoft/Mars/mhist/MHMcCollectionArea.h
r961 r970 38 38 39 39 void Draw(Option_t *option = NULL); 40 TObject *DrawClone(Option_t *option = NULL) ;40 TObject *DrawClone(Option_t *option = NULL) const; 41 41 42 42 void CalcEfficiency(); -
trunk/MagicSoft/Mars/mhist/MHMcEnergy.cc
r959 r970 178 178 } 179 179 180 TObject *MHMcEnergy::DrawClone(Option_t *option) 180 TObject *MHMcEnergy::DrawClone(Option_t *option) const 181 181 { 182 182 TCanvas *c=new TCanvas(fHist->GetName(), fHist->GetTitle()); -
trunk/MagicSoft/Mars/mhist/MHMcEnergy.h
r954 r970 49 49 50 50 void Draw(Option_t* option = ""); 51 TObject *DrawClone(Option_t* option = "") ;51 TObject *DrawClone(Option_t* option = "") const; 52 52 void Print(Option_t* option = NULL); 53 53 -
trunk/MagicSoft/Mars/mhist/MHMcRate.cc
r954 r970 209 209 } 210 210 211 TObject *MHMcRate::DrawClone(Option_t *) 211 TObject *MHMcRate::DrawClone(Option_t *) const 212 212 { 213 213 *fLog << dbginf << "To be iplemented" << endl; -
trunk/MagicSoft/Mars/mhist/MHMcRate.h
r961 r970 58 58 59 59 void Draw(Option_t *o=NULL); 60 TObject *DrawClone(Option_t *o=NULL) ;60 TObject *DrawClone(Option_t *o=NULL) const; 61 61 62 62 ClassDef(MHMcRate, 1) // Data Container to calculate Collection Area -
trunk/MagicSoft/Mars/mhist/MHStarMap.cc
r959 r970 67 67 // connect all the histogram with the container fHist 68 68 // 69 fStarMap = new TH2F("Star 69 fStarMap = new TH2F("StarMap", "Counts", 70 70 150, -300, 300, 71 71 150, -300, 300); … … 125 125 // of palette entries 126 126 // 127 void MHStarMap::PrepareDrawing() 127 void MHStarMap::PrepareDrawing() const 128 128 { 129 129 const Int_t numg = 32; // number of gray scaled colors … … 169 169 // pointer to it from this function 170 170 // 171 TObject *MHStarMap::DrawClone(Option_t *opt) 171 TObject *MHStarMap::DrawClone(Option_t *opt) const 172 172 { 173 173 TCanvas *c = new TCanvas("Star Map", "Star Map created from Hillas Parameters", 500, 500); -
trunk/MagicSoft/Mars/mhist/MHStarMap.h
r952 r970 23 23 TH2F *fStarMap; 24 24 25 void PrepareDrawing() ;25 void PrepareDrawing() const; 26 26 27 27 public: … … 34 34 35 35 void Draw(Option_t *opt=NULL); 36 TObject *DrawClone(Option_t *opt=NULL) ;36 TObject *DrawClone(Option_t *opt=NULL) const; 37 37 38 38 ClassDef(MHStarMap, 1) // Container to hold 2-dim histogram (starmap)
Note:
See TracChangeset
for help on using the changeset viewer.