Ignore:
Timestamp:
11/14/11 20:06:38 (13 years ago)
Author:
neise
Message:
 works now with the current DrsCalibration.C and openXXXFits.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/fbsl.C

    r12517 r12518  
    9292        const char *datafilename                = "path-to-datafile.fits.gz",
    9393        const char *drsfilename = "path-to-calibfile.drs.fits.gz",
    94         const char *TextOutFileName = "./appendfile.txt",
    95         const char *RootOutFileName = "./datafile.root",
    9694        int firstevent                  = 0,
    9795        int nevents                     = -1,
    9896        int firstpixel          = 0,
    9997        int npixel                              = -1,
    100         int spikeDebug = 0,
    101         int searchSinglesPeaks = 0,
     98        const char *TextOutFileName = "",
     99        const char *RootOutFileName = "",
    102100        bool produceGraphic = true
    103101){
     
    174172    FILE *fp;
    175173    TString fName;
     174
    176175    fName = TextOutFileName;
    177 
     176        if (fName.Length() != 0){
     177                 cout << "saving text to " << TextOutFileName << endl;
     178
     179       
    178180    fp = fopen(fName, "a+");
    179181    fprintf( fp, "FILE: %s\n", datafilename );
     
    197199
    198200    fclose( fp );
    199 
    200 
     201        }
     202        if (RootOutFileName != ""){
     203                cout << "saving histograms to " << RootOutFileName << endl;
    201204    SaveHistograms( RootOutFileName );
     205        }
    202206                if (produceGraphic){
    203207        TCanvas * cMeanBsl = new TCanvas();
Note: See TracChangeset for help on using the changeset viewer.