JANA2
C++ framework for multi-threaded data processing
|
Public Types | |
using | ConfigType = ConfigT |
![]() | |
enum class | Status { Uninitialized , Initialized , Opened , Closed , Finalized } |
enum class | CallbackStyle { LegacyMode , ExpertMode , DeclarativeMode } |
Public Member Functions | |
void | PreInit (std::string tag, JEventLevel level, std::vector< std::string > input_collection_names, std::vector< JEventLevel > input_collection_levels, std::vector< std::vector< std::string > > variadic_input_collection_names, std::vector< JEventLevel > variadic_input_collection_levels, std::vector< std::string > output_collection_names, std::vector< std::vector< std::string > > variadic_output_collection_names) |
void | Init () override |
void | BeginRun (const std::shared_ptr< const JEvent > &event) override |
void | Process (const std::shared_ptr< const JEvent > &event) override |
JLogger & | logger () |
Retrieve reference to already-configured logger. | |
ConfigT & | config () |
Retrieve reference to embedded config object. | |
void | Summarize (JComponentSummary &summary) const override |
Generate summary for UI, inspector. | |
![]() | |
void | EndRun () override |
virtual void | Finish () |
template<typename T > | |
void | DeclareOutput (std::string tag, bool owns_data=true) |
template<typename T > | |
void | SetData (std::string tag, std::vector< T * > data) |
void | DoInit () |
CALLED BY JANA. | |
void | DoFinish () |
void | Execute (const std::shared_ptr< const JEvent > &) |
JFactorySet * | GetHelpers () |
void | SetTag (std::string tag) |
void | SetFactoryName (std::string factoryName) |
![]() | |
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. | |
JApplication * | GetApplication () const |
JLogger & | GetLogger () |
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) |
const std::vector< ParameterBase * > | GetAllParameters () const |
![]() | |
void | RegisterResource (ResourceBase *resource) |
virtual void | ChangeRun (int32_t) |
virtual void | ChangeRun (const JEvent &) |
virtual void | ChangeRun (const std::shared_ptr< const JEvent > &) |
![]() | |
void | RegisterOutput (OutputBase *output) |
void | WireOutputs (JEventLevel component_level, const std::vector< std::string > &single_output_databundle_names, const std::vector< std::vector< std::string > > &variadic_output_databundle_names) |
void | SummarizeOutputs (JComponentSummary::Component &summary) const |
Additional Inherited Members | |
![]() | |
void | RegisterInput (InputBase *input) |
void | RegisterInput (VariadicInputBase *input) |
void | WireInputs (JEventLevel component_level, const std::vector< JEventLevel > &single_input_levels, const std::vector< std::string > &single_input_databundle_names, const std::vector< JEventLevel > &variadic_input_levels, const std::vector< std::vector< std::string > > &variadic_input_databundle_names) |
void | SummarizeInputs (JComponentSummary::Component &summary) const |
![]() | |
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 |
JApplication * | m_app = nullptr |
JLogger | m_logger |
![]() | |
std::vector< ResourceBase * > | m_resources |
int32_t | m_last_run_number = -1 |
![]() | |
std::vector< InputBase * > | m_inputs |
std::vector< VariadicInputBase * > | m_variadic_inputs |
![]() | |
std::vector< OutputBase * > | m_outputs |
|
inlineoverridevirtual |
Reimplemented from JMultifactory.
|
inlineoverridevirtual |
Reimplemented from JMultifactory.
|
inlineoverridevirtual |
Reimplemented from JMultifactory.
|
inlineoverridevirtual |
Generate summary for UI, inspector.
Reimplemented from JMultifactory.