Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Keerthi Nakkalil
gain_measurement
Commits
2a349a89
Commit
2a349a89
authored
Jul 15, 2021
by
Keerthi Nakkalil
Browse files
Update toa_calib.C ( correct convention = (col,row) . (row,col) is incorrect
parent
a77bd0d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Time walk correction/toa_calib.C
View file @
2a349a89
void
createfiles
(
int
r
,
int
c
){
void
createfiles
(
int
c
,
int
r
){
std
::
ifstream
Energy_file
(
"Energy_table.dat"
);
std
::
vector
<
double
>
Energy_e
=
{
200
,
300
,
400
,
500
,
600
,
700
,
800
,
900
,
1000
,
1100
,
1200
,
...
...
@@ -41,9 +41,9 @@ void createfiles(int r, int c){
istringstream
ss2
(
line_2
);
ss2
>>
TPcol1
>>
TPcol2
>>
TPcol3
>>
tot
>>
tot_var
>>
toa
[
ctr_TOA
]
>>
toa_var
[
ctr_TOA
];
if
(
TPcol1
==
125
){
if
(
TPcol1
==
c
){
// cout << " checking for row 125..."<<std::endl;
if
(
TPcol2
==
125
){
if
(
TPcol2
==
r
){
// cout << " Checking for row 125 and col 125 ..."<<std::endl;
// std::cout << "Elements " << toa[ctr_TOA] << "\t" << toa_var[ctr_TOA] << std::endl;
ctr_TOA
++
;
...
...
@@ -73,7 +73,7 @@ void createfiles(int r, int c){
void
toa_calib
(){
int
row
=
125
,
col
=
125
;
createfiles
(
row
,
col
);
createfiles
(
col
,
row
);
std
::
cout
<<
" Done ..."
<<
std
::
endl
;
}
...
...
Write
Preview
Supports
Markdown
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