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
8a30d62f
Commit
8a30d62f
authored
Jul 15, 2021
by
Keerthi Nakkalil
Browse files
Update fullpixelmatrix.C correct convention (col,row)
parent
723ce08b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Time walk correction/fullpixelmatrix.C
View file @
8a30d62f
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
,
...
...
@@ -50,9 +50,8 @@ void createfiles(int r, int c){
istringstream
ss2
(
line_2
);
ss2
>>
TPcol1
>>
TPcol2
>>
TPcol3
>>
tot
>>
tot_var
>>
toa
>>
toa_var
;
if
(
TPcol1
==
10
){
if
(
TPcol1
==
c
){
// cout << " checking for row 125..."<<std::endl;
if
(
TPcol2
==
10
){
TOA
.
push_back
(
toa
);
TOA_VAR
.
push_back
(
toa_var
);
...
...
@@ -88,7 +87,7 @@ void fullpixelmatrix(){
for
(
row
=
0
;
row
<
256
;
row
++
){
for
(
col
=
0
;
col
<
256
;
col
++
){
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