Ignore:
Timestamp:
11/21/05 11:09:12 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtools/MTFillMatrix.cc

    r7401 r7413  
    204204}
    205205
     206//------------------------------------------------------------------------
     207//
     208// Add all entries deriving from MFilter from list to PreCuts.
     209// The ownership is not affected.
     210//
     211void 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}
    206219
    207220// --------------------------------------------------------------------------
     
    209222// Fill the matrix (FIXME: Flow diagram missing)
    210223//
    211 Bool_t MTFillMatrix::Process()
     224Bool_t MTFillMatrix::Process(const MParList &parlist)
    212225{
    213226    if (!fReader)
     
    232245    // Create parameter list and task list, add tasklist to parlist
    233246    //
    234     MParList  plist;
     247    parlist.Print();
     248    MParList  plist(parlist);
    235249    MTaskList tlist;
    236250    plist.AddToList(&tlist);
     
    372386    return WriteMatrix1(fname) && WriteMatrix2(fname);
    373387}
     388
     389Int_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.