Changeset 957 for trunk/MagicSoft/Mars/mhist/MHMcCollectionArea.cc
- Timestamp:
- 09/28/01 13:36:31 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHMcCollectionArea.cc
r954 r957 31 31 ClassImp(MHMcCollectionArea); 32 32 33 // -------------------------------------------------------------------------- 34 // 35 // Creates the three necessary histograms: 36 // - selected showers (input) 37 // - all showers (input) 38 // - collection area (result) 39 // 33 40 MHMcCollectionArea::MHMcCollectionArea(const char *name, const char *title) 34 41 { 35 //36 // default constructor37 //38 39 42 // initialize the histogram for the distribution r vs E 40 43 // … … 72 75 } 73 76 77 // -------------------------------------------------------------------------- 78 // 79 // Delete the three histograms 80 // 74 81 MHMcCollectionArea::~MHMcCollectionArea() 75 82 { … … 79 86 } 80 87 88 // -------------------------------------------------------------------------- 89 // 90 // Fill data into the histogram which contains all showers 91 // 81 92 void MHMcCollectionArea::FillAll(Float_t log10E, Float_t radius) 82 93 { … … 84 95 } 85 96 97 // -------------------------------------------------------------------------- 98 // 99 // Fill data into the histogram which contains the selected showers 100 // 86 101 void MHMcCollectionArea::FillSel(Float_t log10E, Float_t radius) 87 102 { … … 89 104 } 90 105 106 // -------------------------------------------------------------------------- 107 // 108 // Draw the histogram with all showers 109 // 91 110 void MHMcCollectionArea::DrawAll(Option_t* option) 92 111 { 93 112 TCanvas *c=new TCanvas(fHistAll->GetName(), fHistAll->GetTitle()); 94 113 114 fHistAll->Draw(option); 115 116 c->Modified(); 117 c->Update(); 118 } 119 120 // -------------------------------------------------------------------------- 121 // 122 // Draw the histogram with the selected showers only. 123 // 124 void MHMcCollectionArea::DrawSel(Option_t* option) 125 { 126 TCanvas *c=new TCanvas(fHistSel->GetName(), fHistSel->GetTitle()); 127 95 128 fHistSel->Draw(option); 96 129 … … 99 132 } 100 133 101 void MHMcCollectionArea::DrawSel(Option_t* option) 102 { 103 TCanvas *c=new TCanvas(fHistSel->GetName(), fHistSel->GetTitle()); 104 105 fHistSel->Draw(option); 106 107 c->Modified(); 108 c->Update(); 109 } 110 134 // -------------------------------------------------------------------------- 135 // 136 // Creates a new canvas and draws the histogram into it. 137 // Be careful: The histogram belongs to this object and won't get deleted 138 // together with the canvas. 139 // 111 140 TObject *MHMcCollectionArea::DrawClone(Option_t* option) 112 141 { … … 136 165 } 137 166 167 // -------------------------------------------------------------------------- 168 // 169 // Calculate the Efficiency (collection area) 170 // 138 171 void MHMcCollectionArea::CalcEfficiency() 139 172 {
Note:
See TracChangeset
for help on using the changeset viewer.