Changeset 2161


Ignore:
Timestamp:
06/05/03 10:18:20 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2158 r2161  
    11                                                 -*-*- END OF LINE -*-*-
     2
     3 2003/06/05: Thomas Bretz
     4
     5   * mbase/MEvtLoop.cc:
     6     - fixed some typos in the comments
     7     
     8   * meventdisp/MGCamDisplay.cc:
     9     - added MHillasSrc to eventloop
     10     
     11   * meventdisp/MGEvtDisplay.cc:
     12     - print MC informations to screen, too
     13     
     14   * mfileio/MReadCurrents.cc:
     15     - added a comment
     16     
     17   * mhist/MHCerPhotEvt.h:
     18     - removed typo
     19     
     20   * mimage/MHillasSrcCalc.cc:
     21     - create a default source if now source is available
     22
     23
    224
    325 2003/06/03: Thomas Bretz
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r2120 r2161  
    3535// object.                                                                  //
    3636//                                                                          //
    37 // If you call Eventloop first all PreProcess functions - with the          //
     37// If you call Eventloop() first all PreProcess functions - with the        //
    3838// parameter list as an argument - of the tasks in the task list are        //
    3939// executed. If one of them returns kFALSE then the execution is stopped.   //
    40 // If the preprocessing was ok. The Process funtion of the tasks are        //
    41 // as long as one function returns kSTOP. Only the tasks which are marked   //
    42 // marked as "All" or with a string which matches the MInputStreamID of     //
    43 // MTaskList are executed. If one tasks returns kCONTINUE the pending       //
     40// If the preprocessing was ok, The Process function of the tasks are       //
     41// executed as long as one function returns kSTOP. Only the tasks which     //
     42// are marked as "All" or with a string which matches the MInputStreamID    //
     43// of MTaskList are executed. If one tasks returns kCONTINUE the pending    //
    4444// tasks in the list are skipped and the execution in continued with        //
    4545// the first one in the list.                                               //
     
    496496// --------------------------------------------------------------------------
    497497//
    498 //  After you setup (or read) an Evtloop you can use this to write the
    499 //  eventloop setup as a macro. The default name is "evtloop.C". The default
    500 //  extension is .C If the extension is not given, .C is added.
    501 //  I the last character in the argument is a '+' the file is not closed.
     498//  After you setup (or read) an Evtloop you can use MakeMacro() to write
     499//  the eventloop setup as a macro. The default name is "evtloop.C". The
     500//  default extension is .C If the extension is not given, .C is added.
     501//  If the last character in the argument is a '+' the file is not closed.
    502502//  This is usefull if you have an eventloop which runs three times and
    503503//  you want to write one macro. If the first character is a '+' no
  • trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc

    r2026 r2161  
    3838#include "MCamDisplay.h"         // MCamDisplay
    3939#include "MHillasCalc.h"         // MHillasCalc
     40#include "MHillasSrcCalc.h"      // MHillasSrcCalc
    4041#include "MPedestalCam.h"        // MPedestalCam
    4142#include "MCerPhotCalc.h"        // MCerPhotCalc
     
    123124    MBlindPixelCalc   *blind = new MBlindPixelCalc;
    124125    MHillasCalc       *hcalc = new MHillasCalc;
     126    MHillasSrcCalc    *scalc = new MHillasSrcCalc;
    125127
    126128    tlist->AddToList(pcopy);
     
    131133    tlist->AddToList(blind);
    132134    tlist->AddToList(hcalc);
     135    tlist->AddToList(scalc);
    133136
    134137    MGeomCamMagic *geom   = new MGeomCamMagic;
     
    210213    MHillas *hillas = (MHillas*)plist->FindObject("MHillas");
    211214
     215    hillas->Print();
    212216    plist->FindObject("MHillasExt")->Print();
     217    plist->FindObject("MHillasSrc")->Print();
    213218    plist->FindObject("MNewImagePar")->Print();
    214219
    215     hillas->Print();
    216220    if (fDisplayHillas)
    217221    {
  • trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc

    r1966 r2161  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  10/2001 <mailto:tbretz@uni-sw.gwdg.de>
     18!   Author(s): Thomas Bretz, 10/2001 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2002
     20!   Copyright: MAGIC Software Development, 2000-2003
    2121!
    2222!
     
    3939#include <TG3DLine.h>             // TGHorizontal3DLine
    4040                                  // use TGSplitter instead for root<3.00
     41
     42#include "MLog.h"
     43#include "MLogManip.h"
    4144
    4245#include "MParList.h"
     
    516519    fEvtInfo->SetText(txt);
    517520
     521    gLog << all;
     522    gLog.Separator(txt);
     523
    518524    //
    519525    // Seems to be necessary to newly layout the upper part to display
     
    535541    {
    536542        GetReader()->DecEventNum();
     543        UpdateMcLabel();
    537544        UpdateDisplay();
    538         UpdateMcLabel();
    539545    }
    540546
  • trunk/MagicSoft/Mars/mfileio/MReadCurrents.cc

    r2147 r2161  
    175175        return kFALSE;
    176176
     177    // FIXME: Calculate number of events!
     178
    177179    return kTRUE;
    178180}
  • trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.h

    r2043 r2161  
    1111
    1212class TH1D;
    13 class MGeamCam;
    1413class MCamDisplay;
    1514
  • trunk/MagicSoft/Mars/mimage/MHillasSrcCalc.cc

    r2004 r2161  
    8282    if (!fSrcPos)
    8383    {
    84         *fLog << err << dbginf << fSrcName << " [MSrcPosCam] not found... aborting." << endl;
    85         return kFALSE;
     84        *fLog << warn << fSrcName << " [MSrcPosCam] not found... creating default MSrcPosCam." << endl;
     85        fSrcPos = (MSrcPosCam*)pList->FindCreateObj("MSrcPosCam", fSrcName);
     86        if (!fSrcPos)
     87            return kFALSE;
    8688    }
    8789
Note: See TracChangeset for help on using the changeset viewer.