BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/BesVisClient/BesVisClient/BesClient.h File Reference
#include <cstdio>
#include <unistd.h>
#include <cstdlib>
#include <sys/sem.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <cstring>
#include <string>
#include <TSystem.h>
#include <TGFrame.h>
#include <TGeometry.h>
#include <TGNumberEntry.h>
#include <TViewerX3D.h>
#include <TTimer.h>
#include <TASImage.h>
#include "BesGeoSelector.h"
#include "BesVisLib/BesGMenuBar.h"
#include "BesVisLib/BesGPictureButton.h"
#include "BesVisLib/BesVisDisplay.h"
#include "BesVisLib/BesEvent.h"
#include "RootEventData/TRecTrackEvent.h"
#include "RootEventData/TDigiEvent.h"
#include "RootEventData/TTrigEvent.h"
#include "RootEventData/TRecEvTime.h"
#include "RootEventData/TRecEmcShower.h"
#include "RootEventData/TDstEvent.h"

Go to the source code of this file.

Classes

union  semun
 
class  BesClient
 

Macros

#define BES_EZCommand
 
#define BES_EZButtons
 
#define BES_EZMode
 
#define BES_EZMenuViewOption
 

Enumerations

enum  { FREE_SPACE , OUTPUT_STORE }
 
enum  runStatus { RUN_ERROR , RUN_SMOOTH , RUN_ERROR , RUN_SMOOTH }
 
enum  EZCommand {
  kM_File_LoadGeo , kM_File_SaveGeoAs , kM_File_OpenEvent , kM_File_SavePicAs ,
  kM_File_Close , kM_File_Exit , kM_Edit_Editor , kM_Option_TimerSpeed ,
  kM_Option_DefaultPicType , kM_Help_Content , kM_Help_About , kM_File_LoadGeo ,
  kM_File_SaveGeoAs , kM_File_OpenEvent , kM_File_SavePicAs , kM_File_Close ,
  kM_File_Exit , kM_Edit_Editor , kM_Option_TimerSpeed , kM_Option_DefaultPicType ,
  kM_Help_Content , kM_Help_About
}
 
