Commit 55053712 authored by Jean-Eric Campagne's avatar Jean-Eric Campagne
Browse files

change meadian filtering window, thresholds to detect pathological point in TransformFitData

parent f65f9ea7
......@@ -217,7 +217,7 @@ void TransformFitData(GeneralFitData& data, std::string tag=""){
vector<bool>nonvalidPts(x.size(),false);
for(int i=1;i<dy.size()-1;i++){
if(fabs(dy[i])>minval*1.2 && fabs(dy[i])<0.8*maxval){
if(fabs(dy[i])>minval*1.01 && fabs(dy[i])<0.99*maxval){
cout << "Patho: i,x,y,dy[i-1],dy[i],dy[i+1]: "
<< i << ", "
<< x[i] << ", "
......@@ -284,7 +284,7 @@ void TransformFitData(GeneralFitData& data, std::string tag=""){
vector<sa_size_t> idy;
for(sa_size_t i=0;i<tdy.Size(); i++){
if(fabs(tdy(i))>0.9*maxval) idy.push_back(i);
if(fabs(tdy(i))>0.5*maxval) idy.push_back(i);
}
if(idy.empty())
throw SzMismatchError("TransformFitData: FATAL: idy vide");
......@@ -566,7 +566,7 @@ void estimePhase(){
//--JEC 31/5/18 1230 freq bins (for 150MHz): reduction by a factor 10 of the nber of bins
// vector<r_8> x(freq.ConvertTostdvec());
int NpackBin = 10;
int NpackBin = 5;
int NnewBins = freq.Size()/NpackBin;
cout << "NpackBin " << NpackBin << "\n"
<< "NnewBins " << NnewBins << "\n";
......
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