Skip to content
Snippets Groups Projects
Commit cb6a38c2 authored by Carlos Yero's avatar Carlos Yero
Browse files

-removed unnecessary lines

parent af27b5c3
No related branches found
No related tags found
No related merge requests found
...@@ -69,15 +69,16 @@ Double_t **t0 = new Double_t*[NPLANES]; ...@@ -69,15 +69,16 @@ Double_t **t0 = new Double_t*[NPLANES];
// cout << line << endl; // cout << line << endl;
if (line[0]!='#') if (line[0]!='#')
{ {
if(!input.good()) {break;} // if(!input.good()) {break;}
sscanf(line.c_str(), "%d %lf", &nwire, &nt0); sscanf(line.c_str(), "%d %lf", &nwire, &nt0);
if(sw>0) {
// if(sw>0) {
t0[ip][nwire-1] = nt0;
t0[ip][nwire-1] = nt0;
}
sw++; // }
// sw++;
} }
...@@ -111,18 +112,18 @@ Double_t **t0 = new Double_t*[NPLANES]; ...@@ -111,18 +112,18 @@ Double_t **t0 = new Double_t*[NPLANES];
for (sw=0; sw<fNWires[ip]; sw++) { for (sw=0; sw<fNWires[ip]; sw++) {
out << setprecision(3) << t0[ip][sw] << endl; out << setprecision(6) << t0[ip][sw] << endl;
if (sw <= 10) if (sw <= 10)
{ {
ofs << setprecision(3) << t0[ip][sw] << fixed << ","; ofs << setprecision(6) << t0[ip][sw] << fixed << ",";
} }
else if (sw>10 && sw <(fNWires[ip]-1)) else if (sw>10 && sw <(fNWires[ip]-1))
{ {
ofs << setprecision(3) << t0[ip][sw] << ((sw+1) % 16 ? ", " : "\n") << fixed; ofs << setprecision(6) << t0[ip][sw] << ((sw+1) % 16 ? ", " : "\n") << fixed;
} }
else if (sw==78 || sw == 106) { else if (sw==78 || sw == 106) {
ofs << setprecision(3) << t0[ip][sw] << fixed << endl; ofs << setprecision(6) << t0[ip][sw] << fixed << endl;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment