Changeset 9868 for trunk/Mars/mtools


Ignore:
Timestamp:
08/16/10 09:08:29 (14 years ago)
Author:
tbretz
Message:
Improved handling of nagative number of events in MTFillMatrix.
File:
1 edited

Legend:

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

    r9041 r9868  
    134134    m->Print("SizeCols");
    135135
     136    if (num<0)
     137        return kTRUE;
     138
    136139    const Int_t generated = m->GetM().GetNrows();
    137140    if (TMath::Abs(generated-num) <= TMath::Sqrt(9.0*num))
     
    308311    *fLog << inf;
    309312    fLog->Separator(GetDescriptor());
    310     *fLog << "Fill " << fDestMatrix1->GetDescriptor() << " with " << fNumDestEvents1 << endl;
     313    *fLog << "Fill " << fDestMatrix1->GetDescriptor() << " with ";
     314    if (fNumDestEvents1<0)
     315        *fLog << "all events";
     316    else
     317        *fLog << fNumDestEvents1;
     318    cout << "." << endl;
    311319    if (fDestMatrix2)
    312         *fLog << "Fill " << fDestMatrix2->GetDescriptor() << " with " << fNumDestEvents2 << endl;
     320    {
     321        *fLog << "Fill " << fDestMatrix2->GetDescriptor() << " with ";
     322    if (fNumDestEvents2<0)
     323        *fLog << "all events";
     324    else
     325        *fLog << fNumDestEvents2;
     326    cout << "." << endl;
     327    }
    313328    *fLog << "Distribution choosen ";
    314329    if (fReference && fReference->GetHist().GetEntries()>0)
     
    321336    // Create parameter list and task list, add tasklist to parlist
    322337    //
    323     parlist.Print();
     338    //parlist.Print();
    324339    MParList  plist(parlist);
    325340    MTaskList tlist;
Note: See TracChangeset for help on using the changeset viewer.