Ignore:
Timestamp:
11/13/02 17:03:19 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1583 r1600  
    5555#include <TFile.h>           // TFile::GetName
    5656#include <TSystem.h>         // gSystem->ExpandPath
    57 #include <TGProgressBar.h>
     57//#include <TGProgressBar.h>
    5858#include <TChainElement.h>
    5959#include <TOrdCollection.h>
     
    7575//
    7676MReadTree::MReadTree()
    77     : fNumEntry(0), fNumEntries(0), fBranchChoosing(kFALSE), fAutoEnable(kTRUE), fProgress(NULL)
    78 {
    79     fName  = "MReadTree";
     77    : fNumEntry(0), fNumEntries(0), fBranchChoosing(kFALSE), fAutoEnable(kTRUE)
     78{
     79    fName  = "MRead";
    8080    fTitle = "Task to loop over all events in one single tree";
    8181
     
    9999MReadTree::MReadTree(const char *tname, const char *fname,
    100100                     const char *name, const char *title)
    101     : fNumEntry(0), fNumEntries(0), fBranchChoosing(kFALSE), fAutoEnable(kTRUE), fProgress(NULL)
    102 {
    103     fName  = name  ? name  : "MReadTree";
     101    : fNumEntry(0), fNumEntries(0), fBranchChoosing(kFALSE), fAutoEnable(kTRUE)
     102{
     103    fName  = name  ? name  : "MRead";
    104104    fTitle = title ? title : "Task to loop over all events in one single tree";
    105105
     
    415415    if (TestBit(kChainWasChanged))
    416416    {
     417        *fLog << inf << "Scanning chain... " << flush;
    417418        fNumEntries = (UInt_t)fChain->GetEntries();
     419        *fLog << fNumEntries << " events found." << endl;
    418420        ResetBit(kChainWasChanged);
    419421    }
     
    566568
    567569    //
    568     // If a progress bar is given set its range.
    569     //
    570     if (fProgress)
    571         fProgress->SetRange(0, fNumEntries);
    572 
    573     //
    574570    // Now we can start notifying. Reset tree makes sure, that TChain thinks
    575571    // that the correct file is not yet initialized and reinitilizes it
Note: See TracChangeset for help on using the changeset viewer.