23 int main(
int argc,
char *argv[])
26 std::vector<EPOS_ENTRY> outData;
33 cout <<
"Enter file name" << endl;
41 cerr<<
"USAGE: " << argv[0] <<
" [FILENAME]" << endl;
47 cerr <<
"Epos file load failed. File is :" << filename << endl;
53 for(
size_t ui=0;ui<outData.size();ui++)
55 if(outData[ui].hitMultiplicity > 1)
58 cerr <<
"There are:" << outData.size() <<
"Hits" << endl;
60 cerr <<
"Number of multiples is :" << numHits << endl;
64 unsigned long long int ull=0;
68 cerr <<
"Max pulse value :" << ull << endl;
69 unsigned long long nEmptyPulse=0;
70 unsigned long long nSinglePulse=0;
71 unsigned long long nMultiPulse=0;
73 unsigned long long nMultiIons=0;
74 unsigned long long nSingleIons=0;
81 nEmptyPulse+=v.deltaPulse -1;
88 if(v.deltaPulse >1 && v.hitMultiplicity >1)
96 if(v.hitMultiplicity > 1)
97 nMultiIons+=v.hitMultiplicity;
100 if(v.hitMultiplicity ==1)
105 unsigned long long hits=nSingleIons + nMultiIons;
108 cerr <<
"No-hit fraction (%,pulse basis):" << nEmptyPulse/(float)ull*100 << endl;
109 cerr <<
"Single-hit fraction (%, pulse basis):" << nSinglePulse/(float)ull*100<< endl;
110 cerr <<
"Multi-fraction (%,pulse basis):" << nMultiPulse/(float)ull*100 << endl;
112 cerr <<
"Single hit fraction (%, ion basis) :" << nSingleIons/(float)hits*100 << endl;
113 cerr <<
"Mult-hit fraction (%, ion basis) :" << nMultiIons/(float)hits*100 << endl;
size_t loadEposFile(std::vector< EPOS_ENTRY > &outData, const char *filename)
Load an entire "EPOS" File.
int main(int argc, char *argv[])