enum  EZButtons {
  kM_Button_LoadGeoFile , kM_Button_SaveGeoAs , kM_Button_OpenEventFile , kM_Button_SavePicAs ,
  kM_Button_SavePicAsPS , kM_Button_Refresh , kM_Button_ResetCurrent , kM_Button_ResetAll ,
  kM_Button_CursorPick , kM_Button_CursorHand , kM_Button_ZoomIn , kM_Button_ZoomOut ,
  kM_Button_ZoomRatioNumber , kM_Button_SwitchDisplayMode , kM_Button_SetHome , kM_Button_GoHome ,
  kM_Button_SaveMyConfig , kM_Button_LoadMyConfig , kM_Button_Palette , kM_Button_Help ,
  kM_Button_DisplayMode2D , kM_Button_DisplayModeXY , kM_Button_DisplayModeZR , kM_Button_DisplayMode3D ,
  kM_Button_DisplayModeAll , kM_Button_SwitchPad , kM_Button_ShowInfo , kM_Button_ShowAxis ,
  kM_Button_FishEyeView , kM_Button_ParallelView , kM_Button_PerspectiveView , kM_Button_X3D ,
  kM_Button_OpenGL , kM_Button_Online , kM_Button_File , kM_Button_Down ,
  kM_Button_Bes , kM_Slider_EventPlay , kM_Button_PrevEvent , kM_Button_NextEvent ,
  kM_Button_PlayEvent , kM_Button_FirstEvent , kM_Button_ViewResetAngle , kM_Button_ViewCounterClockWise ,
  kM_Button_ViewClockWise , kM_Button_ViewMoveUp , kM_Button_ViewMoveLeft , kM_Button_ViewMoveRight ,
  kM_Button_ViewMoveDown , kM_Button_ViewMoveCenter , kM_Slider_ViewAngleTheta , kM_Button_ViewAngleThetaPlus ,
  kM_Button_ViewAngleThetaMinus , kM_Button_ViewAngleThetaNumber , kM_Slider_ViewAnglePhi , kM_Button_ViewAnglePhiPlus ,
  kM_Button_ViewAnglePhiMinus , kM_Button_ViewAnglePhiNumber , kM_Slider_ViewAnglePsi , kM_Button_ViewAnglePsiPlus ,
  kM_Button_ViewAnglePsiMinus , kM_Button_ViewAnglePsiNumber , kM_Button_RotateStep , kM_Button_AutoRotate ,
  kM_Button_RotateSpeed , kM_Button_RotateFPS , kM_Button_BesRun , kM_Button_BesEvent ,
  kM_Button_EventPlaySpeed , kM_Button_BesSamplePos , kM_Button_BesVar , kM_Button_BesBit ,
  kM_Button_BesSample , kM_Button_BesGet , kM_Button_BesReset , kM_Button_DownZED ,
  kM_Button_DownFZ , kM_Button_DownMDST , kM_Button_DownRaw , kM_Button_DownRawIncl ,
  kM_Button_DownBrowse , kM_Button_DownEvents , kM_Button_DownSkip , kM_Button_DownGet ,
  kM_Button_OnlineStart , kM_Button_OnlineTime , kM_Button_OnlineTime2 , kM_Button_PRStart ,
  kM_Button_PRTime , kM_Button_PRTime2 , kM_Button_Magnetic , kM_Slider_Zoom ,
  kM_Button_LoadGeoFile , kM_Button_SaveGeoAs , kM_Button_OpenEventFile , kM_Button_SavePicAs ,
  kM_Button_SavePicAsPS , kM_Button_Refresh , kM_Button_ResetCurrent , kM_Button_ResetAll ,
  kM_Button_CursorPick , kM_Button_CursorHand , kM_Button_ZoomIn , kM_Button_ZoomOut ,
  kM_Button_ZoomRatioNumber , kM_Button_SwitchDisplayMode , kM_Button_SetHome , kM_Button_GoHome ,
  kM_Button_SaveMyConfig , kM_Button_LoadMyConfig , kM_Button_Palette , kM_Button_Help ,
  kM_Button_DisplayMode2D , kM_Button_DisplayModeXY , kM_Button_DisplayModeZR , kM_Button_DisplayMode3D ,
  kM_Button_DisplayModeAll , kM_Button_SwitchPad , kM_Button_ShowInfo , kM_Button_ShowAxis ,
  kM_Button_FishEyeView , kM_Button_ParallelView , kM_Button_PerspectiveView , kM_Button_X3D ,
  kM_Button_OpenGL , kM_Button_Online , kM_Button_File , kM_Button_Down ,
  kM_Button_Bes , kM_Slider_EventPlay , kM_Button_PrevEvent , kM_Button_NextEvent ,
  kM_Button_PlayEvent , kM_Button_FirstEvent , kM_Button_ViewResetAngle , kM_Button_ViewCounterClockWise ,
  kM_Button_ViewClockWise , kM_Button_ViewMoveUp , kM_Button_ViewMoveLeft , kM_Button_ViewMoveRight ,
  kM_Button_ViewMoveDown , kM_Button_ViewMoveCenter , kM_Slider_ViewAngleTheta , kM_Button_ViewAngleThetaPlus ,
  kM_Button_ViewAngleThetaMinus , kM_Button_ViewAngleThetaNumber , kM_Slider_ViewAnglePhi , kM_Button_ViewAnglePhiPlus ,
  kM_Button_ViewAnglePhiMinus , kM_Button_ViewAnglePhiNumber , kM_Slider_ViewAnglePsi , kM_Button_ViewAnglePsiPlus ,
  kM_Button_ViewAnglePsiMinus , kM_Button_ViewAnglePsiNumber , kM_Button_RotateStep , kM_Button_AutoRotate ,
  kM_Button_RotateSpeed , kM_Button_RotateFPS , kM_Button_BesRun , kM_Button_BesEvent ,
  kM_Button_EventPlaySpeed , kM_Button_BesSamplePos , kM_Button_BesVar , kM_Button_BesBit ,
  kM_Button_BesSample , kM_Button_BesGet , kM_Button_BesReset , kM_Button_DownZED ,
  kM_Button_DownFZ , kM_Button_DownMDST , kM_Button_DownRaw , kM_Button_DownRawIncl ,
  kM_Button_DownBrowse , kM_Button_DownEvents , kM_Button_DownSkip , kM_Button_DownGet ,
  kM_Button_OnlineStart , kM_Button_OnlineTime , kM_Button_OnlineTime2 , kM_Button_PRStart ,
  kM_Button_PRTime , kM_Button_PRTime2 , kM_Button_Magnetic , kM_Slider_Zoom
}
 
