Changeset 6917 for trunk/MagicSoft/Mars/mhbase
- Timestamp:
- 04/08/05 10:20:12 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/MH3.cc
r6869 r6917 32 32 // In the constructor you can give up to three variables which should be 33 33 // filled in the histogram. Dependend on the number of given variables 34 // (data members) a TH1 F, TH2F or TH3Fis created.34 // (data members) a TH1D, TH2D or TH3D is created. 35 35 // Specify the data mamber like the following: 36 36 // "MHillas.fLength" … … 108 108 { 109 109 case 1: 110 fHist = new TH1 F;110 fHist = new TH1D; 111 111 fHist->SetYTitle("Counts"); 112 112 break; 113 113 case 2: 114 fHist = new TH2 F;114 fHist = new TH2D; 115 115 fHist->SetZTitle("Counts"); 116 116 break; 117 117 case 3: 118 fHist = new TH3 F;118 fHist = new TH3D; 119 119 break; 120 120 } … … 140 140 // -------------------------------------------------------------------------- 141 141 // 142 // Creates an TH1 F. memberx is filled into the X-bins. For a more detailed142 // Creates an TH1D. memberx is filled into the X-bins. For a more detailed 143 143 // description see the class description above. 144 144 // … … 146 146 : fDimension(1) 147 147 { 148 fHist = new TH1 F;148 fHist = new TH1D; 149 149 150 150 fData[0] = new MDataChain(memberx); … … 198 198 // -------------------------------------------------------------------------- 199 199 // 200 // Creates an TH2 F. memberx is filled into the X-bins. membery is filled200 // Creates an TH2D. memberx is filled into the X-bins. membery is filled 201 201 // into the Y-bins. For a more detailed description see the class 202 202 // description above. … … 205 205 : fDimension(2) 206 206 { 207 fHist = new TH2 F;207 fHist = new TH2D; 208 208 209 209 fData[0] = new MDataChain(memberx); … … 225 225 // -------------------------------------------------------------------------- 226 226 // 227 // Creates an TH3 F. memberx is filled into the X-bins. membery is filled227 // Creates an TH3D. memberx is filled into the X-bins. membery is filled 228 228 // into the Y-bins. membery is filled into the Z-bins. For a more detailed 229 229 // description see the class description above. … … 232 232 : fDimension(3) 233 233 { 234 fHist = new TH3 F;234 fHist = new TH3D; 235 235 236 236 fData[0] = new MDataChain(memberx);
Note:
See TracChangeset
for help on using the changeset viewer.