![]() |
EventMixer 1.0
An event mixer for mixing events generated by PIBIDS.
|
00001 #define DOUBLE_EPS 1E-100 //!<For determining when a double is zero (printing purposes). 00002 00013 #include <stdlib.h> 00014 #include <stdio.h> 00015 #include <time.h> 00016 #include <vector> 00017 #include <list> 00018 #include <utility> 00019 #include <string> 00020 00021 #include "FileEventStream.hh" 00022 #include "EventHit.hh" 00023 00024 using namespace std; 00025 00026 #ifndef MIXER_HH 00027 #define MIXER_HH //!<Inclusion guard. 00028 00029 bool compare_eventhits(EventHit* first 00030 , EventHit* second 00031 ); 00032 00033 int main(int argc 00034 , char **argv 00035 ); 00036 00037 void verify_input(int argc 00038 , char **argv 00039 ); 00040 00041 vector<pair<FileEventStream*, double> > eventsToMix; 00042 00043 void setup_eventsToMix(int argc, 00044 char ** argv 00045 ); 00046 00047 FILE * setup_outputFile(char* filename //Filename of output file. 00048 ); 00049 00050 void print_to_outfile(EventHit * it 00051 , FILE * outFile 00052 ); 00053 00054 int NumberOfTubes; 00055 00056 #endif 00057 00058 00059