Changeset 19728


Ignore:
Timestamp:
Oct 5, 2019, 8:53:12 PM (13 days ago)
Author:
tbretz
Message:
Allow to configure zfits compression.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/ceres.cc

    r19703 r19728  
    55
    66#include <TVector2.h>
     7
     8#include "zofits.h"
    79
    810#include "MArray.h"
     
    7880    gLog << "   --run-number=#            Optionally set the run number to simulate" << endl;
    7981    gLog << "   --fits                    Write FITS output files instead of root files." << endl;
     82    gLog << "   --zfits-rows              Number of rows compressed into one tile (see zofit.h)." << endl;
     83    gLog << "   --zfits-threads           Number of threads for compression (see zofits.h)." << endl;
    8084    gLog << "   --list                    The specified .txt file contains a file list" << endl;
    8185    gLog << "                              (see MDirIter::ReadFile)." << endl << endl;
     
    181185    const Bool_t  kFileList   = arg.HasOnlyAndRemove("--list");
    182186
     187    // This is here because it is global
     188    zofits::DefaultNumRowsPerTile(arg.GetIntAndRemove("--zfits-rows", 100));
     189    zofits::DefaultNumThreads(arg.GetIntAndRemove("--zfits-threads", 0));
     190
    183191    Int_t opmode = -1;
    184192    if (TString("data").BeginsWith(kOpMode, TString::kIgnoreCase))
Note: See TracChangeset for help on using the changeset viewer.