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/readCT1.C

    r1038 r1076  
    3737
    3838    MCT1ReadAscii read("/home/tbretz/data/CT1_97_off1.dat");
     39    MClone        clone("MCerPhotEvt");
    3940    MImgCleanStd  clean;
    4041    MHillasCalc   hcalc;
    4142
    4243    tlist.AddToList(&read);
     44    tlist.AddToList(&clone);
    4345    tlist.AddToList(&clean);
    4446    tlist.AddToList(&hcalc);
     
    5052        return;
    5153
    52     MCerPhotEvt &phevt = *(MCerPhotEvt*)plist->FindObject("MCerPhotEvt");
    53 
    5454    Int_t icount = 0;
    5555    MCamDisplay display(&geomcam);
    5656    display.Draw();
    5757
    58     while (read.Process())
     58    while (tlist.Process())
    5959    {
    60         cout << "Event: " << icount++  << endl;
    61         hillas.Reset();
     60        cout << "Event #" << icount++ << endl;
    6261
    63         display.DrawPhotNum(&phevt);
     62        display.DrawPhotNum((MCerPhotEvt*)clone.GetClone());
    6463        gClient->HandleInput();
    6564        if(getchar()=='q')
    6665            break;
    6766
    68         clean.Process();
    69 
    70         if (hcalc.Process()==kCONTINUE)
    71         {
    72             cout << "skipped." << endl;
    73             continue;
    74         }
    75 
    7667        hillas.Print();
    7768        hillas.Draw();
    78 
    79         display.DrawPhotNum(&phevt);
     69        display.DrawPhotNum((MCerPhotEvt*)plist.FindObject("MCerPhotEvt"));
    8070
    8171        gClient->HandleInput();
Note: See TracChangeset for help on using the changeset viewer.