00001 #ifndef PSANA_PRINTSEPARATOR_H 00002 #define PSANA_PRINTSEPARATOR_H 00003 00004 //-------------------------------------------------------------------------- 00005 // File and Version Information: 00006 // $Id: PrintSeparator.h 1838 2011-05-07 01:44:25Z salnikov $ 00007 // 00008 // Description: 00009 // Class PrintSeparator. 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 { 00035 00036 /** 00037 * @brief Simple psana module that only prints separator line on every event, 00038 * may be useful to make event boundaries visible in the log file. 00039 * 00040 * This software was developed for the LCLS project. If you use all or 00041 * part of it, please give an appropriate acknowledgment. 00042 * 00043 * @version \$Id: PrintSeparator.h 1838 2011-05-07 01:44:25Z salnikov $ 00044 * 00045 * @author Andrei Salnikov 00046 */ 00047 00048 class PrintSeparator : public Module { 00049 public: 00050 00051 // Default constructor 00052 PrintSeparator (const std::string& name) ; 00053 00054 // Destructor 00055 virtual ~PrintSeparator () ; 00056 00057 /// Method which is called with event data, this is the only required 00058 /// method, all other methods are optional 00059 virtual void event(Event& evt, Env& env); 00060 00061 protected: 00062 00063 private: 00064 00065 std::string m_separator; 00066 00067 }; 00068 00069 } // namespace psana 00070 00071 #endif // PSANA_PRINTSEPARATOR_H