Changeset 895


Ignore:
Timestamp:
07/23/01 14:44:07 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r894 r895  
    1515       We cannot use GetBranch()->SetAddress() we have to use
    1616       SetBranchAddress.
     17       
     18   * macros/MagicHillas.C:
     19     - changed to new stilish histogram fillers.
    1720
    1821
  • trunk/MagicSoft/Mars/macros/MagicHillas.C

    r769 r895  
    5151    //   CalEvents:  Calibration Events
    5252    //
    53     MReadTree read("Events", "data/my_file.root");
    54     // read.AddFile("data/test.root");
     53    MReadTree read("Events", "data/cer000020.root");
     54    // read.AddFile("data/cer000019.root");
    5555
    56     MCerPhotCalc  ncalc;
    57     MImgCleanStd  clean;
    58     MHillasCalc   hcalc;
    59     MFillHHillas  hfill;
    60     MFillHStarMap sfill;
     56    MCerPhotCalc    ncalc;
     57    MImgCleanStd    clean;
     58    MHillasCalc     hcalc;
     59    MFillH          hfill("MHillas", "MHHillas");
     60    MFillHStarMap   sfill("MHillas", "MHStarMap");
     61    MWriteRootFile write("hillas.root");
     62    write.AddContainer("MHillas");
     63    write.AddContainer("MHHillas");
     64    write.AddContainer(smap);
    6165
    6266    tlist.AddToList(&read);
     
    6670    tlist.AddToList(&hfill);
    6771    tlist.AddToList(&sfill);
     72    tlist.AddToList(&write);
    6873
    6974    //
     
    7681    // Execute your analysis
    7782    //
    78     evtloop.Eventloop();
     83    if (!evtloop.Eventloop())
     84        return;
    7985
    8086    //
  • trunk/MagicSoft/Mars/mbase/MReadTree.cc

    r894 r895  
    108108//
    109109//  If you want to read the given tree over several files you must add
    110 //  the files here before PreProcess is called. Be carfull: This does
    111 //  only work if the trees in the files containing the same branches yet.
     110//  the files here before PreProcess is called. Be careful: If the tree
     111//  doesn't have the same contents (branches) it may confuse your
     112//  program (trees which are are not existing in later files are not read
     113//  anymore, tree wich are not existing in the first file are never read)
    112114//
    113115/*Int_t*/ void MReadTree::AddFile(const char *fname)
     
    175177            continue;
    176178
    177 
    178179        //
    179180        // Create a pointer to the pointer to the object in which the
     
    202203        // the actual branch should be stored - enable branch.
    203204        //
    204         // FIXME: is it correct, that the pointer is deleted immediatly afterwards?
    205205        fChain->SetBranchAddress(name, pcont);
    206206    }
Note: See TracChangeset for help on using the changeset viewer.