Changeset 17000 for trunk/FACT++/src


Ignore:
Timestamp:
08/12/13 13:41:01 (11 years ago)
Author:
lyard
Message:
added option to load appropriate table among several ones in a single file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fitsdump.cc

    r16964 r17000  
    8686
    8787public:
    88     FitsDumper(const string &fname);
     88    FitsDumper(const string &fname, const string &tablename);
    8989
    9090    ///Configures the fitsLoader from the config file and/or command arguments.
     
    9898//!        the ostream where to redirect the outputs
    9999//
    100 FitsDumper::FitsDumper(const string &fname) : factfits(fname, "Events"), fFilename(fname)
     100FitsDumper::FitsDumper(const string &fname, const string &tablename) : factfits(fname, tablename), fFilename(fname)
    101101{
    102102}
     
    923923        ("first",       var<size_t>(size_t(0)), "First number of row to read")
    924924        ("limit",       var<size_t>(size_t(0)), "Limit for the maximum number of rows to read (0=unlimited)")
     925        ("tablename,t", var<string>(""),        "Name of the table to open. If not specified, first binary table is opened")
    925926#ifdef HAVE_ROOT
    926927        ("root,r",      po_switch(),            "Enable root mode")
     
    952953    }
    953954
    954     FitsDumper loader(conf.Get<string>("fitsfile"));
     955    FitsDumper loader(conf.Get<string>("fitsfile"), conf.Get<string>("tablename"));
    955956    if (!loader)
    956957    {
Note: See TracChangeset for help on using the changeset viewer.