Changeset 7413 for trunk/MagicSoft/Mars/mtools
- Timestamp:
- 11/21/05 11:09:12 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mtools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtools/MTFillMatrix.cc
r7401 r7413 204 204 } 205 205 206 //------------------------------------------------------------------------ 207 // 208 // Add all entries deriving from MFilter from list to PreCuts. 209 // The ownership is not affected. 210 // 211 void MTFillMatrix::AddPreCuts(const TList &list) 212 { 213 TIter Next(&list); 214 TObject *obj=0; 215 while ((obj=Next())) 216 if (obj->InheritsFrom(MFilter::Class())) 217 fPreCuts.Add(obj); 218 } 206 219 207 220 // -------------------------------------------------------------------------- … … 209 222 // Fill the matrix (FIXME: Flow diagram missing) 210 223 // 211 Bool_t MTFillMatrix::Process( )224 Bool_t MTFillMatrix::Process(const MParList &parlist) 212 225 { 213 226 if (!fReader) … … 232 245 // Create parameter list and task list, add tasklist to parlist 233 246 // 234 MParList plist; 247 parlist.Print(); 248 MParList plist(parlist); 235 249 MTaskList tlist; 236 250 plist.AddToList(&tlist); … … 372 386 return WriteMatrix1(fname) && WriteMatrix2(fname); 373 387 } 388 389 Int_t MTFillMatrix::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 390 { 391 Bool_t rc = kFALSE; 392 if (IsEnvDefined(env, prefix, "NumDestEvents1", print)) 393 { 394 rc = kTRUE; 395 SetNumDestEvents1(GetEnvValue(env, prefix, "NumDestEvents1", fNumDestEvents1)); 396 } 397 if (IsEnvDefined(env, prefix, "NumDestEvents2", print)) 398 { 399 rc = kTRUE; 400 SetNumDestEvents2(GetEnvValue(env, prefix, "NumDestEvents2", fNumDestEvents2)); 401 } 402 return rc; 403 } -
trunk/MagicSoft/Mars/mtools/MTFillMatrix.h
r7402 r7413 1 1 #ifndef MARS_MTFillMatrix 2 2 #define MARS_MTFillMatrix 3 4 #ifndef MARS_MParList 5 #include "MParList.h" 6 #endif 3 7 4 8 #ifndef MARS_MH3 … … 27 31 28 32 TList fPreCuts; 33 34 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 29 35 30 36 Bool_t CheckResult(MHMatrix *m, Int_t num) const; … … 72 78 void AddPreCut(const char *rule); 73 79 void AddPreCut(MFilter *f); 80 void AddPreCuts(const TList &list); 74 81 75 Bool_t Process( );82 Bool_t Process(const MParList &plist=MParList()); 76 83 Bool_t WriteMatrix1(const TString &fname) const { return WriteMatrix(fDestMatrix1, fname, 1); } 77 84 Bool_t WriteMatrix2(const TString &fname) const { return WriteMatrix(fDestMatrix2, fname, 2); }
Note:
See TracChangeset
for help on using the changeset viewer.