enum  EZMode {
  kModeOnline = BIT(0) , kModeFile = BIT(1) , kModeDown = BIT(2) , kModeBes = BIT(3) ,
  kModePR = BIT(4) , kModeOnline = BIT(0) , kModeFile = BIT(1) , kModeDown = BIT(2) ,
  kModeBes = BIT(3) , kModePR = BIT(4)
}
 
enum  EZMenuViewOption {
  kM_Header_Global , kM_Mdc_Global , kM_Mdc_Tubes , kM_Mdc_Wires ,
  kM_Tof_Global , kM_Tof_East , kM_Tof_Barrel , kM_Tof_West ,
  kM_Emc_Global , kM_Emc_East , kM_Emc_Barrel , kM_Emc_West ,
  kM_Emc_Side , kM_Muc_Global , kM_Muc_East , kM_Muc_Barrel ,
  kM_Muc_West , kM_Muc_Strips , kM_Full3D_Mdc , kM_Full3D_Tof ,
  kM_Full3D_Emc , kM_Full3D_Muc , kM_BeamPipe , kM_ZRPlaneOnXY ,
  kM_Axis , kM_MdcHits_Global , kM_MdcHits_Hits , kM_TofHits_Global ,
  kM_TofHits_East , kM_TofHits_Barrel , kM_TofHits_West , kM_EmcHits_Global ,
  kM_EmcHits_East , kM_EmcHits_Barrel , kM_EmcHits_West , kM_EmcHits_Side ,
  kM_MucHits_Global , kM_MucHits_East , kM_MucHits_Barrel , kM_MucHits_West ,
  kM_Tracks_Global , kM_Tracks_Mdc , kM_Tracks_Tof , kM_Tracks_Emc ,
  kM_Tracks_Muc , kM_Tracks_Ext , kM_View_X3D , kM_View_OpenGL ,
  kM_Standard_On , kM_User_On , kM_Mdc_QNotOverflow_Global , kM_Mdc_ColorfulWire_Global ,
  kM_Mdc_MdcTimeSubEvTime_Global , kM_Mdc_TMatch_Global , kM_Mdc_QMatch_Global , kM_Tof_TMatch_Global ,
  kM_Tof_QMatch_Global , kM_Header_Global , kM_Mdc_Global , kM_Mdc_Tubes ,
  kM_Mdc_Wires , kM_Tof_Global , kM_Tof_East , kM_Tof_Barrel ,
  kM_Tof_West , kM_Emc_Global , kM_Emc_East , kM_Emc_Barrel ,
  kM_Emc_West , kM_Emc_Side , kM_Muc_Global , kM_Muc_East ,
  kM_Muc_Barrel , kM_Muc_West , kM_Muc_Strips , kM_Full3D_Mdc ,
  kM_Full3D_Tof , kM_Full3D_Emc , kM_Full3D_Muc , kM_BeamPipe ,
  kM_ZRPlaneOnXY , kM_Axis , kM_MdcHits_Global , kM_MdcHits_Hits ,
  kM_TofHits_Global , kM_TofHits_East , kM_TofHits_Barrel , kM_TofHits_West ,
  kM_EmcHits_Global , kM_EmcHits_East , kM_EmcHits_Barrel , kM_EmcHits_West ,
  kM_EmcHits_Side , kM_MucHits_Global , kM_MucHits_East , kM_MucHits_Barrel ,
  kM_MucHits_West , kM_Tracks_Global , kM_Tracks_Mdc , kM_Tracks_Tof ,
  kM_Tracks_Emc , kM_Tracks_Muc , kM_Tracks_Ext , kM_View_X3D ,
  kM_View_OpenGL , kM_Standard_On , kM_User_On , kM_Mdc_QNotOverflow_Global ,
  kM_Mdc_ColorfulWire_Global , kM_Mdc_MdcTimeSubEvTime_Global , kM_Mdc_TMatch_Global , kM_Mdc_QMatch_Global ,
  kM_Tof_TMatch_Global , kM_Tof_QMatch_Global
}
 

