Changeset 768 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/24/01 11:22:42 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

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

    r716 r768  
    3535    // Now setup the tasks and tasklist:
    3636    //
    37     //  1) read in the data from a ct1 ascii file
    38     //  2) clean the image
    39     //  3) calculate hillas
    40     //  4) fill the hillas into the histograms
     37    //  1) read in the data from a ct1 ascii file   MCTReadAscii
     38    //  2) clean the image                          MImgCleanStd
     39    //  3) calculate hillas                         MHillasCalc
     40    //  4) fill the hillas into the histograms      MFillHHillas
    4141    //
    42     MCT1ReadAscii read;
    43     read.AddFile("CT1_99_off1.dat");
    44     read.AddFile("CT1_99_off2.dat");
     42    MCT1ReadAscii read("data/MCCT1_97_ga45.dat");
     43    // read.AddFile("data/MCCT1_97_ga20.dat");
    4544
    4645    MImgCleanStd  clean;
  • trunk/MagicSoft/Mars/macros/MagicHillas.C

    r710 r768  
    3838    // Now setup the tasks and tasklist:
    3939    //
    40     //  1) read in the data from a ct1 ascii file
     40    //  1) read in the data from a magic root file   MReadTree
    4141    //  2) clean the image
    4242    //  3) calculate hillas
    4343    //  4) fill the hillas into the histograms
    4444    //
    45     MReadTree    read("Events", "oscar_protons.root");
    46     read.AddFile("test.root");
     45
     46    //
     47    // The first argument is the tree you want to read.
     48    //   Events:     Cosmic ray events
     49    //   PedEvents:  Pedestal Events
     50    //   CalEvents:  Calibration Events
     51    //
     52    MReadTree read("Events", "data/my_file.root");
     53    // read.AddFile("data/test.root");
    4754
    4855    MCerPhotCalc  ncalc;
  • trunk/MagicSoft/Mars/mbase/MReadTree.cc

    r760 r768  
    6363//
    6464MReadTree::MReadTree(const char *tname, const char *fname,
    65                      const char *name, const char *title)
     65                     const char *name, const char *title) : fNumEntry(0)
    6666{
    6767    *fName  = name  ? name  : "MReadTree";
     
    131131
    132132    //
    133     // set pointer to first event
    134     //
    135     fNumEntry   = 0;
    136 
    137     //
    138133    // output logging information
    139134    //
     
    200195    // check for end of file
    201196    //
    202     if (fNumEntry==fNumEntries)
     197    if (fNumEntry>=fNumEntries)
    203198        return kFALSE;
    204199
     
    272267// this function makes Process() read event number nr next
    273268//
     269// Remark: You can use this function to set the event number from which
     270//         you want to start reading.
     271//
    274272Bool_t MReadTree::SetEventNum(UInt_t nr)
    275273{
Note: See TracChangeset for help on using the changeset viewer.