Ignore:
Timestamp:
Jun 18, 2002, 4:50:12 PM (23 years ago)
Author:
ansari
Message:

Ajout flag implicit SN ds toistat.cc - reza 18/6/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/TestPipes/toistat.cc

    r2058 r2059  
    4343  else {
    4444    cout << " toistat : produce a stat NTuple (mean,sigma) from a TOI" << endl;
    45     cout << "\n Usage : toistat [-intoi toiname] [-start snb] [-end sne] \n"
     45    cout << "\n Usage : toistat [-intoi toiname] \n "
     46         << "         [-start snb] [-end sne] [-snimplicit] \n"
    4647         << "         [-wtoi sz] [-wclean wsz,nbw] [-range min,max] [-cleannsig nsig] \n"
    4748         << "         [-sepflg sepFlagFile] [-outppf] [-noprstat] [-useseqbuff] \n"
     
    4950         << "   -start snb : sets the start sample num \n"
    5051         << "   -end sne : sets the end sample num \n"
     52         << "   -snimplicit : sampleNum are implicit in fits files (def=no) \n"
    5153         << "   -range min,max : sets the acceptable range for intoi \n"
    5254         << "              default= -16000,16000\n"
     
    7577  bool fgsegmented = true;
    7678  bool fgoutppf = false;
     79  bool snimplicit = false;
    7780
    7881  int dbglev = 0;
     
    114117      iend = atoi(arg[ia+1]); ia++;
    115118    }   
     119    else if (strcmp(arg[ia],"-snimplicit") == 0)  snimplicit = true;
    116120    else if (strcmp(arg[ia],"-wtoi") == 0) {
    117121      if (ia == narg-1) Usage(true); 
     
    176180    cout << "> Creating FITSTOIReader object - InFile=" << infile << endl;
    177181    FITSTOIReader r(infile);
     182    if (snimplicit) {
     183      cout << " Setting Implicit SN flag for reader: r.setImplicitSN()" << endl;
     184      r.setImplicitSN();
     185    }
    178186    if (sepflg) {
    179187      cout << " Setting separate flag file for InTOI_bolo File=" << sepflagfile
Note: See TracChangeset for help on using the changeset viewer.