00001 00002 // $Id: ScanCat.h,v 1.1 2007/02/09 04:44:13 fmwk Exp $ 00003 // 00004 // Dialog box to prompt for run/event number to skip ahead to 00005 // 00006 // messier@indiana.edu 00008 #ifndef EVDB_SCANCAT_H 00009 #define EVDB_SCANCAT_H 00010 #include "TQObject.h" 00011 #include "RQ_OBJECT.h" 00012 #include "TGFrame.h" 00013 class TGButton; 00014 class TGLabel; 00015 class TGTextEntry; 00016 class TGLayoutHints; 00017 class TGRadioButton; 00018 class TGTextButton; 00019 00020 namespace evdb { 00021 class ScanCat : public TGTransientFrame { 00022 RQ_OBJECT("evdb::ScanCat"); 00023 00024 public: 00025 enum scancat_ { 00026 kVtxAtTgt, // Vertex in target : "good" event 00027 kVtxInGas, // Vertex in TPC gas 00028 kVtxUpstream,// Vertex somewhere upstream of target 00029 kSingleBeam, // Single beam track 00030 kSpray, // Many || tracks 00031 kPileUp, // Pile up of beam tracks 00032 kHardToTell, // So complicated its hard to tell whats going on 00033 kEmpty, // End-of-spill or other DAQ triggered event 00034 kMaxCat // Number of scan categories 00035 }; 00036 ScanCat(); 00037 ~ScanCat(); 00038 00039 void CloseWindow(); 00040 void DoClose(); 00041 void NextEvt(); 00042 void HandleButtons(int id); 00043 void Cat0() { this->HandleButtons(0); } 00044 void Cat1() { this->HandleButtons(1); } 00045 void Cat2() { this->HandleButtons(2); } 00046 void Cat3() { this->HandleButtons(3); } 00047 void Cat4() { this->HandleButtons(4); } 00048 void Cat5() { this->HandleButtons(5); } 00049 void Cat6() { this->HandleButtons(6); } 00050 void Cat7() { this->HandleButtons(7); } 00051 void Cat8() { this->HandleButtons(8); } 00052 00053 private: 00054 int fScanCat; 00055 TGCompositeFrame* fF1; 00056 TGLayoutHints* fL1; 00057 00058 TGLabel* fRunEvtLabel; 00059 TGRadioButton* fScanCatButton[kMaxCat]; 00060 TGTextButton* fNextEvt; 00061 00062 ClassDef(evdb::ScanCat,0) 00063 }; 00064 } 00065 00066 #endif 00067 00068 00069
1.3.5