Changeset 19704 for trunk/Mars


Ignore:
Timestamp:
10/01/19 15:27:35 (5 years ago)
Author:
tbretz
Message:
Minor fixed and simplification.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/hawc/callisto.C

    r19357 r19704  
    3535******************************************************************/
    3636int callisto(const char *datafile, const char *drsfile,
    37              const char *drstime=0, const char *delays=0,
    3837             const char *outpath=".")
    3938{
     39    // ======================================================
     40
     41    const char *drstime = 0;
     42    const char *delays  = 0;
     43
    4044    // ======================================================
    4145
     
    276280    // Convert the name of the input file to the name of the output file
    277281    TString fname = gSystem->ConcatFileName(outpath, gSystem->BaseName(datafile));
    278     fname.ReplaceAll(".fits.gz", "_C.root");
    279     fname.ReplaceAll(".fits.fz", "_C.root");
    280     fname.ReplaceAll(".fits",    "_C.root");
     282    fname.ReplaceAll(".fits.gz", ".root");
     283    fname.ReplaceAll(".fits.fz", ".root");
     284    fname.ReplaceAll(".fits",    ".root");
     285    fname.ReplaceAll("_D_",      "_C_");
     286
     287    gSystem->ExpandPathName(fname);
    281288
    282289    // Instantitate the writing task and setup the writing
     
    335342    // Check if the output file is still accessible from root
    336343    TFile *ofile = (TFile*)gROOT->GetListOfFiles()->FindObject(fname);
     344    cout << ofile << endl;
    337345    if (!ofile || !ofile->IsOpen() || ofile->IsZombie())
    338346    {
Note: See TracChangeset for help on using the changeset viewer.