Changeset 1527 for trunk/MagicSoft


Ignore:
Timestamp:
09/17/02 11:06:33 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc

    r1081 r1527  
    5959{
    6060    gLog << GetDescriptor() <<" Pixel: "<< fPixId;
    61     gLog << (fIsUsed?"    Used ":" Unused ");
    62     gLog << (fIsCore?"  Core  ":"        ");
    63     gLog << "  Nphot= " << fPhot << "  Error(Nphot) = " << fErrPhot << endl;
     61    gLog << (fIsUsed?"   Used ":" Unused ");
     62    gLog << (fIsCore?" Core ":"      ");
     63    gLog << "Nphot= " << fPhot << " Error(Nphot)=" << fErrPhot << endl;
    6464}
    6565
  • trunk/MagicSoft/Mars/mbase/MTaskList.cc

    r1524 r1527  
    392392    // loop over all tasks for processing
    393393    //
     394    Bool_t rc = kTRUE;
    394395    while ( (task=(MTask*)Next()) )
    395396    {
     
    420421            // an error occured: stop eventloop
    421422            //
    422             return kFALSE;
     423            rc = kFALSE;
     424            break;
    423425
    424426        case kCONTINUE:
     
    426428            // something occured: skip the rest of the tasks for this event
    427429            //
    428             return kTRUE;
     430            rc = kTRUE;
     431            break;
    429432
    430433        default:
    431434            *fLog << warn << "MTaskList::Process: Unknown return value from MTask::Process()... ignored." << endl;
     435            continue;
    432436        }
     437        break;
    433438    }
    434439
     
    436441        fParList->ResetBit(MParList::kDoNotReset);
    437442
    438     return kTRUE;
     443    return rc;
    439444}
    440445
  • trunk/MagicSoft/Mars/mfileio/MReadTree.cc

    r1483 r1527  
    203203// --------------------------------------------------------------------------
    204204//
     205// Adds all files from another MReadTree to this instance
     206//
     207// Returns the number of file which were added
     208//
     209Int_t MReadTree::AddFiles(const MReadTree &read)
     210{
     211    Int_t rc = 0;
     212
     213    TIter Next(read.fChain->GetListOfFiles());
     214    TObject *obj = NULL;
     215    while ((obj=Next()))
     216        rc += AddFile(obj->GetTitle());
     217
     218    return rc;
     219}
     220
     221// --------------------------------------------------------------------------
     222//
    205223//  This function is called if Branch choosing method should get enabled.
    206224//  Branch choosing means, that only the enabled branches are read into
  • trunk/MagicSoft/Mars/mfileio/MReadTree.h

    r1477 r1527  
    6060    UInt_t GetEntries() const  { return fNumEntries; }
    6161
    62     TString GetFileName() const;
    63     Int_t   GetFileIndex() const;
     62    TString    GetFileName() const;
     63    Int_t      GetFileIndex() const;
    6464
    6565    virtual void   AddNotify(TObject *obj);
     
    6868
    6969    virtual Int_t  AddFile(const char *fname);
     70    virtual Int_t  AddFiles(const MReadTree &read);
    7071
    7172    virtual Bool_t PreProcess(MParList *pList);
  • trunk/MagicSoft/Mars/mmain/MainLinkDef.h

    r1016 r1527  
    1212#pragma link C++ class MDataCheck+;
    1313#pragma link C++ class MMonteCarlo+;
     14#pragma link C++ class MProgressBar+;
    1415#pragma link C++ class MCameraDisplay+;
    1516
  • trunk/MagicSoft/Mars/mmain/Makefile

    r1437 r1527  
    3535           MAnalysis.cc \
    3636           MMonteCarlo.cc \
     37           MProgressBar.cc \
    3738           MCameraDisplay.cc
    3839
Note: See TracChangeset for help on using the changeset viewer.