JANA2
C++ framework for multi-threaded data processing
JEventProcessor Class Reference
Inheritance diagram for JEventProcessor:
[legend]
Collaboration diagram for JEventProcessor:
[legend]

Public Member Functions

 JEventProcessor (JApplication *app)
 
std::string GetResourceName () const
 
uint64_t GetEventCount () const
 
virtual void DoInitialize ()
 
virtual void DoMap (const std::shared_ptr< const JEvent > &e)
 
virtual void DoTap (const std::shared_ptr< const JEvent > &e)
 
virtual void DoLegacyProcess (const std::shared_ptr< const JEvent > &event)
 
virtual void DoFinalize ()
 
void Summarize (JComponentSummary &summary) const override
 
virtual void Init ()
 
virtual void Process (const std::shared_ptr< const JEvent > &)
 
virtual void ProcessParallel (const JEvent &)
 
virtual void Process (const JEvent &)
 
virtual void ProcessParallel (int64_t, uint64_t, uint64_t)
 
virtual void Process (int64_t, uint64_t, uint64_t)
 
virtual void Finish ()
 
virtual std::string GetType () const
 
- Public Member Functions inherited from jana::components::JComponent
void SetLevel (JEventLevel level)
 
void SetCallbackStyle (CallbackStyle style)
 
void SetPrefix (std::string prefix)
 
void SetTypeName (std::string type_name)
 For convenience, we provide a NAME_OF_THIS macro so that the user doesn't have to store the type name as a string, because that could get out of sync if automatic refactoring tools are used.
 
JApplicationGetApplication () const
 
JLoggerGetLogger ()
 
std::string GetPrefix () const
 
JEventLevel GetLevel () const
 
std::string GetLoggerName () const
 
std::string GetPluginName () const
 
void SetLoggerName (std::string logger_name)
 
void SetPluginName (std::string plugin_name)
 
std::string GetTypeName () const
 
CallbackStyle GetCallbackStyle () const
 
Status GetStatus () const
 
void SetApplication (JApplication *app)
 
void SetLogger (JLogger logger)
 
template<typename F >
void CallWithJExceptionWrapper (std::string func_name, F func)
 
void RegisterParameter (ParameterBase *parameter)
 
void RegisterService (ServiceBase *service)
 
void ConfigureAllParameters (std::map< std::string, std::string > fields)
 
- Public Member Functions inherited from jana::components::JHasRunCallbacks
void RegisterResource (ResourceBase *resource)
 
virtual void ChangeRun (int32_t)
 
virtual void ChangeRun (const JEvent &)
 
virtual void BeginRun (const std::shared_ptr< const JEvent > &)
 
virtual void ChangeRun (const std::shared_ptr< const JEvent > &)
 
virtual void EndRun ()
 

Additional Inherited Members

- Public Types inherited from jana::components::JComponent
enum class  Status {
  Uninitialized ,
  Initialized ,
  Opened ,
  Closed ,
  Finalized
}
 
enum class  CallbackStyle {
  LegacyMode ,
  ExpertMode ,
  DeclarativeMode
}
 
- Protected Member Functions inherited from jana::components::JHasInputs
void RegisterInput (InputBase *input)
 
- Protected Attributes inherited from jana::components::JComponent
std::vector< ParameterBase * > m_parameters
 
std::vector< ServiceBase * > m_services
 
JEventLevel m_level = JEventLevel::PhysicsEvent
 
CallbackStyle m_callback_style = CallbackStyle::LegacyMode
 
std::string m_prefix
 
std::string m_plugin_name
 
std::string m_logger_name
 
std::string m_type_name
 
Status m_status = Status::Uninitialized
 
std::mutex m_mutex
 
JApplicationm_app = nullptr
 
JLogger m_logger
 
- Protected Attributes inherited from jana::components::JHasRunCallbacks
std::vector< ResourceBase * > m_resources
 
int32_t m_last_run_number = -1
 
- Protected Attributes inherited from jana::components::JHasInputs
std::vector< InputBase * > m_inputs
 

The documentation for this class was generated from the following file: