00001 #ifndef PSANA_EXAMPLES_DUMPBLD_H 00002 #define PSANA_EXAMPLES_DUMPBLD_H 00003 00004 //-------------------------------------------------------------------------- 00005 // File and Version Information: 00006 // $Id: DumpBld.h 4786 2012-11-15 20:18:45Z salnikov@SLAC.STANFORD.EDU $ 00007 // 00008 // Description: 00009 // Class DumpBld. 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 class for psana 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 * @see AdditionalClass 00043 * 00044 * @version $Id: DumpBld.h 4786 2012-11-15 20:18:45Z salnikov@SLAC.STANFORD.EDU $ 00045 * 00046 * @author Andrei Salnikov 00047 */ 00048 00049 class DumpBld : public Module { 00050 public: 00051 00052 // Default constructor 00053 DumpBld (const std::string& name) ; 00054 00055 // Destructor 00056 virtual ~DumpBld () ; 00057 00058 /// Method which is called at the beginning of job 00059 virtual void beginJob(Event& evt, Env& env); 00060 00061 /// Method which is called with event data 00062 virtual void event(Event& evt, Env& env); 00063 00064 protected: 00065 00066 private: 00067 00068 Source m_ebeamSrc; 00069 Source m_cavSrc; 00070 Source m_feeSrc; 00071 Source m_ipimbSrc; 00072 Source m_pimSrc; 00073 Source m_gmdSrc; 00074 00075 }; 00076 00077 } // namespace psana_examples 00078 00079 #endif // PSANA_EXAMPLES_DUMPBLD_H