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

#include <AtDataReductionTask.h>

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

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AtDataReductionTask()

AtDataReductionTask::AtDataReductionTask ( )
default

◆ ~AtDataReductionTask()

AtDataReductionTask::~AtDataReductionTask ( )
default

Member Function Documentation

◆ Exec()

void AtDataReductionTask::Exec ( Option_t *  opt)
overridevirtual

Definition at line 39 of file AtDataReductionTask.cxx.

◆ Init()

InitStatus AtDataReductionTask::Init ( )
overridevirtual

Definition at line 22 of file AtDataReductionTask.cxx.

◆ SetInputBranch()

void AtDataReductionTask::SetInputBranch ( TString  inputBranch)
inline

Definition at line 51 of file AtDataReductionTask.h.

◆ SetOutputBranch()

void AtDataReductionTask::SetOutputBranch ( TString  outputBranch)
inline

Definition at line 56 of file AtDataReductionTask.h.

◆ SetReductionFunction() [1/3]

void AtDataReductionTask::SetReductionFunction ( ReductionFunction  func)
inline

Definition at line 42 of file AtDataReductionTask.h.

◆ SetReductionFunction() [2/3]

void AtDataReductionTask::SetReductionFunction ( std::function< bool(AtBaseEvent *)>  func)

Definition at line 15 of file AtDataReductionTask.cxx.

◆ SetReductionFunction() [3/3]

template<class T >
void AtDataReductionTask::SetReductionFunction ( std::function< bool(T *)>  func)
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.


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