1 #ifndef ATDATAREDUCTIONTSAK_H
2 #define ATDATAREDUCTIONTSAK_H
18 class TMemberInspector;
29 using ReductionFunction = std::function<bool()>;
31 ReductionFunction fReductionFunc{
nullptr};
33 TClonesArray *fInputEventArray{
nullptr};
34 TString fInputBranchName{
"AtRawEvent"};
36 std::vector<TString> fOutputBranchs;
49 fReductionFunc = [
this, func]() {
return func(
dynamic_cast<T *
>(fEvent)); };
53 fInputBranchName = inputBranch;
54 fOutputBranchs.push_back(inputBranch);
56 void SetOutputBranch(TString outputBranch) { fOutputBranchs.push_back(outputBranch); }
58 virtual InitStatus
Init()
override;
59 virtual void Exec(Option_t *opt)
override;
64 #endif //#ifndef ATDATAREDUCTIONTSAK_H