Commit 8a30d62f authored by Keerthi Nakkalil's avatar Keerthi Nakkalil
Browse files

Update fullpixelmatrix.C correct convention (col,row)

parent 723ce08b
void createfiles(int r, int c){ void createfiles(int c, int r){
std::ifstream Energy_file("Energy_table.dat"); std::ifstream Energy_file("Energy_table.dat");
std::vector<double>Energy_e = {200,300,400,500,600,700,800,900,1000,1100,1200, 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){ ...@@ -50,9 +50,8 @@ void createfiles(int r, int c){
istringstream ss2(line_2); istringstream ss2(line_2);
ss2 >> TPcol1 >> TPcol2 >> TPcol3 >> tot >> tot_var >> toa >> toa_var; ss2 >> TPcol1 >> TPcol2 >> TPcol3 >> tot >> tot_var >> toa >> toa_var;
if (TPcol1==10){ if (TPcol1==c){
// cout << " checking for row 125..."<<std::endl; // cout << " checking for row 125..."<<std::endl;
if (TPcol2==10){
TOA.push_back(toa); TOA.push_back(toa);
TOA_VAR.push_back(toa_var); TOA_VAR.push_back(toa_var);
...@@ -88,7 +87,7 @@ void fullpixelmatrix(){ ...@@ -88,7 +87,7 @@ void fullpixelmatrix(){
for(row =0; row <256; row ++){ for(row =0; row <256; row ++){
for(col =0; col <256; col++){ for(col =0; col <256; col++){
createfiles(row,col); createfiles(col,row);
} }
} }
std::cout << " Done ..." <<std ::endl; std::cout << " Done ..." <<std ::endl;
......
Supports Markdown
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