Ignore:
Timestamp:
02/03/05 17:01:39 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc

    r5713 r6245  
    146146// TFile.
    147147//
     148// To create a memory based TTree use
     149//   fname  = name of TTree
     150//   option = "memory"
     151// Make sure you do not read from a tree with the same name!
     152//
    148153MWriteRootFile::MWriteRootFile(const char *fname,
    149154                               const Option_t *option,
     
    161166    // Check if we are writing to memory
    162167    //
    163     if (opt.Contains("memory"))
     168    if (opt.Contains("memory", TString::kIgnoreCase))
    164169    {
    165170        fSplitRule = fname;
     
    493498            branch->SetAddress(entry->GetAddress());
    494499
    495             if (!fSplitRule.IsNull())
     500            if (!fSplitRule.IsNull() && fOut)
    496501            {
    497502                *fLog << warn << endl;
     
    782787        while (1)
    783788        {
    784             TString sub = fname(idx+dest.Length());
     789            //TString sub = fname(idx+dest.Length());
     790            cout << "--------->" << fname << "<-----------" << endl;
    785791            idx = regexp.Index(fname, &len);
    786792            if (idx<0)
     
    816822Bool_t MWriteRootFile::ReInit(MParList *pList)
    817823{
    818     if (fSplitRule.IsNull())
     824    if (fSplitRule.IsNull() || !fOut)
    819825        return MWriteFile::ReInit(pList);
    820826
Note: See TracChangeset for help on using the changeset viewer.