ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Public Member Functions | List of all members
AtMacroTask Class Reference

#include <AtMacroTask.h>

Inheritance diagram for AtMacroTask:
Inheritance graph
[legend]
Collaboration diagram for AtMacroTask:
Collaboration graph
[legend]

Public Member Functions

 AtMacroTask ()=default
 
 ~AtMacroTask ()=default
 
void Exec (Option_t *option)
 
void AddFunction (std::function< void()> function)
 
 ClassDef (AtMacroTask, 1)
 

Detailed Description

A class to run a supplied function or list of functions, in the order provided, when the task is executed. This class is useful if there are user written functions stored in a header file that may be used in multiple macros. This class is also useful if wanting to use the data handling AtTabInfo classes from the viewer in general analysis.

Definition at line 16 of file AtMacroTask.h.

Constructor & Destructor Documentation

◆ AtMacroTask()

AtMacroTask::AtMacroTask ( )
default

◆ ~AtMacroTask()

AtMacroTask::~AtMacroTask ( )
default

Member Function Documentation

◆ AddFunction()

void AtMacroTask::AddFunction ( std::function< void()>  function)
inline

Adds a user defined function to the function list. Functions are executed in the order they were added when the task is executed.

Definition at line 30 of file AtMacroTask.h.

◆ ClassDef()

AtMacroTask::ClassDef ( AtMacroTask  ,
 
)

◆ Exec()

void AtMacroTask::Exec ( Option_t *  option)

Definition at line 5 of file AtMacroTask.cxx.


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