00001 #ifndef PSANA_EXAMPLES_DUMPANDOR_H 00002 #define PSANA_EXAMPLES_DUMPANDOR_H 00003 00004 //-------------------------------------------------------------------------- 00005 // File and Version Information: 00006 // $Id: DumpAndor.h 5355 2013-02-05 22:07:12Z salnikov@SLAC.STANFORD.EDU $ 00007 // 00008 // Description: 00009 // Class DumpAndor. 00010 // 00011 //------------------------------------------------------------------------ 00012 00013 //----------------- 00014 // C/C++ Headers -- 00015 //----------------- 00016 00017 //---------------------- 00018 // Base Class Headers -- 00019 //---------------------- 00020 #include "psana/Module.h" 00021 00022 //------------------------------- 00023 // Collaborating Class Headers -- 00024 //------------------------------- 00025 00026 //------------------------------------ 00027 // Collaborating Class Declarations -- 00028 //------------------------------------ 00029 00030 // --------------------- 00031 // -- Class Interface -- 00032 // --------------------- 00033 00034 namespace psana_examples { 00035 00036 /// @addtogroup psana_examples 00037 00038 /** 00039 * @ingroup psana_examples 00040 * 00041 * @brief Example module class for psana 00042 * 00043 * This software was developed for the LCLS project. If you use all or 00044 * part of it, please give an appropriate acknowledgment. 00045 * 00046 * @version \$Id: DumpAndor.h 5355 2013-02-05 22:07:12Z salnikov@SLAC.STANFORD.EDU $ 00047 * 00048 * @author Andy Salnikov 00049 */ 00050 00051 class DumpAndor : public Module { 00052 public: 00053 00054 // Default constructor 00055 DumpAndor (const std::string& name) ; 00056 00057 // Destructor 00058 virtual ~DumpAndor () ; 00059 00060 /// Method which is called at the beginning of the calibration cycle 00061 virtual void beginCalibCycle(Event& evt, Env& env); 00062 00063 /// Method which is called with event data, this is the only required 00064 /// method, all other methods are optional 00065 virtual void event(Event& evt, Env& env); 00066 00067 protected: 00068 00069 private: 00070 00071 Source m_src; // Data source set from config file 00072 00073 }; 00074 00075 } // namespace psana_examples 00076 00077 #endif // PSANA_EXAMPLES_DUMPANDOR_H