Changeset 6245 for trunk


Ignore:
Timestamp:
02/03/05 17:01:39 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6243 r6245  
    3232   * mhflux/MHAlpha.[h,cc]:
    3333     - made time bins settable by user
     34
     35   * mfileio/MWriteRootFile.cc:
     36     - fixed ReInit and a warning output when writing to memory
    3437
    3538
     
    5356   * mcalib/MCalibrationTestCam.cc
    5457     - initialize a missing array in InitAverageAreas
     58
     59
    5560
    5661 2005/02/02 Markus Gaug
  • 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.