psana/src/Module.cpp

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id: Module.cpp 3038 2012-03-08 22:12:17Z salnikov@SLAC.STANFORD.EDU $
00004 //
00005 // Description:
00006 //      Class Module...
00007 //
00008 // Author List:
00009 //      Andrei Salnikov
00010 //
00011 //------------------------------------------------------------------------
00012 
00013 //-----------------------
00014 // This Class's Header --
00015 //-----------------------
00016 #include "psana/Module.h"
00017 
00018 //-----------------
00019 // C/C++ Headers --
00020 //-----------------
00021 
00022 //-------------------------------
00023 // Collaborating Class Headers --
00024 //-------------------------------
00025 
00026 //-----------------------------------------------------------------------
00027 // Local Macros, Typedefs, Structures, Unions and Forward Declarations --
00028 //-----------------------------------------------------------------------
00029 
00030 //              ----------------------------------------
00031 //              -- Public Function Member Definitions --
00032 //              ----------------------------------------
00033 
00034 namespace psana {
00035 
00036 //----------------
00037 // Constructors --
00038 //----------------
00039 Module::Module (const std::string& name, bool observeAllEvents)
00040   : Configurable(name)
00041   , m_status(OK)
00042   , m_observeAllEvents(observeAllEvents)
00043 {
00044 }
00045 
00046 //--------------
00047 // Destructor --
00048 //--------------
00049 Module::~Module ()
00050 {
00051 }
00052 
00053 // Method which is called once at the beginning of the job
00054 void 
00055 Module::beginJob(Event& evt, Env& env)
00056 {
00057 }
00058 
00059 // Method which is called at the beginning of the run
00060 void 
00061 Module::beginRun(Event& evt, Env& env)
00062 {
00063 }
00064 
00065 // Method which is called at the beginning of the calibration cycle
00066 void 
00067 Module::beginCalibCycle(Event& evt, Env& env)
00068 {
00069 }
00070 
00071 // Method which is called at the end of the calibration cycle
00072 void 
00073 Module::endCalibCycle(Event& evt, Env& env)
00074 {
00075 }
00076 
00077 // Method which is called at the end of the run
00078 void 
00079 Module::endRun(Event& evt, Env& env)
00080 {
00081 }
00082 
00083 // Method which is called once at the end of the job
00084 void 
00085 Module::endJob(Event& evt, Env& env)
00086 {
00087 }
00088 
00089 
00090 // formatting for enum
00091 std::ostream&
00092 operator<<(std::ostream& out, Module::Status stat)
00093 {
00094   const char* str = "???";
00095   switch (stat) {
00096   case Module::OK:
00097     str = "OK";
00098     break;
00099   case Module::Skip:
00100     str = "Skip";
00101     break;
00102   case Module::Stop:
00103     str = "Stop";
00104     break;
00105   case Module::Abort:
00106     str = "Abort";
00107     break;
00108   }
00109   return out << str;
00110 }
00111 
00112 } // namespace psana

Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7