#include <G4LEPTSDistribution.hh>
Definition at line 36 of file G4LEPTSDistribution.hh.
G4LEPTSDistribution::G4LEPTSDistribution |
( |
| ) |
|
G4bool G4LEPTSDistribution::IsFileFound |
( |
| ) |
const |
|
inline |
Definition at line 34 of file G4LEPTSDistribution.cc.
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){
75 printf(
"ERROR !!!! Eloss NoBins= %d \n", NoBins);
79 for (eB=0;eB<=NoBins;eB++) {
90 for (eB=0;eB<=NoBins;eB++) {
91 eF[eB] = eF[eB]/F[eB];
92 F[eB] = F[eB]/F[NoBins];
G4bool G4LEPTSDistribution::ReadFile |
( |
FILE * |
fp, |
|
|
G4int |
nData |
|
) |
| |
Definition at line 98 of file G4LEPTSDistribution.cc.
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){
131 printf(
"ERROR !!!! Eloss NoBins= %d \n", NoBins);
135 for (eB=0;eB<=NoBins;eB++) {
146 for (eB=0;eB<=NoBins;eB++) {
147 eF[eB] = eF[eB]/F[eB];
148 F[eB] = F[eB]/F[NoBins];
Definition at line 158 of file G4LEPTSDistribution.cc.
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;
The documentation for this class was generated from the following files: