Changeset 9868 for trunk/Mars


Ignore:
Timestamp:
08/16/10 09:08:29 (14 years ago)
Author:
tbretz
Message:
Improved handling of nagative number of events in MTFillMatrix.
Location:
trunk/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/Changelog

    r9867 r9868  
    4949     - added a full class description
    5050
     51   * mtools/MTFillMatrix.cc:
     52     - improved handling of negative number of events
    5153
    5254
  • 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.