- Timestamp:
- 01/17/05 15:23:41 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5873 r5875 47 47 - added some comment about file version 48 48 49 * mbase/MFilter.h: 50 - implemented new virtual function GetDataMember like in MData 51 52 * mbase/MTask.[h,cc]: 53 - when filter is added ass GetDataMember to branch list (should be 54 obsolete, because filter is in the tasklist, but it should not hurt) 55 56 * mfbase/MF.[h,cc], mfbase/MFDataChain.[h,cc], mfbase/MFDataMember.[h,cc], 57 mfbase/MFilterList.[h,cc]: 58 - implemented new function GetDataMember 59 49 60 50 61 … … 64 75 * callisto.rc 65 76 - fixed default weights files for pedestal extraction for cosmcis 77 78 66 79 67 80 2005/01/16 Markus Gaug -
trunk/MagicSoft/Mars/mbase/MFilter.h
r4991 r5875 19 19 20 20 virtual TString GetRule() const; 21 virtual TString GetDataMember() const { return ""; } 21 22 22 23 Bool_t IsConditionTrue() const { return fInverted ? !IsExpressionTrue() : IsExpressionTrue(); } -
trunk/MagicSoft/Mars/mbase/MTask.cc
r5869 r5875 132 132 } 133 133 134 void MTask::SetFilter(MFilter *filter) 135 { 136 fFilter=filter; 137 if (filter) 138 AddToBranchList(filter->GetDataMember()); 139 } 140 134 141 // -------------------------------------------------------------------------- 135 142 // -
trunk/MagicSoft/Mars/mbase/MTask.h
r5713 r5875 73 73 74 74 // Filter functions 75 virtual void SetFilter(MFilter *filter) { fFilter=filter; }75 virtual void SetFilter(MFilter *filter); 76 76 const MFilter *GetFilter() const { return fFilter; } 77 77 MFilter *GetFilter() { return fFilter; } // for MContinue only -
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.