Changeset 1093


Ignore:
Timestamp:
11/28/01 16:01:32 (23 years ago)
Author:
blanch
Message:
Added severaltask in the task list:
MReadMarsFile to read  RunHeaders Tree and
MPedestalCopy and MPedestalNSB to treat correctly pedestals.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/readMagic.C

    r1076 r1093  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2001
     
    3939
    4040    MReadTree    read("Events", "~/data/camera.root");
     41    MReadMarsFile    readhead("Events", "~/data/camera.root");
     42    MMcPedestalCopy pedestals;
     43    MMcPedestalNSB pedNSB;
    4144    MCerPhotCalc ncalc;
    4245    MClone       clone("MCerPhotEvt");
     
    4548
    4649    tlist.AddToList(&read);
     50    tlist.AddToList(&readhead);
     51    tlist.AddToList(&pedestals);
     52    tlist.AddToList(&pedNSB);
    4753    tlist.AddToList(&ncalc);
    4854    tlist.AddToList(&clone);
     
    6167    while (tlist.Process())
    6268    {
    63         cout << "Event #" << read.GetEventNum() << endl;
     69        cout << "Event #" << read.GetEventNum() ":" << endl;
    6470
    6571        display.DrawPhotNum((MCerPhotEvt*)clone.GetClone());
     
    6975
    7076        hillas.Print();
    71         hillas.Draw();
     77        hillas.Draw();
     78
    7279        display.DrawPhotNum((MCerPhotEvt*)plist.FindObject("MCerPhotEvt"));
    7380
    7481        gClient->HandleInput();
    7582        if(getchar()=='q')
    76             break;
     83        break;
    7784    }
    7885
    7986    evtloop.PostProcess();
     87
    8088}
Note: See TracChangeset for help on using the changeset viewer.