![]() |
Mixed Data Coincidence Analysis Software 1.0
A program to analyze files produced by the EventMixer software.
|
00001 00011 #include <stdlib.h> 00012 #include <stdio.h> 00013 #include <vector> 00014 #include <string.h> 00015 #include <iostream> 00016 00017 #include "EventHit.hh" 00018 00019 using namespace std; 00020 00021 00022 #ifndef FILEEVENTPARSER_H 00023 #define FILEEVENTPARSER_H //!<Inclusion guard. 00024 00025 class FileEventParser 00026 { 00027 public: 00028 FileEventParser(char * filename, 00029 int nTubes = 40, 00030 float detEpsilon = 1E-2, 00031 float dRatio = 1E2); 00032 ~FileEventParser(); 00033 EventHit * getNextEventHit(); 00034 bool hasMoreEvents(); 00035 private: 00036 FILE * myFileStream; 00037 bool fileEmpty; 00038 int numberOfTubes; 00039 float detectorEpsilon; 00040 float dominateRatio; 00041 } 00042 ; 00043 #endif