Macro Definition Documentation

◆ BES_EZButtons

#define BES_EZButtons

◆ BES_EZCommand

#define BES_EZCommand

◆ BES_EZMenuViewOption

#define BES_EZMenuViewOption

◆ BES_EZMode

#define BES_EZMode

Enumeration Type Documentation

◆ anonymous enum

◆ EZButtons

enum EZButtons
Enumerator
kM_Button_LoadGeoFile 
kM_Button_SaveGeoAs 
kM_Button_OpenEventFile 
kM_Button_SavePicAs 
kM_Button_SavePicAsPS 
kM_Button_Refresh 
kM_Button_ResetCurrent 
kM_Button_ResetAll 
kM_Button_CursorPick 
kM_Button_CursorHand 
kM_Button_ZoomIn 
kM_Button_ZoomOut 
kM_Button_ZoomRatioNumber 
kM_Button_SwitchDisplayMode 
kM_Button_SetHome 
kM_Button_GoHome 
kM_Button_SaveMyConfig 
kM_Button_LoadMyConfig 
kM_Button_Palette 
kM_Button_Help 
kM_Button_DisplayMode2D 
kM_Button_DisplayModeXY 
kM_Button_DisplayModeZR 
kM_Button_DisplayMode3D 
kM_Button_DisplayModeAll 
kM_Button_SwitchPad 
kM_Button_ShowInfo 
kM_Button_ShowAxis 
kM_Button_FishEyeView 
kM_Button_ParallelView 
kM_Button_PerspectiveView 
kM_Button_X3D 
kM_Button_OpenGL 
kM_Button_Online 
kM_Button_File 
kM_Button_Down 
kM_Button_Bes 
kM_Slider_EventPlay 
kM_Button_PrevEvent 
kM_Button_NextEvent 
kM_Button_PlayEvent 
kM_Button_FirstEvent 
kM_Button_ViewResetAngle 
kM_Button_ViewCounterClockWise 
kM_Button_ViewClockWise 
kM_Button_ViewMoveUp 
kM_Button_ViewMoveLeft 
kM_Button_ViewMoveRight 
kM_Button_ViewMoveDown 
kM_Button_ViewMoveCenter 
kM_Slider_ViewAngleTheta 
kM_Button_ViewAngleThetaPlus 
kM_Button_ViewAngleThetaMinus 
kM_Button_ViewAngleThetaNumber 
kM_Slider_ViewAnglePhi 
kM_Button_ViewAnglePhiPlus 
kM_Button_ViewAnglePhiMinus 
kM_Button_ViewAnglePhiNumber 
kM_Slider_ViewAnglePsi 
kM_Button_ViewAnglePsiPlus 
kM_Button_ViewAnglePsiMinus 
kM_Button_ViewAnglePsiNumber 
kM_Button_RotateStep 
kM_Button_AutoRotate 
kM_Button_RotateSpeed 
kM_Button_RotateFPS 
kM_Button_BesRun 
kM_Button_BesEvent 
kM_Button_EventPlaySpeed 
kM_Button_BesSamplePos 
kM_Button_BesVar 
kM_Button_BesBit 
kM_Button_BesSample 
kM_Button_BesGet 
kM_Button_BesReset 
kM_Button_DownZED 
kM_Button_DownFZ 
kM_Button_DownMDST 
kM_Button_DownRaw 
kM_Button_DownRawIncl 
kM_Button_DownBrowse 
kM_Button_DownEvents 
kM_Button_DownSkip 
kM_Button_DownGet 
kM_Button_OnlineStart 
kM_Button_OnlineTime 
kM_Button_OnlineTime2 
kM_Button_PRStart 
kM_Button_PRTime 
kM_Button_PRTime2 
kM_Button_Magnetic 
kM_Slider_Zoom 
kM_Button_LoadGeoFile 
kM_Button_SaveGeoAs 
kM_Button_OpenEventFile 
kM_Button_SavePicAs 
kM_Button_SavePicAsPS 
kM_Button_Refresh 
kM_Button_ResetCurrent 
kM_Button_ResetAll 
kM_Button_CursorPick 
kM_Button_CursorHand 
kM_Button_ZoomIn 
kM_Button_ZoomOut 
kM_Button_ZoomRatioNumber 
kM_Button_SwitchDisplayMode 
kM_Button_SetHome 
kM_Button_GoHome 
kM_Button_SaveMyConfig 
kM_Button_LoadMyConfig 
kM_Button_Palette 
kM_Button_Help 
kM_Button_DisplayMode2D 
kM_Button_DisplayModeXY 
kM_Button_DisplayModeZR 
kM_Button_DisplayMode3D 
kM_Button_DisplayModeAll 
kM_Button_SwitchPad 
kM_Button_ShowInfo 
kM_Button_ShowAxis 
kM_Button_FishEyeView 
kM_Button_ParallelView 
kM_Button_PerspectiveView 
kM_Button_X3D 
kM_Button_OpenGL 
kM_Button_Online 
kM_Button_File 
kM_Button_Down 
kM_Button_Bes 
kM_Slider_EventPlay 
kM_Button_PrevEvent 
kM_Button_NextEvent 
kM_Button_PlayEvent 
kM_Button_FirstEvent 
kM_Button_ViewResetAngle 
kM_Button_ViewCounterClockWise 
kM_Button_ViewClockWise 
kM_Button_ViewMoveUp 
kM_Button_ViewMoveLeft 
kM_Button_ViewMoveRight 
kM_Button_ViewMoveDown 
kM_Button_ViewMoveCenter 
kM_Slider_ViewAngleTheta 
kM_Button_ViewAngleThetaPlus 
kM_Button_ViewAngleThetaMinus 
kM_Button_ViewAngleThetaNumber 
kM_Slider_ViewAnglePhi 
kM_Button_ViewAnglePhiPlus 
kM_Button_ViewAnglePhiMinus 
kM_Button_ViewAnglePhiNumber 
kM_Slider_ViewAnglePsi 
kM_Button_ViewAnglePsiPlus 
kM_Button_ViewAnglePsiMinus 
kM_Button_ViewAnglePsiNumber 
kM_Button_RotateStep 
kM_Button_AutoRotate 
kM_Button_RotateSpeed 
kM_Button_RotateFPS 
kM_Button_BesRun 
kM_Button_BesEvent 
kM_Button_EventPlaySpeed 
kM_Button_BesSamplePos 
kM_Button_BesVar 
kM_Button_BesBit 
kM_Button_BesSample 
kM_Button_BesGet 
kM_Button_BesReset 
kM_Button_DownZED 
kM_Button_DownFZ 
kM_Button_DownMDST 
kM_Button_DownRaw 
kM_Button_DownRawIncl 
kM_Button_DownBrowse 
kM_Button_DownEvents 
kM_Button_DownSkip 
kM_Button_DownGet 
kM_Button_OnlineStart 
kM_Button_OnlineTime 
kM_Button_OnlineTime2 
kM_Button_PRStart 
kM_Button_PRTime 
kM_Button_PRTime2 
kM_Button_Magnetic 
kM_Slider_Zoom 

