ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
#include <AtDataReductionTask.h>
Public Member Functions | |
AtDataReductionTask ()=default | |
~AtDataReductionTask ()=default | |
void | SetReductionFunction (ReductionFunction func) |
void | SetReductionFunction (std::function< bool(AtBaseEvent *)> func) |
template<class T > | |
void | SetReductionFunction (std::function< bool(T *)> func) |
This will cast whatever is in the input array to type T and then call the passed function. More... | |
void | SetInputBranch (TString inputBranch) |
void | SetOutputBranch (TString outputBranch) |
virtual InitStatus | Init () override |
virtual void | Exec (Option_t *opt) override |
Task to reduce the data. It takes a function pointer of the type: bool func(AtRawEvent*) If the function returns true, it keeps the event. Otherwise it skips writing it to disk and sets AtRawEvent.fIsGood as false.
Definition at line 27 of file AtDataReductionTask.h.
|
default |
|
default |
|
overridevirtual |
Definition at line 39 of file AtDataReductionTask.cxx.
|
overridevirtual |
Definition at line 22 of file AtDataReductionTask.cxx.
|
inline |
Definition at line 51 of file AtDataReductionTask.h.
|
inline |
Definition at line 56 of file AtDataReductionTask.h.
|
inline |
Definition at line 42 of file AtDataReductionTask.h.
void AtDataReductionTask::SetReductionFunction | ( | std::function< bool(AtBaseEvent *)> | func | ) |
Definition at line 15 of file AtDataReductionTask.cxx.
|
inline |
This will cast whatever is in the input array to type T and then call the passed function.
Definition at line 47 of file AtDataReductionTask.h.