Commit 2a349a89 authored by Keerthi Nakkalil's avatar Keerthi Nakkalil
Browse files

Update toa_calib.C ( correct convention = (col,row) . (row,col) is incorrect

parent a77bd0d5
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;
}
......
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