Changeset 12518 for fact/tools
- Timestamp:
- 11/14/11 20:06:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/fbsl.C
r12517 r12518 92 92 const char *datafilename = "path-to-datafile.fits.gz", 93 93 const char *drsfilename = "path-to-calibfile.drs.fits.gz", 94 const char *TextOutFileName = "./appendfile.txt",95 const char *RootOutFileName = "./datafile.root",96 94 int firstevent = 0, 97 95 int nevents = -1, 98 96 int firstpixel = 0, 99 97 int npixel = -1, 100 int spikeDebug = 0,101 int searchSinglesPeaks = 0,98 const char *TextOutFileName = "", 99 const char *RootOutFileName = "", 102 100 bool produceGraphic = true 103 101 ){ … … 174 172 FILE *fp; 175 173 TString fName; 174 176 175 fName = TextOutFileName; 177 176 if (fName.Length() != 0){ 177 cout << "saving text to " << TextOutFileName << endl; 178 179 178 180 fp = fopen(fName, "a+"); 179 181 fprintf( fp, "FILE: %s\n", datafilename ); … … 197 199 198 200 fclose( fp ); 199 200 201 } 202 if (RootOutFileName != ""){ 203 cout << "saving histograms to " << RootOutFileName << endl; 201 204 SaveHistograms( RootOutFileName ); 205 } 202 206 if (produceGraphic){ 203 207 TCanvas * cMeanBsl = new TCanvas();
Note:
See TracChangeset
for help on using the changeset viewer.