Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
BAORadio
AnaPAON4
Commits
55053712
Commit
55053712
authored
Jun 05, 2018
by
Jean-Eric Campagne
Browse files
change meadian filtering window, thresholds to detect pathological point in TransformFitData
parent
f65f9ea7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AnaFringes/postFringeV3.cc
AnaFringes/postFringeV3.cc
+3
-3
No files found.
AnaFringes/postFringeV3.cc
View file @
55053712
...
...
@@ -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
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment