37 float float_data1,float_data2;
41 for (eB=0;eB<10000;eB++){
48 if ((fp=fopen(fileName.c_str(),
"r"))==NULL){
60 out = fscanf(fp,
"%f \n",&float_data1);
61 out2 = fscanf(fp,
"%f \n",&float_data2);
62 if (out==1 && out2==1){
79 for (eB=0;eB<=
NoBins;eB++) {
90 for (eB=0;eB<=
NoBins;eB++) {
91 eF[eB] =
eF[eB]/
F[eB];
102 float float_data1,float_data2;
105 for (eB=0;eB<10000;eB++){
116 for(
G4int id = 0;
id < nData;
id++ ){
117 out = fscanf(fp,
"%f \n",&float_data1);
118 out2 = fscanf(fp,
"%f \n",&float_data2);
119 if (out==1 && out2==1){
135 for (eB=0;eB<=
NoBins;eB++) {
146 for (eB=0;eB<=
NoBins;eB++) {
147 eF[eB] =
eF[eB]/
F[eB];
161 if( eMin > eMax)
return 0.0;
163 G4int i,j,k=0, iMin, iMax;
168 if(
E[k] < eMax ) i=k;
176 if(
E[k] < eMin ) i=k;
192 if( Sampled < eMin) Sampled = eMin;
193 else if( Sampled > eMax) Sampled = eMax;
G4double Sample(G4double, G4double)
void ReadFile(G4String fileName)
printf("%d Experimental points found\n", nlines)