Ignore:
Timestamp:
11/14/01 10:03:20 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1038 r1076  
    4040    MReadTree    read("Events", "~/data/camera.root");
    4141    MCerPhotCalc ncalc;
     42    MClone       clone("MCerPhotEvt");
    4243    MImgCleanStd clean;
    4344    MHillasCalc  hcalc;
     
    4546    tlist.AddToList(&read);
    4647    tlist.AddToList(&ncalc);
     48    tlist.AddToList(&clone);
    4749    tlist.AddToList(&clean);
    4850    tlist.AddToList(&hcalc);
     
    5456        return;
    5557
    56     MCerPhotEvt &phevt = *(MCerPhotEvt*)plist.FindObject("MCerPhotEvt");
    57 
    5858    MCamDisplay display(&geomcam);
    5959    display.Draw();
    6060
    61     while (read.Process())
     61    while (tlist.Process())
    6262    {
    63         cout << "Event #" << read.GetEventNum() ":" << endl;
    64         hillas.Reset();
    65         phevt.Reset();
     63        cout << "Event #" << read.GetEventNum() << endl;
    6664
    67         ncalc.Process();
    68 
    69         display.DrawPhotNum(&phevt);
     65        display.DrawPhotNum((MCerPhotEvt*)clone.GetClone());
    7066        gClient->HandleInput();
    7167        if(getchar()=='q')
    7268            break;
    7369
    74         clean.Process();
    75         hcalc.Process();
    76 
    7770        hillas.Print();
    7871        hillas.Draw();
    79 
    80         display.DrawPhotNum(&phevt);
     72        display.DrawPhotNum((MCerPhotEvt*)plist.FindObject("MCerPhotEvt"));
    8173
    8274        gClient->HandleInput();
Note: See TracChangeset for help on using the changeset viewer.