Definition at line 74 of file InstallArea/include/BesVisClient/BesVisClient/BesClient.h.

74 {
167};

◆ EZCommand

enum EZCommand
Enumerator
kM_File_LoadGeo 
kM_File_SaveGeoAs 
kM_File_OpenEvent 
kM_File_SavePicAs 
kM_File_Close 
kM_File_Exit 
kM_Edit_Editor 
kM_Option_TimerSpeed 
kM_Option_DefaultPicType 
kM_Help_Content 
kM_Help_About 
kM_File_LoadGeo 
kM_File_SaveGeoAs 
kM_File_OpenEvent 
kM_File_SavePicAs 
kM_File_Close 
kM_File_Exit 
kM_Edit_Editor 
kM_Option_TimerSpeed 
kM_Option_DefaultPicType 
kM_Help_Content 
kM_Help_About 

Definition at line 56 of file InstallArea/include/BesVisClient/BesVisClient/BesClient.h.

◆ EZMenuViewOption

Enumerator
kM_Header_Global 
kM_Mdc_Global 
kM_Mdc_Tubes 
kM_Mdc_Wires 
kM_Tof_Global 
kM_Tof_East 
kM_Tof_Barrel 
kM_Tof_West 
kM_Emc_Global 
kM_Emc_East 
kM_Emc_Barrel 
kM_Emc_West 
kM_Emc_Side 
kM_Muc_Global 
kM_Muc_East 
kM_Muc_Barrel 
kM_Muc_West 
kM_Muc_Strips 
kM_Full3D_Mdc 
kM_Full3D_Tof 
kM_Full3D_Emc 
kM_Full3D_Muc 
kM_BeamPipe 
kM_ZRPlaneOnXY 
kM_Axis 
kM_MdcHits_Global 
kM_MdcHits_Hits 
kM_TofHits_Global 
kM_TofHits_East 
kM_TofHits_Barrel 
kM_TofHits_West 
kM_EmcHits_Global 
kM_EmcHits_East 
kM_EmcHits_Barrel 
kM_EmcHits_West 
kM_EmcHits_Side 
kM_MucHits_Global 
kM_MucHits_East 
kM_MucHits_Barrel 
kM_MucHits_West 
kM_Tracks_Global 
kM_Tracks_Mdc 
kM_Tracks_Tof 
kM_Tracks_Emc 
kM_Tracks_Muc 
kM_Tracks_Ext 
kM_View_X3D 
kM_View_OpenGL 
kM_Standard_On 
kM_User_On 
kM_Mdc_QNotOverflow_Global 
kM_Mdc_ColorfulWire_Global 
kM_Mdc_MdcTimeSubEvTime_Global 
kM_Mdc_TMatch_Global 
kM_Mdc_QMatch_Global 
kM_Tof_TMatch_Global 
kM_Tof_QMatch_Global 
kM_Header_Global 
kM_Mdc_Global 
kM_Mdc_Tubes 
kM_Mdc_Wires 
kM_Tof_Global 
kM_Tof_East 
kM_Tof_Barrel 
kM_Tof_West 
kM_Emc_Global 
kM_Emc_East 
kM_Emc_Barrel 
kM_Emc_West 
kM_Emc_Side 
kM_Muc_Global 
kM_Muc_East 
kM_Muc_Barrel 
kM_Muc_West 
kM_Muc_Strips 
kM_Full3D_Mdc 
kM_Full3D_Tof 
kM_Full3D_Emc 
kM_Full3D_Muc 
kM_BeamPipe 
kM_ZRPlaneOnXY 
kM_Axis 
kM_MdcHits_Global 
kM_MdcHits_Hits 
kM_TofHits_Global 
kM_TofHits_East 
kM_TofHits_Barrel 
kM_TofHits_West 
kM_EmcHits_Global 
kM_EmcHits_East 
kM_EmcHits_Barrel 
kM_EmcHits_West 
kM_EmcHits_Side 
kM_MucHits_Global 
kM_MucHits_East 
kM_MucHits_Barrel 
kM_MucHits_West 
kM_Tracks_Global 
kM_Tracks_Mdc 
kM_Tracks_Tof 
kM_Tracks_Emc 
kM_Tracks_Muc 
kM_Tracks_Ext 
kM_View_X3D 
kM_View_OpenGL 
kM_Standard_On 
kM_User_On 
kM_Mdc_QNotOverflow_Global 
kM_Mdc_ColorfulWire_Global 
kM_Mdc_MdcTimeSubEvTime_Global 
kM_Mdc_TMatch_Global 
kM_Mdc_QMatch_Global 
kM_Tof_TMatch_Global 
kM_Tof_QMatch_Global 

Definition at line 184 of file InstallArea/include/BesVisClient/BesVisClient/BesClient.h.

184 {
186 //kM_Header_On, //Long Peixun's update: remove kM_Header_On, because we just need kM_Header_Global
210 kM_Axis,
236 //kM_Mdc_TOverflow_Global,
244};

◆ EZMode

enum EZMode
Enumerator
kModeOnline 
kModeFile 
kModeDown 
kModeBes 
kModePR 
kModeOnline 
kModeFile 
kModeDown 
kModeBes 
kModePR 

Definition at line 173 of file InstallArea/include/BesVisClient/BesVisClient/BesClient.h.

◆ runStatus

enum runStatus
Enumerator
RUN_ERROR 
RUN_SMOOTH 
RUN_ERROR 
RUN_SMOOTH 

Definition at line 50 of file InstallArea/include/BesVisClient/BesVisClient/BesClient.h.