Changeset 19735


Ignore:
Timestamp:
10/07/19 21:33:50 (5 years ago)
Author:
tbretz
Message:
Fixed a race condition problem and made the loop turn around.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/hawc/plot_callisto.C

    r19734 r19735  
    66    {
    77        timer.TurnOn();
    8         TString input = Getline("Type 'q' to exit, or event number and <return> to go on: ");
     8        const char *gl = Getline("Type 'q' to exit, or event number and <return> to go on: ");
    99        timer.TurnOff();
    1010
     11        TString input = gl;
    1112        if (input=="q\n")
    1213            return -1;
     
    5758    while (evtnum>=0)
    5859    {
     60        if (evtnum>=T->GetEntries())
     61            evtnum = 0;
     62
    5963        T->GetEntry(evtnum);
    6064
Note: See TracChangeset for help on using the changeset viewer.