Changeset 19704 for trunk/Mars
- Timestamp:
- 10/01/19 15:27:35 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/hawc/callisto.C
r19357 r19704 35 35 ******************************************************************/ 36 36 int callisto(const char *datafile, const char *drsfile, 37 const char *drstime=0, const char *delays=0,38 37 const char *outpath=".") 39 38 { 39 // ====================================================== 40 41 const char *drstime = 0; 42 const char *delays = 0; 43 40 44 // ====================================================== 41 45 … … 276 280 // Convert the name of the input file to the name of the output file 277 281 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); 281 288 282 289 // Instantitate the writing task and setup the writing … … 335 342 // Check if the output file is still accessible from root 336 343 TFile *ofile = (TFile*)gROOT->GetListOfFiles()->FindObject(fname); 344 cout << ofile << endl; 337 345 if (!ofile || !ofile->IsOpen() || ofile->IsZombie()) 338 346 {
Note:
See TracChangeset
for help on using the changeset viewer.