Changeset 2633 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
12/10/03 12:03:11 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/macros
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/readcurrents.C

    r2632 r2633  
    7979        // cur.Print();
    8080        display.SetCamContent(cur);
    81         gPad->Modified();
    82         gPad->Update();
     81        gPad->GetPad(1)->Modified();
     82        gPad->GetPad(1)->Update();
    8383        // Remove the comments if you want to go through the file
    8484        // event-by-event:
  • trunk/MagicSoft/Mars/macros/sumcurrents.C

    r2221 r2633  
    4444    // First Task: Read file with image parameters
    4545    // (created with the star.C macro)
    46     MReadCurrents read(fname);
     46    MReportFileRead read(fname);
     47    read.SetHasNoHeader();
     48    read.AddToList("MReportCurrents");
    4749    tlist.AddToList(&read);
    4850
    49     MFillH fill("MHCamEvent", "MCurrents");
     51    MFillH fill("MHCamEvent", "MCameraDC");
    5052    tlist.AddToList(&fill);
    5153
     
    6567
    6668    MHCamEvent &h2 = *(MHCamEvent*)plist->FindObject("MHCamEvent");
    67     MHCamera &h = *(MHCamera*)h2.GetHistByName();
     69    MHCamera &h = *(MHCamera*)h2.GetHistByName("sum");
    6870;
    6971
     
    133135//  This macro shows how to fill and display a histogram using Mars
    134136//
    135 void sumcurrents(const char *dirname="/home/MAGIC/online_data/ccdata/")
     137void sumcurrents(const char *dirname=".")
    136138{
    137139    MDirIter Next;
Note: See TracChangeset for help on using the changeset viewer.