Changeset 1355 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
06/10/02 09:09:13 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1354 r1355  
    11                                                                  -*-*- END -*-*-
    22 2002/06/10: Thomas Bretz
     3
     4   * mbase/MReadMarsFile.cc:
     5     - changed name of fRun to ReadRunHeaders
     6
     7   * mbase/MReadTree.cc:
     8     - changed output to show name of class
    39
    410   * macros/plot.C:
  • trunk/MagicSoft/Mars/mbase/MReadMarsFile.cc

    r1342 r1355  
    6363    // open the input stream
    6464    //
    65     fRun = new MReadTree("RunHeaders", fname);
     65    fRun = new MReadTree("RunHeaders", fname, "ReadRunHeaders");
    6666
    6767    //
  • trunk/MagicSoft/Mars/mbase/MReadTree.cc

    r1344 r1355  
    193193Bool_t MReadTree::Notify()
    194194{
    195     *fLog << inf << "MReadTree: Notify '" << fChain->GetName() << "' ";
    196     *fLog << "(before processing event #" << GetEventNum()-1 << ")" << endl;
     195    *fLog << inf << GetDescriptor() << ": Notify '" << fChain->GetName();
     196    *fLog << "' (before processing event #" << GetEventNum()-1 << ")" << endl;
    197197
    198198    //fNotify->Notify();
     
    237237        return;
    238238
    239     *fLog << inf << "Branch choosing method enabled (only enabled branches are read)." << endl;
     239    *fLog << inf << GetDescriptor() << ": Branch choosing method enabled (only enabled branches are read)." << endl;
    240240    fChain->SetBranchStatus("*", kFALSE);
    241241    fBranchChoosing = kTRUE;
     
    341341    if (!tlist)
    342342    {
    343         *fLog << warn << "Cannot use auto enabeling scheme for branches. 'MTaskList' not found." << endl;
     343        *fLog << warn << GetDescriptor() << "Cannot use auto enabeling scheme for branches. 'MTaskList' not found." << endl;
    344344        return;
    345345    }
     
    537537    }
    538538
    539     *fLog << inf << "MReadTree setup " << num << " master branches addresses." << endl;
     539    *fLog << inf << GetDescriptor() << " setup " << num << " master branches addresses." << endl;
    540540
    541541    //
     
    674674    if (fNumEntry-dec >= fNumEntries)
    675675    {
    676         *fLog << warn << "MReadTree::DecEventNum: WARNING - Event " << fNumEntry << "-";
     676        *fLog << warn << GetDescriptor() << ": DecEventNum, WARNING - Event " << fNumEntry << "-";
    677677        *fLog << dec << "=" << (Int_t)fNumEntry-dec << " out of Range." << endl;
    678678        return kFALSE;
     
    692692    if (fNumEntry+inc >= fNumEntries)
    693693    {
    694         *fLog << warn << "MReadTree::IncEventNum: WARNING - Event " << fNumEntry << "+";
     694        *fLog << warn << GetDescriptor() << ": IncEventNum, WARNING - Event " << fNumEntry << "+";
    695695        *fLog << inc << "=" << (Int_t)fNumEntry+inc << " out of Range." << endl;
    696696        return kFALSE;
     
    712712    if (nr >= fNumEntries)
    713713    {
    714         *fLog << warn << "MReadTree::SetEventNum: WARNING - " << nr << " out of Range." << endl;
     714        *fLog << warn << GetDescriptor() << ": SetEventNum, WARNING - " << nr << " out of Range." << endl;
    715715        return kFALSE;
    716716    }
  • trunk/MagicSoft/Mars/mhist/MHMatrix.cc

    r1354 r1355  
    192192Bool_t MHMatrix::Finalize()
    193193{
     194    //
     195    // It's not a fatal error so we don't need to stop PostProcessing...
     196    //
     197    if (fData->GetSize()<1 || fNumRow<1)
     198        return kTRUE;
     199
    194200    TMatrix m(fM);
    195201
     
    302308    const Int_t cols = m.GetNcols();
    303309
    304     for (int i=0; i<cols; i++)
     310    for (int x=0; x<cols; x++)
    305311    {
    306312        Double_t avg = 0;
    307         for (int j=0; j<rows; j++)
    308             avg += fM(j, i);
     313        for (int y=0; y<rows; y++)
     314            avg += fM(y, x);
    309315
    310316        avg /= rows;
    311317
    312         for (int j=0; j<rows; j++)
    313             m(j, i) -= avg;
     318        for (int y=0; y<rows; y++)
     319            m(y, x) -= avg;
    314320    }
    315321
  • trunk/MagicSoft/Mars/mhist/MHMatrix.h

    r1353 r1355  
    3939    const TList *GetRules() const { return fRules; }
    4040
    41     void SetEnergy(MHMatrix *m) { fEnergy = m; }
    42 
    4341    //void Draw(Option_t *opt=NULL);
    4442    //TObject *DrawClone(Option_t *opt=NULL) const;
Note: See TracChangeset for help on using the changeset viewer.