Changeset 5875 for trunk/MagicSoft/Mars/mfbase
- Timestamp:
- 01/17/05 15:23:41 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mfbase
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfbase/MF.cc
r5692 r5875 391 391 } 392 392 393 // -------------------------------------------------------------------------- 394 // 395 // Return a comma seperated list of all data members used in the chain. 396 // This is mainly used in MTask::AddToBranchList 397 // 398 TString MF::GetDataMember() const 399 { 400 *fLog << dbg << "MF::GetDataMember" << endl; 401 return fF->GetDataMember(); 402 } 403 393 404 void MF::StreamPrimitive(ofstream &out) const 394 405 { -
trunk/MagicSoft/Mars/mfbase/MF.h
r5100 r5875 38 38 39 39 TString GetRule() const { return fF ? fF->GetRule() : MFilter::GetRule(); } 40 TString GetDataMember() const; 40 41 41 42 Bool_t IsExpressionTrue() const; -
trunk/MagicSoft/Mars/mfbase/MFDataChain.cc
r3573 r5875 142 142 } 143 143 144 // -------------------------------------------------------------------------- 145 // 146 // Crahses if default constructor called. 147 // 144 148 void MFDataChain::StreamPrimitive(ofstream &out) const 145 149 { … … 157 161 } 158 162 163 // -------------------------------------------------------------------------- 164 // 165 // Crahses if default constructor called. 166 // 159 167 TString MFDataChain::GetRule() const 160 168 { 161 TString ret;// = "{"; 162 ret += fData.GetRule(); 163 //ret += "}"; 169 TString ret(fData.GetRule()); 164 170 ret += fFilterType==kELowerThan?"<":">"; 165 171 … … 169 175 return ret; 170 176 } 177 178 // -------------------------------------------------------------------------- 179 // 180 // Crahses if default constructor called. 181 // 182 TString MFDataChain::GetDataMember() const 183 { 184 TString ret(fData.GetDataMember()); 185 ret += ","; 186 ret += fCond->GetDataMember(); 187 return ret; 188 } -
trunk/MagicSoft/Mars/mfbase/MFDataChain.h
r3573 r5875 44 44 45 45 void Print(Option_t *opt = "") const; 46 46 47 TString GetRule() const; 48 TString GetDataMember() const; 47 49 48 50 void SetVariables(const TArrayD &arr) -
trunk/MagicSoft/Mars/mfbase/MFDataMember.cc
r3573 r5875 167 167 return ret+str.Strip(TString::kBoth); 168 168 } 169 170 TString MFDataMember::GetDataMember() const 171 { 172 return fData.GetDataMember(); 173 } -
trunk/MagicSoft/Mars/mfbase/MFDataMember.h
r3573 r5875 37 37 38 38 void Print(Option_t *opt = "") const; 39 39 40 TString GetRule() const; 41 TString GetDataMember() const; 40 42 41 43 void SetVariables(const TArrayD &arr) { fData.SetVariables(arr); } -
trunk/MagicSoft/Mars/mfbase/MFilterList.cc
r3788 r5875 232 232 *fLog << "Done." << endl; 233 233 234 AddToBranchList(filter->GetDataMember()); 235 234 236 return kTRUE; 235 237 } … … 415 417 } 416 418 419 // -------------------------------------------------------------------------- 420 // 421 // Return the data members existing in this array in a comma-seperated list 422 // (This is mainly used for MTask::AddToBranchList) 423 // 424 TString MFilterList::GetDataMember() const 425 { 426 TString str; 427 428 TIter Next(&fFilters); 429 MFilter *filter = NULL; 430 while ((filter=(MFilter*)Next())) 431 { 432 if (filter->GetDataMember().IsNull()) 433 continue; 434 435 str += ","; 436 str += filter->GetDataMember(); 437 } 438 return str; 439 } 440 441 417 442 void MFilterList::SetVariables(const TArrayD &arr) 418 443 { -
trunk/MagicSoft/Mars/mfbase/MFilterList.h
r3788 r5875 49 49 50 50 void Print(Option_t *opt = "") const; 51 51 52 TString GetRule() const { return GetRule(""); } 52 53 TString GetRule(Option_t *opt) const; 54 TString GetDataMember() const; 53 55 54 56 Int_t PreProcess(MParList *pList);
Note:
See TracChangeset
for help on using the changeset viewer.