Changeset 17736 for trunk/Mars/fact


Ignore:
Timestamp:
04/29/14 19:49:36 (11 years ago)
Author:
tbretz
Message:
Do not require MTime... callisto allows now to use a root file as input.
Location:
trunk/Mars/fact/analysis/mc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/analysis/mc/callisto.C

    r17699 r17736  
    3636#include "MContinue.h"
    3737#include "MRawFitsRead.h"
     38#include "MReadMarsFile.h"
    3839#include "MEvtLoop.h"
    3940#include "MParList.h"
     
    530531    // ------------------ Setup the tasks ---------------
    531532
    532     MRawFitsRead read5;
    533     read5.LoadMap(map);
    534     read5.AddFile(datfile);
     533    MRawFitsRead read5a;
     534    MReadMarsFile read5b("Events");
     535    read5a.LoadMap(map);
     536    read5a.AddFile(datfile);
     537    read5b.DisableAutoScheme();
     538    read5b.AddFile(datfile);
     539
     540    MRead &read5 = datfile.EndsWith(".root") ? static_cast<MRead&>(read5b) : static_cast<MRead&>(read5a);
    535541
    536542    MFillH fill5a(&hrate);
     
    649655    write5.AddContainer("MPointingPos",        "Events", kFALSE);
    650656    write5.AddContainer("MSignalCam",          "Events");
    651     write5.AddContainer("MTime",               "Events");
     657    write5.AddContainer("MTime",               "Events", kFALSE);
    652658    write5.AddContainer("MRawEvtHeader",       "Events");
    653659    //write.AddContainer("MTriggerPattern", "Events");
  • trunk/Mars/fact/analysis/mc/star.C

    r17699 r17736  
    322322
    323323    MWriteRootFile write(outfile, "RECREATE", "Image parameters", 2);
    324     write.AddContainer("MTime",               "Events");
     324    write.AddContainer("MTime",               "Events", kFALSE);
    325325    write.AddContainer("MHillas",             "Events");
    326326    write.AddContainer("MHillasExt",          "Events");
Note: See TracChangeset for help on using the changeset viewer.