Changeset 2633 for trunk/MagicSoft/Mars
- Timestamp:
- 12/10/03 12:03:11 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/macros
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/readcurrents.C
r2632 r2633 79 79 // cur.Print(); 80 80 display.SetCamContent(cur); 81 gPad-> Modified();82 gPad-> Update();81 gPad->GetPad(1)->Modified(); 82 gPad->GetPad(1)->Update(); 83 83 // Remove the comments if you want to go through the file 84 84 // event-by-event: -
trunk/MagicSoft/Mars/macros/sumcurrents.C
r2221 r2633 44 44 // First Task: Read file with image parameters 45 45 // (created with the star.C macro) 46 MReadCurrents read(fname); 46 MReportFileRead read(fname); 47 read.SetHasNoHeader(); 48 read.AddToList("MReportCurrents"); 47 49 tlist.AddToList(&read); 48 50 49 MFillH fill("MHCamEvent", "MC urrents");51 MFillH fill("MHCamEvent", "MCameraDC"); 50 52 tlist.AddToList(&fill); 51 53 … … 65 67 66 68 MHCamEvent &h2 = *(MHCamEvent*)plist->FindObject("MHCamEvent"); 67 MHCamera &h = *(MHCamera*)h2.GetHistByName( );69 MHCamera &h = *(MHCamera*)h2.GetHistByName("sum"); 68 70 ; 69 71 … … 133 135 // This macro shows how to fill and display a histogram using Mars 134 136 // 135 void sumcurrents(const char *dirname=" /home/MAGIC/online_data/ccdata/")137 void sumcurrents(const char *dirname=".") 136 138 { 137 139 MDirIter Next;
Note:
See TracChangeset
for help on using the changeset viewer.