Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TriggerTask.h
1/*
2 * TriggerTask.h
3 *
4 * Created on: 22 cze 2023
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HAL_DATA_IO_TRIGGERTASK_H_
10#define HAL_DATA_IO_TRIGGERTASK_H_
11
12#include "Task.h"
13
17namespace Hal {
18 class Package;
19 class TriggerTask : public Task {
20 Bool_t fGood = {kFALSE};
21 Bool_t fActive = {kFALSE};
22
23 protected:
24 void MarkAsGood() { fGood = kTRUE; };
25 void MarkAsBad() { fGood = kFALSE; };
26
27 public:
29 void MarkAsActive(Bool_t active = kTRUE) { fActive = active; };
30 Bool_t IsEventGood() const { return fGood; }
31 virtual ~TriggerTask();
32 TriggerTask(const TriggerTask& other) = default;
33 Package* Report() const;
34 ClassDef(TriggerTask, 1)
35 };
36} // namespace Hal
37
38#endif /* HAL_DATA_IO_TRIGGERTASK_H_ */