Ignore:
Timestamp:
01/14/02 17:34:02 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/meventdisp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc

    r1081 r1172  
    112112//  Constructor
    113113//
    114 MGFadcDisp::MGFadcDisp(char *filename, char *treename,
     114MGFadcDisp::MGFadcDisp(const char *filename, const char *treename,
    115115                       const TGWindow *p, const TGWindow *main,
    116116                       UInt_t w, UInt_t h)
     
    172172        while (pixel.Next())
    173173        {
    174             char txt[100];
    175             sprintf(txt, "%d", pixel.GetPixelId());
     174            TString txt;
     175            txt += pixel.GetPixelId();
    176176            fPixelList->AddEntry(txt, pixel.GetPixelId());
    177177        }
     
    193193    }
    194194
    195     char txt[100];
    196     sprintf(txt, "GRAPH%d", lastsel);
     195    TString txt("GRAPH");
     196    txt += lastsel;
     197
    197198    data->Draw(txt);
     199
    198200    fPixelList->Select(lastsel, kTRUE);
    199201    fPixelList->SetTopEntry(lastsel);
  • trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.h

    r1015 r1172  
    2222public:
    2323
    24     MGFadcDisp(char *filename, char *treename,
     24    MGFadcDisp(const char *filename, const char *treename,
    2525               const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h);
    2626
Note: See TracChangeset for help on using the changeset viewer.