Changeset 3883 in Sophya for trunk/AddOn/TAcq/branap.cc


Ignore:
Timestamp:
Sep 23, 2010, 7:59:29 PM (15 years ago)
Author:
ansari
Message:

1/ Correction bug de lecture ds BRMultiFitsReader et EthernetReader lorsque lecture avec SameFrameCounter etait demande
2/ Amelioration des impressions ds ces deux classes et ajout possibilite de controle du flag "SameFC" avec les classes de parametres BRParList et BRAnaParam
3/ Nouveaux datacard @ethrforcesamefc et @prtlev pour acquisition

Reza, 23/09/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/branap.cc

    r3872 r3883  
    2020  imin_=imax_=0;
    2121  istep_=1;
     22  rdsamefc_=true;   // read paquets with same frame counter
    2223  freqmin_=freqmax_=0;
    2324  nbinfreq_=1; 
     
    2728  fgdatafft_=false;  fgsinglechannel_=false;
    2829  prtlevel_=0;
     30  prtmodulo_=50000;
    2931  nbcalgrp_=1;
    3032  nthreads_=1;
     
    6971      ka+=2;
    7072    }
    71     else if (strcmp(arg[ka],"-prtlev")==0) {
    72       prtlevel_=atoi(arg[ka+1]);
     73    else if (strcmp(arg[ka],"-prt")==0) {
     74      sscanf(arg[ka+1],"%d,%ld",&prtlevel_,&prtmodulo_);
    7375      ka+=2;
    7476    }
     
    8082      nbcalgrp_=atoi(arg[ka+1]);
    8183      ka+=2;
     84    }
     85    else if (strcmp(arg[ka],"-nosfc")==0) {
     86      rdsamefc_=false;
     87      ka++;
    8288    }
    8389    else if (strcmp(arg[ka],"-in")==0) {
     
    120126  cout << " Usage:  prgname [-act ACT] [-out OutPath] [-nmean NMean] [-zones NZones,nPaqinZone] \n"
    121127       << "                 [-nbloc NBloc] [-freq NumFreqMin,NumFreqMax,NBinFreq] \n"
    122        << "                 [-prtlev lev] [-nvcal n] [-nthr n] \n"
     128       << "                 [-prt lev,modulo] [-nvcal n] [-nthr n] [-nosfc] \n"
    123129       << "         -in Imin,Imax,Istep InPath FiberList [InPath2 FiberList2 InPath3 FiberList3 ...] \n" << endl;
    124130  if (fgshort) {
     
    135141       << " -zones NZones,NbPaqinZone : Number of Zones and number of paquets in one zone \n"
    136142       << " -freq NumFreqMin,NumFreqMax,NBinFreq : Frequency zone and number of bins \n"
    137        << " -prtlev lev : Print level (0,1,2...) \n"
     143       << " -prt lev,modulo : Print level (0,1,2...) and print counter modulo (10000, 50000 ...) \n"
    138144       << " -nvcal n : number of BRVisibilityCalculator objects running in parallel in BRVisCalcGroup  (default=1) \n"
    139145       << " -nthr n : number of threads for parallel execution in BRVisibilityCalculator (default=1) \n"
     146       << " -nosfc : Don't force reading with SAME FrameCounter \n"
    140147       << " -in : input files/directory definition : \n"
    141148       << "       Imin,Imax,Istep: fits files signalII.fits Imin<=II<=Imax Istep=increment \n"
     
    160167  for(size_t k=0; k< dirlist_.size(); k++)
    161168    cout << k+1 << " :  " << dirlist_[k] << endl;
    162   cout << " IMin= " << imin_ << " IMax= " << imax_ << " IStep= " << istep_ << endl;
     169  cout << " IMin= " << imin_ << " IMax= " << imax_ << " IStep= " << istep_
     170       << ((rdsamefc_)?" SameFrameCounter read mode":" AllOKPaquets read mode ") << endl;
    163171  cout << " OutPath= " << outpath_ << endl;
    164172  cout << " Action=" << action_ << "  NMean=" << nmean_ << " NBloc=" << nbloc_ << endl;
    165173  cout << " FreqMin= " << freqmin_ << " FreqMax= " << freqmax_ << " NBinFreq= " << nbinfreq_ << endl;
    166174  cout << " PaqSize=" << paqsize_ << "  -  NZones=" << nzones_ << " NPaqZone=" << npaqinzone_
    167        << " PrtLevel=" << prtlevel_ << endl;
     175       << " PrtLevel=" << prtlevel_ << " PrtCntModulo=" <<  prtmodulo_ << endl;
    168176  cout << " AcqMode: " << ((fgdatafft_)?" Data_FFT " : " Data_Raw " )
    169177       << ((fgsinglechannel_)?" SingleChannel " : " TwoChannels " ) << endl;
Note: See TracChangeset for help on using the changeset viewer.