Commit 218bf0d8 authored by Reza  ANSARI's avatar Reza ANSARI
Browse files

Amelioration print de filt_blind.cc , Reza 22/07/2018

parent 15b6e4a0
......@@ -195,7 +195,7 @@ int main(int narg, const char* arg[])
//reads next visibility matrix window
fgok = wreader.Shift();
cout << " read "<< wreader.getNbReads()<<" ok "<< fgok<<":"<<endl;
//DBG cout << " read "<< wreader.getNbReads()<<" ok "<< fgok<<":"<<endl;
if (!fgok) break;
for (size_t k=0 ; k<wreader.getWindowSize() ; k++){
......@@ -212,7 +212,7 @@ int main(int narg, const char* arg[])
vtimes.push_back(wreader.getAverageTimeTU());
med_chan.push_back(samples(index(samples.Size()/2)));
cnt++;
if (cnt%5 == 0) cout << " Treated "<<cnt << " out of "<< wreader.getTotalNbWindows() << endl;
if (cnt%params.prtmodulo_ == 0) cout << " filt_blind/Info: processed "<<cnt<<" out of "<< wreader.getTotalNbWindows()<<endl;
}
cout<<" filt_blind : saving results to PPF file "<<outfile<<endl;
cout<<" filt_blind : "<<vtimes.size()<<" samples"<<endl;
......@@ -221,9 +221,9 @@ int main(int narg, const char* arg[])
po << PPFNameTag("Filt_Values") << med_chan;
TVector <double> tvtimes(vtimes.size());
for (size_t k=0 ; k< vtimes.size() ; k++){
for (size_t k=0 ; k< vtimes.size() ; k++) {
tvtimes(k) = vtimes[k].ToDays();
}
}
TVector <double> tvmed_chan(med_chan);
po << PPFNameTag("TVFilt_Times") << tvtimes;
po << PPFNameTag("TVFilt_Values") << tvmed_chan;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment