_Hello dear
I have .txt file contains one column of data and I want the C++ part of ROOT macro gives me a value for specific ith .
if (i == 6);
ifstream myfile(“factors.txt”);
sigma[i]=0.;
myfile >> sigma[i] >> endl;
cout << sigma [i] << endl;
final= voltage * sigma[i];
factors.txt contains:
0.445
0.034
0.56
0.44
0.23
0.12
0.12
0.70
…
…
Thank you in advance
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided