Changeset 4001 in Sophya


Ignore:
Timestamp:
Jun 14, 2011, 10:30:47 PM (13 years ago)
Author:
ansari
Message:

Suite (2) amelioration prog calcul correlation ADC-CRT, Reza 14/06/2011

File:
1 edited

Legend:

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

    r4000 r4001  
    116116  string inoutpath = arg[1]; 
    117117  string outname = arg[2];
    118   int aids[4]={0,1,-1,1};
     118  int aids[4]={0,1,-1,-1};
    119119  if (narg>3) sscanf(arg[3],"%d,%d,%d,%d",aids,aids+1,aids+2,aids+3);
    120120  vector<int> adcids;
    121121  for(int ii=0;ii<4;ii++)
    122     if((aids[ii]>0)&&(aids[ii]<16))  adcids.push_back(aids[ii]);
     122    if((aids[ii]>=0)&&(aids[ii]<16))  adcids.push_back(aids[ii]);
    123123  int imin=0;
    124124  int imax=0;
     
    134134  cout <<  " InOutPath= " << inoutpath << " ADCIds: " ;
    135135  for(size_t ii=0; ii<adcids.size(); ii++) cout << adcids[ii] << " , ";
    136   cout << " (NbADC=" << adcids.size() << ") OutFileName=" << outname << endl;
    137   cout << " IMin,Max,Step="    << imin << "," << imax << "," << istep
    138        << "Frequency num range JF=" << jf1 << "," << jf2 << "," << nfreq << "  ------- " << endl;
     136  cout << " (NbADC=" << adcids.size() << ") OutFileName= " << outname
     137       << " IMin,Max,Step="    << imin << "," << imax << "," << istep << endl;
     138  //       << "Frequency num range JF=" << jf1 << "," << jf2 << "," << nfreq << "  ------- " << endl;
    139139  int rc=0;
    140140  if (fillhis) rc = ADCFiles2Histo(inoutpath, adcids, outname, imin, imax, istep);
     
    150150#define ADCNREAD 8192
    151151
    152 static int PRTMODULO = 250;
     152static int PRTMODULO = 1000;
    153153
    154154// Pour traitement (calcul FFT et visibilites (ProcA) 1 fibre, 2 voies RAW)
Note: See TracChangeset for help on using the changeset viewer.