Changeset 14241


Ignore:
Timestamp:
06/27/12 11:40:26 (13 years ago)
Author:
Daniela Dorner
Message:
added parameters to give in command line runfile, drsfile and outputfilename
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/marsmacros/singlepe.C

    r14231 r14241  
    417417                             Int_t maxbin,  double fwhm, Double_t gain );
    418418
    419 int singlepe()
     419int singlepe(const char *runfile, const char *drsfile, const char *outfile)
    420420{
    421421    // ======================================================
    422422
    423     const char *drsfile = "/fact/raw/2012/05/18/20120518_012.drs.fits.gz";
     423    //const char *drsfile = "/fact/raw/2012/05/18/20120518_012.drs.fits.gz";
    424424
    425425    MDirIter iter;
    426      iter.AddDirectory("/fact/raw/2012/05/18", "20120518_005.fits.gz");
     426    //iter.AddDirectory("/fact/raw/2012/05/18", "20120518_005.fits.gz");
     427    iter.AddDirectory(gSystem->DirName(runfile), gSystem->BaseName(runfile));
    427428
    428429    // ======================================================
     
    10261027    gPad->SetLogy();
    10271028    hSep.DrawCopy();
    1028      */
     1029    */
     1030
     1031    d->SaveAs(outfile);
    10291032    return 0;
    10301033}
Note: See TracChangeset for help on using the changeset viewer.