Changeset 1355


Ignore:
Timestamp:
06/10/02 09:09:13 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk
Files:
6 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;
  • trunk/WuerzburgSoft/Thomas/mphys/phys.C

    r1352 r1355  
    700700    Double_t runtime = 15*60; ///*18*60*/60; // [s]
    701701
    702     Double_t lo = 2e4;
     702    Double_t lo = 2e5;
    703703    Double_t hi = 2e10;
    704704    Double_t alpha = -2;
     
    745745    //
    746746    hist.SetFillStyle(0);
    747     hist.SetMarkerStyle(2);
     747    hist.SetMarkerStyle(kPlus);
    748748    histsrc.SetFillStyle(0);
    749     histsrc.SetMarkerStyle(2);
     749    histsrc.SetMarkerStyle(kMultiply);
    750750
    751751    MBinning bins;
     
    817817
    818818                    fcas << p->GetEnergy() << endl;
    819 
    820                     listg.Remove(p);
     819                    delete listg.Remove(p);
    821820                    continue;
    822821                }
     
    837836                }
    838837
    839                 listg.Remove(p);
     838                delete listg.Remove(p);
    840839                cout << "." << flush;
    841840            }
     
    905904    gPad->Clear();
    906905
    907     histsrc.SetTitle(Form("E^%.1f, z=%f, T=%d'%d\", N=%d", alpha, startz, (int)runtime/60, (int)runtime%60, n));
     906    hist.SetTitle(Form("E^%.1f, z=%f, T=%d'%d\", N=%d", alpha, startz, (int)runtime/60, (int)runtime%60, n));
     907    gPad->Modified();
     908    gPad->Update();
    908909
    909910    hist.DrawCopy("P");
Note: See TracChangeset for help on using the changeset viewer.