00001 #ifndef PSANA_EXAMPLES_DUMPPARTITION_H 00002 #define PSANA_EXAMPLES_DUMPPARTITION_H 00003 00004 //-------------------------------------------------------------------------- 00005 // File and Version Information: 00006 // $Id: 00007 // 00008 // Description: 00009 // Class DumpPartition. 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: 00045 * 00046 */ 00047 00048 class DumpPartition : public Module { 00049 public: 00050 00051 // Default constructor 00052 DumpPartition (const std::string& name) ; 00053 00054 // Destructor 00055 virtual ~DumpPartition () ; 00056 00057 /// Method which is called at the beginning of the job 00058 virtual void beginJob(Event& evt, Env& env); 00059 00060 /// Method which is called with event data 00061 virtual void event(Event& evt, Env& env); 00062 00063 protected: 00064 00065 private: 00066 }; 00067 00068 } // namespace psana_examples 00069 00070 #endif // PSANA_EXAMPLES_DUMPPARTITION_H