16 #ifndef QC_MODULE_EXAMPLE_EXAMPLECONDITION_H 17 #define QC_MODULE_EXAMPLE_EXAMPLECONDITION_H 20 #include <DataSampling/DataSamplingCondition.h> 39 void configure(
const boost::property_tree::ptree& config)
override;
41 bool decide(
const o2::framework::DataRef& dataRef)
override;
44 uint8_t mThreshold = 0;
49 #endif //QC_MODULE_EXAMPLE_EXAMPLECONDITION_H Example of custom Data Sampling Condition.
Definition: ExampleCondition.h:30
bool decide(const o2::framework::DataRef &dataRef) override
Makes a positive decision if first byte is higher than 'threshold'.
Definition: ExampleCondition.cxx:27
~ExampleCondition() override=default
Default destructor.
Definition: BenchmarkTask.h:24
void configure(const boost::property_tree::ptree &config) override
Reads 'threshold'.
Definition: ExampleCondition.cxx:22
ExampleCondition()=default
Constructor.