fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 cursesevent.h - description 00003 ------------------- 00004 begin : Wed Jun 5 2002 00005 copyright : (C) 2002 by Andreas Kopmann 00006 email : kopmann@ipe.fzk.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef CURSESEVENT_H 00019 #define CURSESEVENT_H 00020 00021 //#include "feexplorer.h" 00022 // Program switches 00023 //#define USE_DAQ_FORMAT // IMPORTANT: Enable the support for DAQ files 00024 //#define USE_ROOT 00025 //#define USE_FDANALYSIS 00026 00027 #include <FEdata/tsevent.h> 00028 00029 #include "cursessltpattern.h" 00030 #include "cursesfltpulse.h" 00031 00032 #ifdef USE_DAQ_FORMAT 00033 class TMirrorEvent; 00034 class TMirrorEventHeader; 00035 class TMirrorPixelList; 00036 class TMirrorPixelData; 00037 class TMirrorFADCData; 00038 00039 //class CursesSltPattern; 00040 //class CursesFltPulse; 00041 #endif 00042 00043 #ifdef USE_FDANALYSIS 00044 #include <EventClassifier.hh> 00045 #endif 00046 00051 class CursesEvent : public TsEvent { 00052 public: 00053 CursesEvent(); 00054 ~CursesEvent(); 00055 00056 00058 int getFirstTimeBin(); 00059 00061 int setFirstTimeBin(int bin); 00062 00063 00065 #ifdef USE_DAQ_FORMAT 00066 #ifdef USE_DAQ_MIRRORFORMAT 00067 int loadDaqFormat(TMirrorEvent *ev); 00068 #endif 00069 #ifdef USE_DAQ_EYEFORMAT 00070 int loadDaqFormat(TEyeEvent *ev); 00071 #endif 00072 #endif 00073 00076 void displayHeader(WINDOW *win); 00077 00078 00079 void display(WINDOW *win, int entry, SltTime *tFirst=0, int nEv=0, int firstBin=0, int nBins=1000); 00080 00082 void moveToPixel(WINDOW *win); 00083 00084 void displayTriggerData(WINDOW *win); 00085 void displayTriggerData(); 00086 00087 void displayADCData(WINDOW *win); 00088 00089 void handleKeyEvent(WINDOW *win, int key, bool focus); 00090 00091 void setFixColumnMode(bool mode); 00092 00093 private: 00094 00095 CursesSltPattern pat; 00096 00097 CursesFltPulse pulse; 00098 00099 WINDOW *winTrigger; 00100 00101 WINDOW *winADC; 00102 00103 #ifdef USE_FDANALYSIS 00104 00105 EventClassifier::EEventClass eventClass; 00106 00108 EventClassifier fEventClassifier; 00109 #endif 00110 00111 }; 00112 00113 #endif