QualityControl  1.5.1
O2 Data Quality Control Framework
ExampleCondition.h
Go to the documentation of this file.
1 // Copyright CERN and copyright holders of ALICE O2. This software is
2 // distributed under the terms of the GNU General Public License v3 (GPL
3 // Version 3), copied verbatim in the file "COPYING".
4 //
5 // See http://alice-o2.web.cern.ch/license for full licensing information.
6 //
7 // In applying this license CERN does not waive the privileges and immunities
8 // granted to it by virtue of its status as an Intergovernmental Organization
9 // or submit itself to any jurisdiction.
10 
15 
16 #ifndef QC_MODULE_EXAMPLE_EXAMPLECONDITION_H
17 #define QC_MODULE_EXAMPLE_EXAMPLECONDITION_H
18 
20 #include <DataSampling/DataSamplingCondition.h>
21 
23 {
24 
27 
31 {
32  public:
34  ExampleCondition() = default;
36  ~ExampleCondition() override = default;
37 
39  void configure(const boost::property_tree::ptree& config) override;
41  bool decide(const o2::framework::DataRef& dataRef) override;
42 
43  private:
44  uint8_t mThreshold = 0;
45 };
46 
47 } // namespace o2::quality_control_modules::example
48 
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 &#39;threshold&#39;.
Definition: ExampleCondition.cxx:27
~ExampleCondition() override=default
Default destructor.
Definition: BenchmarkTask.h:24
void configure(const boost::property_tree::ptree &config) override
Reads &#39;threshold&#39;.
Definition: ExampleCondition.cxx:22