00001 #ifndef PSANA_EXAMPLES_DUMPTIMEPIX_H 00002 #define PSANA_EXAMPLES_DUMPTIMEPIX_H 00003 00004 //-------------------------------------------------------------------------- 00005 // File and Version Information: 00006 // $Id: DumpTimepix.h 2791 2012-01-12 18:28:33Z salnikov@SLAC.STANFORD.EDU $ 00007 // 00008 // Description: 00009 // Class DumpTimepix. 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 /** 00037 * @brief Example module which dumps Timepix data 00038 * 00039 * This software was developed for the LCLS project. If you use all or 00040 * part of it, please give an appropriate acknowledgment. 00041 * 00042 * @version \$Id: DumpTimepix.h 2791 2012-01-12 18:28:33Z salnikov@SLAC.STANFORD.EDU $ 00043 * 00044 * @author Andy Salnikov 00045 */ 00046 00047 class DumpTimepix : public Module { 00048 public: 00049 00050 // Default constructor 00051 DumpTimepix (const std::string& name) ; 00052 00053 // Destructor 00054 virtual ~DumpTimepix () ; 00055 00056 /// Method which is called at the beginning of the calibration cycle 00057 virtual void beginCalibCycle(Event& evt, Env& env); 00058 00059 /// Method which is called with event data, this is the only required 00060 /// method, all other methods are optional 00061 virtual void event(Event& evt, Env& env); 00062 00063 protected: 00064 00065 private: 00066 00067 Source m_src; // Data source set from config file 00068 00069 }; 00070 00071 } // namespace psana_examples 00072 00073 #endif // PSANA_EXAMPLES_DUMPTIMEPIX_H