Changeset 1489 for trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc
- Timestamp:
- 08/08/02 11:58:59 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc
r1488 r1489 52 52 #include "MParList.h" 53 53 #include "MDataChain.h" 54 #include "MDataArray.h" 54 55 55 56 #include "MHadroness.h" … … 65 66 // 66 67 MMultiDimDistCalc::MMultiDimDistCalc(const char *name, const char *title) 67 : fNum(0), fUseKernel(kFALSE) 68 : fNum(0), fUseKernel(kFALSE), fData(NULL) 68 69 { 69 70 // … … 73 74 fTitle = title ? title : gsDefTitle.Data(); 74 75 75 fData = new TList; 76 fData->SetOwner(); 76 /* 77 fData = new TList; 78 fData->SetOwner(); 79 */ 77 80 } 78 81 … … 83 86 MMultiDimDistCalc::~MMultiDimDistCalc() 84 87 { 85 delete fData;88 // delete fData; 86 89 } 87 90 … … 119 122 } 120 123 124 /* 121 125 TIter Next(fMGammas->GetRules()); 122 126 TObject *data=NULL; … … 130 134 } 131 135 fData->Add(chain); 136 } 137 */ 138 fData = fMGammas->GetColumns(); 139 if (!fData) 140 { 141 *fLog << err << dbginf << "Error matrix doesn't contain columns... aborting." << endl; 142 return kFALSE; 143 } 144 145 if (!fData->PreProcess(plist)) 146 { 147 *fLog << err << dbginf << "PreProcessing of the MDataArray failed for the columns failed... aborting." << endl; 148 return kFALSE; 132 149 } 133 150 … … 156 173 TVector event(ncols); 157 174 175 for (int i=0; i<fData->GetNumEntries(); i++) 176 event(i) = (*fData)(i); 177 178 /* 158 179 Int_t n=0; 159 180 TIter Next(fData); … … 161 182 while ((data=(MData*)Next())) 162 183 event(n++) = data->GetValue(); 184 */ 163 185 164 186 Double_t numg = fNum;
Note:
See TracChangeset
for help on using the changeset viewer.