Changeset 1172 for trunk/MagicSoft/Mars/meventdisp
- Timestamp:
- 01/14/02 17:34:02 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/meventdisp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc
r1081 r1172 112 112 // Constructor 113 113 // 114 MGFadcDisp::MGFadcDisp(c har *filename,char *treename,114 MGFadcDisp::MGFadcDisp(const char *filename, const char *treename, 115 115 const TGWindow *p, const TGWindow *main, 116 116 UInt_t w, UInt_t h) … … 172 172 while (pixel.Next()) 173 173 { 174 char txt[100];175 sprintf(txt, "%d", pixel.GetPixelId());174 TString txt; 175 txt += pixel.GetPixelId(); 176 176 fPixelList->AddEntry(txt, pixel.GetPixelId()); 177 177 } … … 193 193 } 194 194 195 char txt[100]; 196 sprintf(txt, "GRAPH%d", lastsel); 195 TString txt("GRAPH"); 196 txt += lastsel; 197 197 198 data->Draw(txt); 199 198 200 fPixelList->Select(lastsel, kTRUE); 199 201 fPixelList->SetTopEntry(lastsel); -
trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.h
r1015 r1172 22 22 public: 23 23 24 MGFadcDisp(c har *filename,char *treename,24 MGFadcDisp(const char *filename, const char *treename, 25 25 const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h); 26 26
Note:
See TracChangeset
for help on using the changeset viewer.