Skip to content

Commit

Permalink
CHG: Make sure we have an example finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglauer committed Dec 7, 2023
1 parent 9190634 commit 8edb878
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fretalon/framework/inc/MModuleTemplate.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class MModuleTemplate : public MModule

//! Main data analysis routine, which updates the event to a new level
virtual bool AnalyzeEvent(MReadOutAssembly* Event);

//! Finalize the module
virtual void Finalize();

//! Show the options GUI
virtual void ShowOptionsGUI();
Expand Down
13 changes: 13 additions & 0 deletions src/fretalon/framework/src/MModuleTemplate.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,19 @@ bool MModuleTemplate::AnalyzeEvent(MReadOutAssembly* Event)
////////////////////////////////////////////////////////////////////////////////


void MModuleTemplate::Finalize()
{
// Initialize the module

MModule::Finalize();

// Your code here
}


////////////////////////////////////////////////////////////////////////////////


void MModuleTemplate::ShowOptionsGUI()
{
//! Show the options GUI --- has to be overwritten!
Expand Down

0 comments on commit 8edb878

Please sign in to comment.