Ignore:
Timestamp:
03/01/01 15:56:58 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MReadTree.cc

    r609 r654  
    4343{
    4444    //
    45     // open file
     45    // open file and check if file is really open
    4646    //
    4747    fFile = new TFile(fFileName, "READ");
     
    5454    }
    5555
     56    //
     57    // try to get the tree and check if it was found
     58    //
    5659    fTree = (TTree*)fFile->Get(fTreeName);
    57 
    5860    if (!fTree)
    5961    {
     
    6365    }
    6466
     67    //
     68    // get number of events in this tree
     69    //
    6570    fNumEntries = (UInt_t)fTree->GetEntries();
     71
     72    //
     73    // set pointer to first event
     74    //
    6675    fNumEntry   = 0;
    6776
     77    //
     78    // output logging information
     79    //
    6880    *fLog << "File: '" << fFileName << "'  Tree: '" << fTreeName;
    6981    *fLog << "' with " << fNumEntries << " Entries opened." << endl;
Note: See TracChangeset for help on using the changeset viewer.