- Timestamp:
- 10/17/06 09:38:43 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/MH3.cc
r7804 r8082 69 69 // plist.AddToList(&bins); 70 70 // 71 // 72 // Class Version 2: 73 // ---------------- 74 // - MDataChain *fData[3]; // Object from which the data is filled 75 // + MData *fData[3]; // Object from which the data is filled 76 // 77 // 71 78 ///////////////////////////////////////////////////////////////////////////// 72 79 #include "MH3.h" … … 89 96 #include "MParList.h" 90 97 #include "MBinning.h" 91 #include "MData Chain.h"98 #include "MDataPhrase.h" 92 99 93 100 ClassImp(MH3); … … 148 155 fHist = new TH1D; 149 156 150 fData[0] = new MData Chain(memberx);157 fData[0] = new MDataPhrase(memberx); 151 158 fData[1] = NULL; 152 159 fData[2] = NULL; … … 178 185 { 179 186 case 3: 180 fData[2] = new MData Chain(h1.GetZaxis()->GetTitle());181 case 2: 182 fData[1] = new MData Chain(h1.GetYaxis()->GetTitle());183 case 1: 184 fData[0] = new MData Chain(h1.GetXaxis()->GetTitle());187 fData[2] = new MDataPhrase(h1.GetZaxis()->GetTitle()); 188 case 2: 189 fData[1] = new MDataPhrase(h1.GetYaxis()->GetTitle()); 190 case 1: 191 fData[0] = new MDataPhrase(h1.GetXaxis()->GetTitle()); 185 192 } 186 193 … … 207 214 fHist = new TH2D; 208 215 209 fData[0] = new MData Chain(memberx);210 fData[1] = new MData Chain(membery);216 fData[0] = new MDataPhrase(memberx); 217 fData[1] = new MDataPhrase(membery); 211 218 fData[2] = NULL; 212 219 … … 234 241 fHist = new TH3D; 235 242 236 fData[0] = new MData Chain(memberx);237 fData[1] = new MData Chain(membery);238 fData[2] = new MData Chain(memberz);243 fData[0] = new MDataPhrase(memberx); 244 fData[1] = new MDataPhrase(membery); 245 fData[2] = new MDataPhrase(memberz); 239 246 240 247 fName = gsDefName; -
trunk/MagicSoft/Mars/mhbase/MH3.h
r7804 r8082 11 11 class TH1; 12 12 class TMethodCall; 13 class MData Chain;13 class MData; 14 14 15 15 class MH3 : public MH … … 23 23 Int_t fDimension; // Number of dimensions of histogram 24 24 TH1 *fHist; // Histogram to fill 25 MData Chain*fData[3]; // Object from which the data is filled25 MData *fData[3]; // Object from which the data is filled 26 26 Double_t fScale[3]; // Scale for the three axis (eg unit) 27 27 … … 86 86 void Paint(Option_t *opt=""); 87 87 88 ClassDef(MH3, 1) // Generalized 1/2/3D-histogram for Mars variables88 ClassDef(MH3, 2) // Generalized 1/2/3D-histogram for Mars variables 89 89 }; 90 90 -
trunk/MagicSoft/Mars/mhvstime/MHVsTime.cc
r7971 r8082 50 50 // SetMaxPts(-1) disables this feature. 51 51 // 52 // 53 // Class Version 2: 54 // ---------------- 55 // + MData *fData; // Object from which the data is filled 56 // - MDataChain *fData; // Object from which the data is filled 57 // + MData *fError; // Object from which the error is filled 58 // - MDataChain *fError; // Object from which the error is filled 59 // 52 60 ///////////////////////////////////////////////////////////////////////////// 53 61 #include "MHVsTime.h" … … 67 75 #include "MTime.h" 68 76 #include "MParList.h" 69 #include "MData Chain.h"77 #include "MDataPhrase.h" 70 78 #include "MRawEvtHeader.h" 71 79 … … 80 88 // 81 89 // Default constructor. For more informations about a valid rule 82 // see MData Chain.90 // see MDataPhrase. 83 91 // 84 92 MHVsTime::MHVsTime(const char *rule, const char *error) … … 92 100 return; 93 101 94 fData = new MData Chain(rule);102 fData = new MDataPhrase(rule); 95 103 96 104 if (error) 97 fError = new MData Chain(error);105 fError = new MDataPhrase(error); 98 106 99 107 fGraph = error ? new TGraphErrors : new TGraph; … … 141 149 // -------------------------------------------------------------------------- 142 150 // 143 // PreProcess the MData Chain. Create a new TGraph. Delete an old one if151 // PreProcess the MDataPhrase. Create a new TGraph. Delete an old one if 144 152 // already allocated. 145 153 // -
trunk/MagicSoft/Mars/mhvstime/MHVsTime.h
r7033 r8082 11 11 12 12 class TGraph; 13 class MData Chain;13 class MData; 14 14 15 15 class MHVsTime : public MH … … 22 22 // Could be const but root < 3.02/06 doesn't like this... 23 23 TGraph *fGraph; // Histogram to fill 24 MData Chain*fData; // Object from which the data is filled25 MData Chain*fError; // Object from which the error is filled24 MData *fData; // Object from which the data is filled 25 MData *fError; // Object from which the error is filled 26 26 Double_t fScale; // Scale for axis (eg unit) 27 27 Int_t fMaxPts; // Maximum number of data points … … 78 78 void SetMaxPts(Int_t n) { fMaxPts=n; } 79 79 80 ClassDef(MHVsTime, 1) // Generalized 1/2/3D-histogram for Mars variables80 ClassDef(MHVsTime, 2) // Generalized 1/2/3D-histogram for Mars variables 81 81 }; 82 82
Note:
See TracChangeset
for help on using the changeset viewer.