Mixed Data Coincidence Analysis Software 1.0
A program to analyze files produced by the EventMixer software.
GammaLine.hh
Go to the documentation of this file.
00001 #include <vector>
00002 #include <utility>
00003 #include <iostream>
00004 #include <math.h>
00005 using namespace std;
00006 
00007 #include "EventHit.hh"
00008 
00019 #ifndef GAMMALINE_HH
00020 #define GAMMALINE_HH //!<Inclusion guard.
00021 class GammaLine
00022 {
00023 public:
00024   GammaLine(float tol 
00025             ,float bgTol 
00026             );
00027 
00028   void addCoincidenceIfValid(pair<EventHit*, EventHit*> toAdd 
00029                              ); 
00030 
00031   float getBackgroundMean(); 
00032 
00033   float getBackgroundSTD(); 
00034 
00035   float gamma; 
00036   float probability; 
00037   vector<pair<EventHit*, EventHit*> > coincidences; 
00038   
00039 private:
00040   float AbsVal(float toAbs 
00041                ); 
00042   void addBackground(float bg
00043                      );
00044 
00045   float standardDeviation(vector<float> toDeviate 
00046                            );
00047   float meanValue(vector<float> toMean //to mean
00048                   ); 
00049   float sum(vector<float> toSum 
00050             ); 
00051 
00052   float tolerance; 
00053   float bgTolerance; 
00054   vector<float> background; 
00055 };
00056 #endif
00057 
 All Classes Files Functions Variables Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark