Changeset 1600 for trunk/MagicSoft/Mars/mfileio/MReadTree.cc
- Timestamp:
- 11/13/02 17:03:19 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r1583 r1600 55 55 #include <TFile.h> // TFile::GetName 56 56 #include <TSystem.h> // gSystem->ExpandPath 57 #include <TGProgressBar.h>57 //#include <TGProgressBar.h> 58 58 #include <TChainElement.h> 59 59 #include <TOrdCollection.h> … … 75 75 // 76 76 MReadTree::MReadTree() 77 : fNumEntry(0), fNumEntries(0), fBranchChoosing(kFALSE), fAutoEnable(kTRUE) , fProgress(NULL)78 { 79 fName = "MRead Tree";77 : fNumEntry(0), fNumEntries(0), fBranchChoosing(kFALSE), fAutoEnable(kTRUE) 78 { 79 fName = "MRead"; 80 80 fTitle = "Task to loop over all events in one single tree"; 81 81 … … 99 99 MReadTree::MReadTree(const char *tname, const char *fname, 100 100 const char *name, const char *title) 101 : fNumEntry(0), fNumEntries(0), fBranchChoosing(kFALSE), fAutoEnable(kTRUE) , fProgress(NULL)102 { 103 fName = name ? name : "MRead Tree";101 : fNumEntry(0), fNumEntries(0), fBranchChoosing(kFALSE), fAutoEnable(kTRUE) 102 { 103 fName = name ? name : "MRead"; 104 104 fTitle = title ? title : "Task to loop over all events in one single tree"; 105 105 … … 415 415 if (TestBit(kChainWasChanged)) 416 416 { 417 *fLog << inf << "Scanning chain... " << flush; 417 418 fNumEntries = (UInt_t)fChain->GetEntries(); 419 *fLog << fNumEntries << " events found." << endl; 418 420 ResetBit(kChainWasChanged); 419 421 } … … 566 568 567 569 // 568 // If a progress bar is given set its range.569 //570 if (fProgress)571 fProgress->SetRange(0, fNumEntries);572 573 //574 570 // Now we can start notifying. Reset tree makes sure, that TChain thinks 575 571 // that the correct file is not yet initialized and reinitilizes it
Note:
See TracChangeset
for help on using the changeset viewer.