Changeset 7413 for trunk/MagicSoft/Mars/mtools/MTFillMatrix.cc
- Timestamp:
- 11/21/05 11:09:12 (19 years ago)
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.