Changeset 1489 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 08/08/02 11:58:59 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MHillasSrc.cc
r1488 r1489 69 69 { 70 70 fName = name ? name : "MHillasSrc"; 71 fTitle = title ? title : " parameters depending in source position";71 fTitle = title ? title : "Parameters depending in source position"; 72 72 } 73 73 -
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; -
trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.h
r1488 r1489 9 9 class MParList; 10 10 class MHadroness; 11 class MDataArray; 11 12 12 13 class MMultiDimDistCalc : public MTask … … 21 22 MHadroness *fHadroness; //! Output container for calculated hadroness 22 23 23 TList *fData;//! Used to store the MDataChains to get the event values24 MDataArray *fData; //! Used to store the MDataChains to get the event values 24 25 25 26 void StreamPrimitive(ofstream &out) const;
Note:
See TracChangeset
for help on using the changeset viewer.