![]() |
Mixed Data Coincidence Analysis Software 1.0
A program to analyze files produced by the EventMixer software.
|
00001 00009 using namespace std; 00010 00011 00012 #include <sstream> 00013 #include <string> 00014 #include <stdlib.h> 00015 #include <stdio.h> 00016 #include <vector> 00017 #include <string> 00018 #include <iostream> 00019 #include <utility> 00020 #include <algorithm> 00021 #include <list> 00022 #include <math.h> 00023 00024 #include "EventHit.hh" 00025 #include "GammaEnergyChart.hh" 00026 #include "ScorePair.hh" 00027 #include "ElementLookupTable.hh" 00028 00029 using namespace std; 00030 00031 #ifndef GAMMAIDENTIFIER_HH 00032 #define GAMMAIDENTIFIER_HH //!<Inclusion guard 00033 00034 class GammaIdentifier 00035 { 00036 public: 00037 GammaIdentifier(GammaEnergyChart * toUse, 00038 double tol, 00039 float minGamma, 00040 float maxGamma 00041 , float bgTol = 0.05 00042 , bool forceCorr = false 00043 ); 00044 ~GammaIdentifier(); 00045 00046 void addCoincidence(pair<EventHit*, EventHit*> toAdd 00047 ); 00048 00049 list<ScorePair> doSimpleScoring(); 00050 00051 list<ScorePair> doProbabilisticScoring(); 00052 00053 string getMATLABstring(int figure); 00054 00055 string getPeakString(); 00056 00057 private: 00058 GammaEnergyChart * myChart; 00059 double tolerance; 00060 double bgTolerance; 00061 float minGammaEnergy; 00062 float maxGammaEnergy; 00063 bool forceCorrect; 00064 list<pair<EventHit*, EventHit*> > coincidences; 00065 ElementLookupTable * myTable; 00066 }; 00067 00068 #endif