//------------------------------------------------------------------------------ // Application task example -- // (C) Piero Giubilato 2008-2010, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "task_TEAM_Main.h" // [Author] "Piero Giubilato" // [Version] "0.5" // [Modified by] "Piero Giubilato" // [Last revision] "27 Jul 2009" // [Language] "C++" // [Compiler] "Visual C++ 8.x 9.x" // [Member of] "Cool SEAL" // [Project] "SEAL" // [Description] "TEAM imaging task" // [Key documentation] // "Visual C++ Reference Help" // {Trace} //______________________________________________________________________________ // Overloading check #ifndef task_TEAM_Main_H #define task_TEAM_Main_H // Standard components //#include // Root components //#include // Application components #include "data_Burst.h" #include "task_TEAM_Detector.h" #include "task_TEAM_GUI.h" //______________________________________________________________________________ class task_TEAM_Main: public task_Object { private: // Konstants enum ka_Mode {ka_Raw, ka_Dark, ka_DarkSub}; // Child tasks task_TEAM_Detector* task_Det; // Detector setup task task_TEAM_GUI* task_GUI; // GUI setup task // Data data_Burst* db_Raw; // The raw data from the detector data_Frame* df_Dark; // The pedestals data_Frame* df_Image; // The image data_Frame* df_CImage; // The Cluster generated image data_Frame* df_FImage; // The FFT generated image data_Burst* db_Movie; // The image collection // Status bool sts_dark_Ok; // Functions void Init(); // Startup public: // Special members task_TEAM_Main(); ~task_TEAM_Main(); // Slots for the GUI calls void evn_btn_Main(const int arg);// Main buttons slot void evn_btn_Acq(const int arg); // Acq buttons slot // Communication void comm_Open(); // Comm setup // Data void data_Setup(UInt_t fCount = 1); // Data setup void fpga_Setup(); // FPGA setup void team_Setup(); // TEAM setup // Acquisition void acq_Dark(UInt_t fCount = 5); // Pedestal run void acq_Main(); // Acquisition main UInt_t acq_Shot(UInt_t acq_Mode); // Acquisition main void acq_FFT(); // FFT test }; // Overloading check #endif